Wednesday, April 15, 2009

Reliance Netconnect USB card in Ubuntu Jaunty

New version of Ubuntu Linux 9.04 (Jaunty) is due to be released next week. So if you are a Reliance Broadband USB CDMA modem user then you should make these (slight) changes to your configuration .
Thejesh has already posted a detailed Reliance Netconnect USB card on Linux Howto so I don't think I should repeat myself again.

In Jaunty the usbserial module is complied as builtin in the linux kernel. So if you are searching for us usbserial module you won't find it. What you have to do instead is to pass USB vendor ID and Product ID at boot time.

Add this line at the end of default kernel line in your /boot/grub/menu.lst usbserial.vendor=0x19d2 usbserial.product=0xfffd
Happy Browsing !!!

22 comments:

  1. i got an error like this…

    pawanjit@pawanjit-laptop:~$ sudo wvdial
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    –> Sending: ATQ0
    –> Re-Sending: ATZ
    –> Modem not responding.
    pawanjit@pawanjit-laptop:~$

    any idea???

    ReplyDelete
  2. Sundar, Please check if the usbserial module is loaded and wvdial.conf points to the correct /dev/ttyUSB0

    ReplyDelete
  3. usb serial module is loaded and in my laptop wvdial is pointing to /dev/tty0

    ReplyDelete
  4. posting o/p of some commands & files. hope this will help you to understand my prob...

    pawanjit@pawanjit-laptop:~$ sudo dmesg | grep tty
    [ 0.004000] console [tty0] enabled
    pawanjit@pawanjit-laptop:~$

    edited the module file like this... (as mentioned in this blog http://mysimpletricks.wordpress.com/2009/04/30/reliance-netconnect-broadband-on-linux-jaunty-jackalope-ubuntu-904/)

    ## ## End Default Options ##

    title Ubuntu 9.04, kernel 2.6.28-11-generic
    uuid b90ad0ac-7cec-472d-a4b5-d4ebbdb7c394
    kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=b90ad0ac-7cec-472d-a4b5-d4ebbdb7c394 ro quiet splash
    usbserial.vendor=0x19d2 usbserial.product=0xfffd
    initrd /boot/initrd.img-2.6.28-11-generic
    quiet

    title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
    uuid b90ad0ac-7cec-472d-a4b5-d4ebbdb7c394
    kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=b90ad0ac-7cec-472d-a4b5-d4ebbdb7c394 ro single
    usbserial.vendor=0x19d2 usbserial.product=0xfffd
    initrd /boot/initrd.img-2.6.28-11-generic

    title Ubuntu 9.04, memtest86+
    uuid b90ad0ac-7cec-472d-a4b5-d4ebbdb7c394
    kernel /boot/memtest86+.bin
    quiet

    edited the wvdial.conf file like this...

    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ISDN = 0
    Username = 937212xxxx
    Init1 = ATZ
    Password = 937212xxxx
    Modem = /dev/tty0
    Baud = 3686400
    Phone = #777
    stupid mode = 1

    of course that is my reliance no.

    pawanjit@pawanjit-laptop:~$ sudo wvdial
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    –> Sending: ATQ0
    –> Re-Sending: ATZ
    –> Modem not responding.
    pawanjit@pawanjit-laptop:~$

    am i missing anything???

    ReplyDelete
  5. Sundar, Don't you think the Modem line should read Modem = /dev/ttyUSB0 instead?


    Please read the Thejesh's detailed
    Reliance Netconnect USB card on Linux - Howto

    ReplyDelete
  6. yes i am aware of that but in my laptop modem detected in tty0...

    ReplyDelete
  7. Very strange I have never seen this device being detected as /dev/tty0 before !

    ReplyDelete
  8. oho sorry. it is /dev/ttyUSB0 only.
    here is the o/p...

    pawanjit@pawanjit-laptop:~$ sudo wvdial
    [sudo] password for pawanjit:
    --> WvDial: Internet dialer version 1.60
    --> Cannot open /dev/ttyUSB0: No such file or directory
    --> Cannot open /dev/ttyUSB0: No such file or directory
    --> Cannot open /dev/ttyUSB0: No such file or directory
    pawanjit@pawanjit-laptop:~$

    i think modem is not detected in ubuntu 9.04. i had this same problem in ubuntu 8.04 but when ubuntu 8.10 came out it worked well.

    ReplyDelete
  9. The modem works well. I myself tested it for a various version of Ubuntu including the Ubuntu 9.04 (Jaunty)

    Here is the checklist
    1) Check if the modules is loaded properly. Are you passing the kernel bootparam properly.

    2) Plug in the device and check the /var/log/messages and 'lsusb'

    3) If the modem is detected properly a symlinks is automatically created (/dev/ttyUSBx)

    ReplyDelete
  10. 1."Check if the modules is loaded properly. Are you passing the kernel bootparam properly." --->> i do not know how to do that.

    2. Here is the /var/log/message o/p:

    May 10 22:36:51 sundar-laptop kernel: [19571.676068] usb 2-2: new full speed USB device using ohci_hcd and address 24
    May 10 22:36:52 sundar-laptop kernel: [19572.420053] usb 2-2: new full speed USB device using ohci_hcd and address 25
    May 10 22:36:53 sundar-laptop kernel: [19573.372071] usb 2-2: new full speed USB device using ohci_hcd and address 26
    May 10 22:36:54 sundar-laptop kernel: [19574.052084] usb 2-2: new full speed USB device using ohci_hcd and address 27
    May 10 22:36:54 sundar-laptop kernel: [19574.299150] usb 2-2: configuration #1 chosen from 1 choice

    and luusb o/p:

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 027: ID 19d2:fffd
    Bus 002 Device 023: ID 15d9:0a37
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    "Bus 002 Device 027: ID 19d2:fffd" -->> this is my modem vendor and product id.

    3.nothing is created in /dev/ttyUSBx (ttyUSB0). if i plug in tata indicom plug 2 surf i can see ttyACM0. so does it mean modem not detected in kernal???

    ReplyDelete
  11. I too got stuck with the same problem as Sundar. Please help us.

    Thanks
    Surya

    ReplyDelete
  12. hi arky..
    waiting for your reply...

    ReplyDelete
  13. Most likely that kernel hasn't taken your options correctly.

    ReplyDelete
  14. >>>> my /boot/grub/menu.lst

    title Ubuntu 9.04, kernel 2.6.28-11-generic
    uuid a48b3a85-3f54-412e-a76d-0e6598746eae
    kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a48b3a85-3f54-412e-a76d-0e6598746eae ro quiet splash usbserial.vendor=0x19d2 usbserial.product=0xfff6
    initrd /boot/initrd.img-2.6.28-11-generic
    quiet

    title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
    uuid a48b3a85-3f54-412e-a76d-0e6598746eae
    kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a48b3a85-3f54-412e-a76d-0e6598746eae ro single usbserial.vendor=0x19d2 usbserial.product=0xfff6
    initrd /boot/initrd.img-2.6.28-11-generic

    title Ubuntu 9.04, memtest86+
    uuid a48b3a85-3f54-412e-a76d-0e6598746eae
    kernel /boot/memtest86+.bin
    quiet

    >>>> To sundar: I've added "usbserial.vendor=0x19d2 usbserial.product=0xfff6" to the end of kernel, previously I'm writing it in the next line. so just in case if you are also doing the same, try this.

    >>>> dmesg output


    May 19 18:37:45 siya-laptop kernel: [ 499.560175] usb 5-2: new full speed USB device using uhci_hcd and address 3
    May 19 18:37:45 siya-laptop kernel: [ 499.714903] usb 5-2: configuration #1 chosen from 1 choice
    May 19 18:37:45 siya-laptop kernel: [ 499.717359] usbserial_generic 5-2:1.0: generic converter detected
    May 19 18:37:45 siya-laptop kernel: [ 499.717466] usb 5-2: generic converter now attached to ttyUSB0

    >>>> wvdial.conf
    [Dialer Defaults]
    Init2=ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ISDN=0
    Username=9390462926
    Init1=ATZ
    Password=9390462926
    Modem=/dev/ttyUSB0
    Baud=3686400
    Phone=#777
    stupid mode = 1

    >>>> root@siya-laptop:/dev# lsusb
    Bus 002 Device 003: ID 05a9:2640 OmniVision Technologies, Inc.
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 002: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 003: ID 19d2:fff6
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    >>>> root@siya-laptop:/dev# ls
    adsp oldmem stdin tty44 usbdev5.1_ep81
    agpgart pktcdvd stdout tty45 usbdev5.3_ep00
    audio port tty tty46 usbdev5.3_ep0a
    block ppp tty0 tty47 usbdev5.3_ep89
    bus psaux tty1 tty48 usbdev6.1_ep00
    cdrom ptmx tty10 tty49 usbdev6.1_ep81
    cdrw pts tty11 tty5 usbdev6.2_ep00
    char ram0 tty12 tty50 usbdev6.2_ep81
    console ram1 tty13 tty51 usbdev7.1_ep00
    core ram10 tty14 tty52 usbdev7.1_ep81
    cpu_dma_latency ram11 tty15 tty53 usbmon0
    disk ram12 tty16 tty54 usbmon1
    dri ram13 tty17 tty55 usbmon2
    dsp ram14 tty18 tty56 usbmon3
    dvd ram15 tty19 tty57 usbmon4
    dvdrw ram2 tty2 tty58 usbmon5
    ecryptfs ram3 tty20 tty59 usbmon6
    fd ram4 tty21 tty6 usbmon7
    full ram5 tty22 tty60 v4l
    fuse ram6 tty23 tty61 vcs
    hidraw0 ram7 tty24 tty62 vcs1
    hpet ram8 tty25 tty63 vcs2
    initctl ram9 tty26 tty7 vcs3
    input random tty27 tty8 vcs4
    kmem rtc tty28 tty9 vcs5
    kmsg rtc0 tty29 ttyS0 vcs6
    log scd0 tty3 ttyS1 vcs7
    loop0 sda tty30 ttyS2 vcs8
    loop1 sda1 tty31 ttyS3 vcsa
    loop2 sda2 tty32 ttyUSB0 vcsa1
    loop3 sda5 tty33 urandom vcsa2
    loop4 sequencer tty34 usbdev1.1_ep00 vcsa3
    loop5 sequencer2 tty35 usbdev1.1_ep81 vcsa4
    loop6 serial tty36 usbdev2.1_ep00 vcsa5
    loop7 sg0 tty37 usbdev2.1_ep81 vcsa6
    mapper sg1 tty38 usbdev2.3_ep00 vcsa7
    mem shm tty39 usbdev2.3_ep83 vcsa8
    mixer snapshot tty4 usbdev3.1_ep00 video0
    net snd tty40 usbdev3.1_ep81 watchdog
    network_latency sndstat tty41 usbdev4.1_ep00 xconsole
    network_throughput sr0 tty42 usbdev4.1_ep81 zero
    null stderr tty43 usbdev5.1_ep00

    >>>> ttyUSB0 is found :)

    root@siya-laptop:/dev# cat /etc/wvdial.conf
    [Dialer Defaults]
    Init2=ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ISDN=0
    Username=9390462926
    Init1=ATZ
    Password=9390462926
    Modem=/dev/ttyUSB0
    Baud=3686400
    Phone=#777
    stupid mode = 1
    root@siya-laptop:/dev# wvdial
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    --> Sending: ATQ0
    --> Re-Sending: ATZ
    --> Modem not responding.
    root@siya-laptop:/dev#

    >>>> I'm able to see the ttyUSB0 in /dev/, but "cat /proc/bus/usb/devices" not found untill I do this "mount -t usbfs usbfs /proc/bus/usb/", is there anything wrong I'm doing.
    >>>>

    >>>> Tried with USB1 as well ##
    root@siya-laptop:/dev# wvdial
    --> WvDial: Internet dialer version 1.60
    --> Cannot open /dev/ttyUSB1: No such file or directory
    --> Cannot open /dev/ttyUSB1: No such file or directory
    --> Cannot open /dev/ttyUSB1: No such file or directory
    root@siya-laptop:/dev#

    Thanks
    Surya

    ReplyDelete
  15. @surya

    Some systems need usbfs filesystem mounted.

    Add this line at the end of your /etc/fstab file

    usbfs /proc/bus/usb usbfs defaults 0 0

    ReplyDelete
  16. @surya

    Change the init line to this and try.

    Init1 = ATZ

    ReplyDelete
  17. Hi Arky,

    Initially I've used the same you gave in this post.

    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ISDN = 0
    Username = 937212xxxx
    Init1 = ATZ
    Password = 937212xxxx
    Modem = /dev/ttyUSB0
    Baud = 3686400
    Phone = #777
    stupid mode = 1

    It is not working, so I've tried removing the space before and after "=",

    I hope the only difference is the space.

    Anyways let me try again,

    Thanks for the response.

    ReplyDelete
  18. Delete the whole init2 line, I think that's the source of the problem.

    Use the wvdial config file given here.
    http://thejeshgn.com/2008/01/12/reliance-netconnect-usb-card-on-linux-howto/

    ReplyDelete
  19. Hi Arky,

    Thanks for your prompt response!!

    I'm still getting the same error, here are the three observations/doubt I had:

    1
    >>>> dmesg output (after I added the tool in /boot/grub/menu.lst and plugged the tool)
    >>>> please note the 3rd last line (Initializing USB Mass Storage driver...) ?? any idea on this?
    May 21 19:26:19 siya-laptop kernel: [ 93.736101] usb 5-2: new full speed USB device using uhci_hcd and address 2
    May 21 19:26:19 siya-laptop kernel: [ 93.896407] usb 5-2: configuration #1 chosen from 1 choice
    May 21 19:26:19 siya-laptop kernel: [ 93.910546] usbserial_generic 5-2:1.0: generic converter detected
    May 21 19:26:19 siya-laptop kernel: [ 93.913362] usb 5-2: generic converter now attached to ttyUSB0
    May 21 19:26:19 siya-laptop kernel: [ 93.993261] Initializing USB Mass Storage driver...
    May 21 19:26:19 siya-laptop kernel: [ 93.993376] usbcore: registered new interface driver usb-storage
    May 21 19:26:19 siya-laptop kernel: [ 93.993382] USB Mass Storage support registered.

    2
    >>>> I'm trying wvdialconf, but I got "no modem was detected!"
    siya@siya-laptop:~$ sudo wvdialconf /etc/wvdial.conf
    Editing `/etc/wvdial.conf'.

    Scanning your serial ports for a modem.

    Modem Port Scan<*1>: S0 S1 S2 S3
    WvModem<*1>: Cannot get information for serial port.
    ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
    ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.


    Sorry, no modem was detected! Is it in use by another program?
    Did you configure it properly with setserial?

    Please read the FAQ at http://open.nit.ca/wiki/?WvDial

    If you still have problems, send mail to <wvdial-list@lists.nit.ca>.
    siya@siya-laptop:~$

    3
    >>>> Thejesh last point "7. In Ubuntu … this can be done @ System->Administration->Networking.Ensure that your internet traffic goes through your “Modem” by selecting the ppp.You should be able to browse now…." !!
    But I'm not able to find the "ppp" modem (network device) when I connect the Reliance broadband+ tool ... it is "ppp" modem when I connect Reliance netconnect. With no tool connected, no such "ppp" modem option in the network device.
    I strongly feel that this would solve my problem. any idea on this as well?

    Thanks
    Surya

    ReplyDelete
  20. I still think your wvdial config is wrong. The device you have is *not* serial but USB (with usbserial module).

    Here another link of ZTE EV-DO device configuration in gnu/Linux

    http://platonic.techfiz.info/2008/03/04/hacking-bsnl-evdo-on-linux/

    ReplyDelete
  21. @ Surya

    "just in case if you are also doing the same" -->> This is what i was doing earlier. Now modem is detected and working fine.

    Surya, i would suggest you to try pppconfig instead of wvdial(after loading kernal module). It is very simple and not required to edit any file. Type "sudo pppconfig" in the terminal and follow the on screen instructions. Once configured use "sudo pon reliance" (if you give reliance as your provider) to connect to internet and "sudo poff reliance" to disconnect. Another beauty is that you can even close terminal once you connected to internet. Use "ifconfig" to know your ip address. To monitor the internet speed, install "sudo apt-get install pppstatus". After installation use "sudo pppstatus" to know more about your connection details.

    Post your doubt here. "we" will find the solution.

    ReplyDelete

You can leave a comment here using your Google account, OpenID or as an anonymous user.

Popular Posts