Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 68

Thread: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

  1. #41
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    oh , upon searching, i found this https://answers.launchpad.net/ubuntu...question/65281

    the solution, which might make a nose bleed to new users, my guess is you already know what you're doing, so i bet you'll be fine doing this.

    from Philip Muskovac
    And now to what you have to do to use usbserial with 2.6.28:
    The kernel command is set in the grub configuration in the file /boot/grub/menu.lst . At the bottom of the file you will find the default startup entry created by ubuntu (taken from my menu.lst):

    title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
    uuid 44daa138-39e6-450f-b840-76940da90d1f
    kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
    initrd /initrd.img-2.6.28-11-generic
    quiet

    the part that interests us is the line that starts with 'kernel'. To use the usbserial driver you have to add your parameters to this line so start editing the file by opening it in a texteditor with admin-rights by typing in a terminal:
    for gnome: 'gksu gedit /boot/grub/menu.lst'
    kde: 'kdesudo kate /boot/grub/menu.lst'
    others: 'sudo nano -w /boot/grub/menu.lst'
    Now go to the end of the File and Copy&Paste the block obove so that you have the same boot config twice, like this you always have the original boot config if your configuration refuses to work (make sure not to change anything in the original configuration or you might get an unbootable system!):

    title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
    uuid 44daa138-39e6-450f-b840-76940da90d1f
    kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
    initrd /initrd.img-2.6.28-11-generic
    quiet

    title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
    uuid 44daa138-39e6-450f-b840-76940da90d1f
    kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
    initrd /initrd.img-2.6.28-11-generic
    quiet

    Now take the first entry and first edit the title so that you can identify which config is yours (you can put anything you want there, I'll simply append custom)

    title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic custom
    uuid 44daa138-39e6-450f-b840-76940da90d1f
    kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
    initrd /initrd.img-2.6.28-11-generic
    quiet

    Now add your parameters in the form module.option=value :

    title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic custom
    uuid 44daa138-39e6-450f-b840-76940da90d1f
    kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash usbserial.vendor=0x1c9e usbserial.product=0x6061
    initrd /initrd.img-2.6.28-11-generic
    quiet

    Now double check that the settings are in the kernel line and didn't get broken up into a new line and save the file. Now you will have to reboot and select your new configuration on the next boot. (If you put your configuration obove the others it should be the new default.)

    A note at the end: You should make yourself a backup of your new menu.lst file since you might loose it when you install a kernel update and select 'use version of maintainer' or something like that from the list that might pop up in the details.

    I really hope that will work for you.

  2. #42
    Join Date
    Mar 2009
    Beans
    40

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    Quote Originally Posted by loell View Post
    oh , upon searching, i found this https://answers.launchpad.net/ubuntu...question/65281

    the solution, which might make a nose bleed to new users, my guess is you already know what you're doing, so i bet you'll be fine doing this.

    from Philip Muskovac
    thank you for such a quick reply..

    gotta try it now and post updates here.


    EDIT:

    for some reason it didnt work~ im still having the same error.
    Last edited by gonkyouka; May 2nd, 2009 at 07:26 PM.

  3. #43
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    Quote Originally Posted by gonkyouka View Post
    EDIT:

    for some reason it didnt work~ im still having the same error.
    can you post your menu.lst?

    cat /boot/grub/menu.lst

  4. #44
    Join Date
    Mar 2009
    Beans
    40

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    Quote Originally Posted by loell View Post
    can you post your menu.lst?

    cat /boot/grub/menu.lst
    Code:
    title		Ubuntu 9.04, kernel 2.6.28-11-generic gonkyouka
    uuid		06fa8899-5a69-4ad2-9746-982f87e43fd0
    kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=06fa8899-5a69-4ad2-9746-982f87e43fd0 ro elevator=noop quiet splash 
    usbserial.vendor=0x1c9e usbserial.product=0x6061
    initrd		/boot/initrd.img-2.6.28-11-generic
    quiet
    
    title		Ubuntu 9.04, kernel 2.6.28-11-generic
    uuid		06fa8899-5a69-4ad2-9746-982f87e43fd0
    kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=06fa8899-5a69-4ad2-9746-982f87e43fd0 ro elevator=noop quiet splash 
    initrd		/boot/initrd.img-2.6.28-11-generic
    quiet
    
    title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
    uuid		06fa8899-5a69-4ad2-9746-982f87e43fd0
    kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=06fa8899-5a69-4ad2-9746-982f87e43fd0 ro  single
    initrd		/boot/initrd.img-2.6.28-11-generic
    the above code is my menu.lst

    this is what i did (if in case thisll help):
    Code:
    rose@ubuntu:~$ sudo /usr/sbin/usb_modeswitch
    [sudo] password for rose: 
    
     * usb_modeswitch: tool for controlling "flip flop" mode USB devices
     * Version 0.9.6 (C) Josua Dietze 2009
     * 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
     No driver found. Device probably not initialized. Trying to continue ...
    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
    
    rose@ubuntu:~$ lsusb
    Bus 001 Device 003: ID 064e:d101 Suyin Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 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
    Bus 002 Device 003: ID 1c9e:6061  
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    rose@ubuntu:~$ sh /usr/sbin/initmodem.sh
    FATAL: Module usbserial not found.
    #################################################

    Actually since i dunno what to do with the above error, i installed another kernel i.e. 2.6.29 by following some instructions from here hoping that it'll help. then googling all the way. i replaced my usbserial.ko since having an error with it. i think ive done a lot of things and now im stuck in the last part of the tutorial where it says:
    Code:
    $ sudo wvdial smartbro
    it returns an error below:

    Code:
    sudo: vwdial: command not found
    im pretty sure that if i can fix the above error, everything will work not a hundred percent though.


    ..its 4am here. i dun wanna sleep until its done. sorry if im having too many questions. i started using ubuntu only this mid april.
    Last edited by gonkyouka; May 2nd, 2009 at 09:37 PM.

  5. #45
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    Quote Originally Posted by gonkyouka View Post
    ..its 4am here. i dun wanna sleep until its done. sorry if im having too many questions. i started using ubuntu only this march.
    heheh, oh please have some sleep. you can try resolve it in the next several hours.

  6. #46
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    try this conf

    # /etc/usb_modeswitch.conf
    #
    # Last modified: 2008-04-15
    #
    # Configuration for usb_modeswitch, a mode switching tool for controlling
    # flip flop (multiple device) USB gear
    #
    # Main purpose is to trigger the switching of several known UMTS modems
    # from storage device mode ("ZeroCD TM" for use with MS Windows) to modem
    # (serial) device mode
    #
    # Detailed instructions and a friendly forum on the homepage:
    # http://www.draisberghof.de/usb_modeswitch
    #
    # News update: you want to read the paragraph about troubleshooting there
    # if you run into problems !!!


    # Just set or remove the comment signs (# and in order to activate
    # your device. (Actual entries are further down, after the reference.)
    #
    # For custom settings:
    # Numbers can be decimal or hexadecimal, MessageStrings MUST be
    # hexadecimal without prepended "0x". Digits 9-16 in the known
    # MessageStrings are arbitrary; I set them to "12345678"


    # What it all means (command line flags appended):
    #
    #
    # * DefaultVendor -v <hex number>
    # * DefaultProduct -p <hex number>
    #
    # This is the ID the USB device shows after having been plugged in.
    # The program needs this; if not found -> no action.
    #
    #
    # * TargetVendor -V <hex number>
    # * TargetProduct -P <hex number>
    #
    # This is the ID the USB device after successful mode switching.
    # ! From version 0.9.4 just for information purposes !
    # Might be useful for testing in future versions
    #
    #
    # * TargetClass -C <hex number>
    #
    # Some newer devices don't change IDs but switch device class. If
    # the device has the target class -> no action (and vice versa)
    #
    #
    # * MessageEndpoint -m <hex number>
    #
    # A kind of address inside the interface to which the "message"
    # (the sequence that does the actual switching) is directed.
    # Starting from version 0.9.7 the MessageEndpoint is autodetected
    # if not given
    #
    #
    # * MessageContent -M <hex string>
    #
    # A hex string containing the "message" sequence; it will be
    # sent as a USB bulk transfer.
    #
    #
    # * ResponseEndpoint -r <hex number>
    # * NeedResponse -n <0/1> OBSOLETE; just give ResponseEndpoint
    #
    # Some devices were reported to require receiving the response of the
    # bulk transfer to do the switching properly. Usually not needed.
    #
    #
    # * DetachStorageOnly -d <0/1>
    #
    # Some devices just need to be detached from the usb-storage
    # driver to initiate the mode switching. Using this feature
    # instead of removing the whole usbstorage module keeps other
    # storage devices working.
    #
    #
    # * HuaweiMode -H <0/1>
    #
    # Some Huawei devices can be switched by a special control
    # message.
    #
    #
    # * SierraMode -S <0/1>
    #
    # Some Sierra devices can be switched by a special control
    # message.
    #
    #
    # * SonyMode -O <0/1>
    #
    # Some Sony-Ericsson devices can be switched by a special control
    # message. This is experimental and might not have a stable result
    #
    #
    # * ResetUSB -R <0/1>
    #
    # Some devices need a rougher treatment. If the switching seems
    # to do something (run udevmonitor), but your system does not reflect
    # it, try this somewhat brutal method to do a reset after switching.
    # Mind that if your device switched OK before, this will probably set
    # it back to storage mode ...
    #
    #
    # * Interface -i <hex number>
    # * Configuration -u <hex number>
    # * AltSetting -a <hex number>
    #
    # More USB parameter to help with tricky devices and for doing lots
    # of cruel experiments ...
    #
    #
    # * CheckSuccess -s <number>
    #
    # Check for successful switch after <number> seconds (to let device
    # settle). First, an interface access test: most devices vanish after
    # switching and can't be accessed anymore. Second, a recount of target
    # devices: one more than at the first count -> device switched fine. A
    # settling time of 2 - 3 seconds is usually enough; your setup may vary
    #
    # All other entries are just ignored !

    # Additional command line flags:
    #
    # Verbose output -W
    # No output at all -q
    # Other config file -c <file>

    # AltSetting/Configuration changes and ResetUSB are executed after all
    # other steps and can be combined


    # For filling in all this information for an unknown device,
    # see instructions and links on the homepage:
    # http://www.draisberghof.de/usb_modeswitch
    #
    # If you find working codes and configurations, please contribute
    # them!


    ;CheckSuccess=2

    ################################################## ######
    # Alcatel OT-X020 (aka MBD-100HU, aka Nuton 3.5G), works with Emobile D11LC
    #
    # Contributor: Aleksandar Samardzic

    ;DefaultVendor= 0x1c9e
    ;DefaultProduct= 0x1001

    ;TargetVendor= 0x1c9e
    ;TargetProduct= 0x6061

    ;MessageEndpoint=0x05
    ;MessageContent="55534243123456780000000000000606f 50402527000000000000000000000"

  7. #47
    Join Date
    Mar 2009
    Beans
    40

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    Quote Originally Posted by loell View Post
    try this conf
    i edited my /etc/usb_modeswitch.conf using your config (above)

    then i try:

    Code:
    $ sudo /usr/sbin/usb_modeswitch
    but it gives me an error:

    Code:
     * usb_modeswitch: tool for controlling "flip flop" mode USB devices
     * Version 0.9.6 (C) Josua Dietze 2009
     * Works with libusb 0.1.12 and probably other versions
    
    No default vendor/product ID given. Aborting
    so as a result my usb modem was not changed at all:

    Code:
    rose@ubuntu:~$ lsusb
    Bus 001 Device 003: ID 064e:d101 Suyin Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 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
    Bus 002 Device 003: ID 1c9e:1001  
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    #########################################

    and if i use this usb_modeswitch.conf
    Code:
     Alcatel OT-X020 (aka MBD-100HU, aka Nuton 3.5G), works with Emobile D11LC
    
     Contributor: Aleksandar Samardzic
    
    DefaultVendor=  0x1c9e
    DefaultProduct= 0x1001
    
    TargetVendor=   0x1c9e
    TargetProduct=  0x6061
    
    MessageEndpoint=0x05
    MessageContent="55534243123456780000000000000606f50402527000000000000000000000"
    i get the following result:

    Code:
     * usb_modeswitch: tool for controlling "flip flop" mode USB devices
     * Version 0.9.6 (C) Josua Dietze 2009
     * 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
     No driver found. Device probably not initialized. Trying to continue ...
    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 lsusb will bring me this:
    Code:
    Bus 001 Device 003: ID 064e:d101 Suyin Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 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
    Bus 002 Device 004: ID 1c9e:6061  
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    then:
    Code:
    $ sh /usr/sbin/initmodem.sh
    result:
    Code:
     * usb_modeswitch: tool for controlling "flip flop" mode USB devices
     * Version 0.9.6 (C) Josua Dietze 2009
     * Works with libusb 0.1.12 and probably other versions
    
    Looking for target devices
     Found target devices (1)
    Looking for default devices
     No default device found. Is it connected? Bye
    and the last part:

    Code:
    $ sudo wvdial smartbro
    but fails:
    Code:
    --> 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
    T_____T no time to sleep lol
    Last edited by gonkyouka; May 2nd, 2009 at 10:57 PM.

  8. #48
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    i guess one must remove the ";" .

  9. #49
    Join Date
    Mar 2009
    Beans
    40

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    Quote Originally Posted by loell View Post
    i guess one must remove the ";" .
    yeah since it says:

    Code:
     Just set or remove the comment signs (# and ;) in order to activate
    .. managed to changed the target vendor and product but still, there isnt a label on it.

    Code:
    ;TargetVendor=   0x1c9e
    ;TargetProduct=  0x6061
    there should be something like:
    Code:
    Alcatel OT-X020 (aka MBD-100HU, aka Nuton 3.5G) .. etc
    ....

    ###########################################

    i noticed that everytime i run lsusb there is an entry that says:

    Code:
    Bus 001 Device 002: ID 064e:d101 Suyin Corp.
    anyone knows what is it? i know its not the smartbro usb modem.
    Last edited by gonkyouka; May 3rd, 2009 at 12:33 PM.

  10. #50
    Join Date
    Mar 2009
    Beans
    40

    Re: SmartBro Prepaid (Longcheer dongle, not the ZTE) Howto

    anyone else here knows what to do? im losing my hope..

Page 5 of 7 FirstFirst ... 34567 LastLast

Bookmarks

Posting Permissions

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