Loading...

How to connect to SmartBro Prepaid (KS) in Ubuntu Intrepid

SmartBro Prepaid is a mobile broadband solution which consists of a HSDPA capable modem and prepaid sim card.  There are two type of these modems available, I am going to talk about the second, newer modem (the smaller black usb dongle), as the first one already has howtos available in the internet.  For the curious – this dongle is called the Longcheer, and is based on the Alcatel OT-X020 modem chipset.

Although this writeup is based on setting it up on Ubuntu Intrepid, the following steps should be applicable to other distributions as well.  You may want to improve on these steps by placing these commands on a bash script, but what I’m giving you is the staightforward way of doing it.

Here are the steps:

Download the usb_modeswitch binaries and the latest usb_modeswitch.conf file here:

http://www.draisberghof.de/usb_modeswitch/#download

Extract the usb_modeswitch binary and place it in a place like /usr/sbin.  usb_modeswitch.conf goes to the /etc folder. Comment out the lines which has the headers Alcatel OT-X020.  You have to disable the other modem enabled on this config file, or usb_modeswitch won’t work.

Edit your wvdial.conf file (located in /etc) to look like this (As a bonus, I added a default dialer section for your nokia cellphone – I have a Nokia E61i to connect to the smart internet network):

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet"
Modem Type = USB Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyACM0
New PPPD = yes
Baud = 460800
Idle Seconds = 3000
Auto DNS = 1
Stupid Mode = 1
Compuserve = 0
Dial Command = ATDT
Ask Password = 0
FlowControl = NOFLOW

[Dialer smartbro]
Init1 = ATZ
#Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init2 = ATE1
#Init2 = ATE0V1&D2&C1S0=0
#Init3 = at_opsys=0
#Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,"IP","smartbro","",0,0
Modem Type = USB Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
New PPPD = yes
Baud = 912600
Idle Seconds = 3000
Auto DNS = 1
Stupid Mode = 1
Compuserve = 0
Dial Command = ATD
Ask Password = 0
FlowControl = NOFLOW

Write down this code and save it as initmodem.sh and place it in /usr/sbin:

#!/bin/sh
modprobe usbserial vendor=0x1c9e product=0x6061 && usb_modeswitch
sleep 3

Plug in your SmartBro USB dongle and run:
# sudo /usr/sbin/initmodem

To connect to the internet, just type in:
# sudo wvdial smartbro

and to disconnect, just press CTRL+C, or kill the pppd process

I think this should work also with SmartBro 1500 as well.  Enjoy your smartbro connection!

 
 

12 comments
  1. chris ian

    I have followed your steps. I have finish configuring everything. i have finish doing sudo /usr/sbin/initmodem. this is the output.

    ian@dell-desktop:/dev$ sudo initmodem.sh

    * usb_modeswitch: tool for controlling “flip flop” mode USB devices
    * Version 0.9.5 (C) Josua Dietze 2008
    * Works with libusb 0.1.12 and probably other versions

    Looking for target devices
    No target device found
    Looking for default devices
    Found default devices (1)
    Prepare switching, accessing latest device
    Looking for active default driver to detach it
    OK, driver found (“usb-storage”)
    OK, Driver “usb-storage” successfully detached
    Setting up communication with device
    Trying to send the message
    OK, message successfully sent.
    -> See /proc/bus/usb/devices (or call lsusb) for changes. Bye

    then i do # sudo wvdial smartbro. an error occured:

    ian@dell-desktop:/dev$ sudo wvdial smartbro
    –> 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

    can you give some tips how do solve this?

    thanks in advance

  2. clintcan

    Hi Chris,

    Seems like your modem is not installed on /dev/ttyUSB0. Is there another modem like device installed?

    try this command first if this is the Alcatel modem:

    lsusb | grep 0×6061

    If this shows up, then the modem has successfully installed.

    Sometimes (this happens), you need to run this command from the command line directly as root (as ubuntu sometimes doesn’t like running this command as a script)

    modprobe usbserial vendor=0×1c9e product=0×6061 && usb_modeswitch

    after the success message, run wvdial smartbro

    if this doesn’t work, your modem is not located in /dev/ttyUSB0 – replace /dev/ttyUSB0 with /dev/ttyUSB1, ttyUSB2 until it works.

    Just really make sure that 0x6061 is the actual product code after modeswitch is run.

  3. chris ian

    hello clintcan,

    I have tried running lsusb | grep 0×6061 but there is no output. I have tried to run lsusb there is Bus 003 Device 008: ID 1c9e:6061. Is this the same with your modem (alcatel) ? or we have different modems? I run lsusb after modeswitch is run. bellow is the full lsusb.

    ian@dell-desktop:~/Desktop$ lsusb
    Bus 007 Device 001: ID 0000:0000
    Bus 006 Device 001: ID 0000:0000
    Bus 005 Device 001: ID 0000:0000
    Bus 003 Device 008: ID 1c9e:6061
    Bus 003 Device 001: ID 0000:0000
    Bus 004 Device 003: ID 0458:003a KYE Systems Corp. (Mouse Systems)
    Bus 004 Device 001: ID 0000:0000
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 006: ID 0a5c:4503 Broadcom Corp.
    Bus 001 Device 005: ID 0a5c:4502 Broadcom Corp.
    Bus 001 Device 004: ID 413c:8126 Dell Computer Corp. Wireless 355 Bluetooth
    Bus 001 Device 003: ID 0a5c:4500 Broadcom Corp.
    Bus 001 Device 001: ID 0000:0000

  4. chris ian

    hello clintcan,

    I have figure it out what is the problem. It has was conflict with lirc program. Anyways, the problem now is my wvdial.conf i tried to cut and paste the code but I think wordpress convert some of the qoutes and etc. can you email you your wvdial.conf to me cccfiel@gmail.com? thanks in advance 🙂

    chris

  5. clintcan

    Hey chris,

    Just change the opening and closing quotes to ordinary quotes. Seems like wordpress changes them.

    Your email bounces.

  6. ric

    hi, i need help with this. i am new to ubuntu and linux in general and i don’t have a clue how to do this. i get a permission denied when i copy and extract stuff to the folders (/etc and /usr/sbin) you mentioned in the howto.

    hope you can help me out. thanks.

  7. clintcan

    you didn’t log in (or in ubuntu’s case, sudo) as root.

    # sudo su

    type in your password and you’re logged in as root.

  8. ric

    hi clintcan,

    i have to say that i’m having a hard time following this howto. hehe. i’m a newbie to linux and i need help.

    1) which modem do i disable in the usb_modeswitch.conf? if you don’t mind, can you send me a copy thru email of both your usb_modeswitch.conf and wvdial.conf?

    2) i downloaded the usb_modeswitch.conf from the link provided. but i also noticed that there is a usb_modeswitch.conf included in the archive. which one should i use?

    thanks.

  9. clintcan

    Hey ric,
    Were you able to solve your problem? remember, run usb_modeswitch in root to avoid permission problems. Sorry for the delayed response, I’m just too busy these days.

Leave a Reply

Your email address will not be published. Required fields are marked *