Announcement

Collapse
No announcement yet.

adu-520a modem doing a whole lot of nothing.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    adu-520a modem doing a whole lot of nothing.

    So! I've been studying up on linux and kubuntu and would be ready to make the switch but for one thing-- my modem does not work with kubuntu 9.10, Karmic Koala. There seems to be not a whole lot of guidance as to what to do in English or in Georgian (Georgia, the country, being where the modem hails from and where I work). I'm very new to code (read: never done it before, so a little cautious), and I can't read Russian, which might help with the decoding of this: http://www.opennet.ru/base/modem/skylink_linux.txt.html.

    I had a Wubi installation for a while. I tried to configure the setup of the modem as a device, and when multiple failures ensued, I uninstalled Kubuntu in a fit of frustration. Oops.

    Anyway, I believe it has something to do with the USB modeswitch on the device; like, I need to halt the modem from being recognized as a storage device because that only helps Windows to recognize and auto-install whatever it needs.

    Would something like this be my most likely solution?
    http://www.draisberghof.de/usb_modes...a0783b839f9e12

    Or, would it be best to install 9.04, which reportedly has no problems?

    I'd like to get some advice from knowledgeable people who know what they're doing before I waste more hours of my life downloading a 700MB file that won't work for me because I don't know what I'm doing.

    #2
    Re: adu-520a modem doing a whole lot of nothing.

    Bablefish is your friend!

    Using the Russian to English translation:
    The keywords: skylink, linux, modem, ppp, (to find similar documents)

    From: [Vershinin] Yegor <vershinin.e@gmail.com.>
    Newsgroups: email
    Date: Mon, 24 Jul 2008 14:31: 37 +0000 (UTC)
    Subject: Tuning the work Of skylink EVDO with the aid of the modem Of anyData ADU-520A into Linux

    Brief instruction for those, who will want to use equipment CMDA of 1x/EVDO into Linux.

    It tuned for AnyData ADU-520A - but must work, also, for others
    the models Of anyData.


    For the tuning they will be necessary by us:

    1) Any Of linux [distributiv] with the sufficiently fresh kernel, with the modules of ppp and libusb.

    2) The program of usb_modeswitch, which switches EVDO- modem from the regime
    Cd -ROM/MMC-Flash into the regime of modem - is taken from the WEB- site:
    http://www.draisberghof.de/usb_modeswitch/

    3) Pair of the scripts, one of which, using that point out above program,
    we switch modem. The second script - establishes ppp connection
    by provider.

    Let us begin:

    We download from the site the files: usb_modeswitch-0.9.4.tar .bz2 and usb_modeswitch.conf.
    We unpack the first file:

    tar - xf usb_modeswitch-0.9.4.tar .bz2


    We cd into the directory of usb_modeswitch

    We run the script:

    ./compile.sh


    after the compile is done we copy the binary to:

    cp usb_modeswitch /usr/bin/


    The configuration file we copy into /etc:

    cp usb_modeswitch /etc/


    In our home directory we make 2 scripts: change_modes.sh and evdo-skylink.sh:

    touch change_modes.sh evdo-skylink.sh.


    We change their permissions:

    chmod 777 change_modes.sh evdo-skylink.sh


    Contents of the first file:

    #! /bin/bash
    /usr/bin/usb_modeswitch - v of 05c6 - p 1000 - V 16d5 - P 6502 - m of 0x00000008 \
    - M of 5553424328932a86000000000000061b000000020000000000 000000000000


    Contents of the second file:

    #! /bin/sh
    mknod /dev/ppp c 108 0
    DIALTIMEOUT=20
    MODEM=ttyUSB0 SPEED=921600 of MODEM_INIT='" AT+CRM=1; &C2” OK'
    IH_IP= " ipcp-accept-local of ipcp-accept-remote of noipdefault
    debug of usepeerdns of user of mobile of mtu 1400
    novj of nobsdcomp of novjccomp of nopcomp of noaccomp "
    LOGSCRIPT= " OF CONNECT "
    PHONE= " of #777 "

    # before the starting of pppd is moved away default of router,
    # at the end - it restores
    DR= `of route - n | egrep '^ 0.0.0.0 '| grep - v of ppp | sed “s/^ [^] * * \ ([^] * \). */default gw \ 1” `;
    if [- n “of $DR”]; then
    trap “echo of route of add of $DR; route of add of $DR; exit” 2 Oe 9 15
    route of delete of $DR
    echo of route of delete of $DR
    fi

    ########## with the break of the connection of pppd [perezapuskaetsya] ########
    while of true; do
    pppd \
    connect “chat - v ABORT “NO DIALTONE” OF ABORT “NO CARRIER” ABORT BUSY ""” “$MODEM_INIT” “ATDP'$ PHONE " “$LOGSCRIPT””; '\
    crtscts of defaultroute of modem - detach of mru 1400 \
    $NASH_IP: $IH_IP /dev/ $MODEM of $SPEED
    cat /etc/ppp/resolv.conf > /etc/resolv.conf
    sleep of $DIALTIMEOUT
    done


    All, we are practically ready - it remained to neglect:

    We connect modem, after 5-10 seconds we execute a command of dmesg, in order to
    to look, as nucleus it reacted to the modem:

    usb 6-1: new of full of speed USB of device of using of uhci_hcd and address 2
    usb 6-1: configuration #1 of chosen of from of 1 choice
    scsi3: SCSI of emulation of for USB Of mass Of storage of devices
    usb-storage: device of found at 2
    usb-storage: waiting of for of device to of settle of before of scanning
    scsi the 3:0: 0: 0: CD -ROm AnyDATA CD -ROm 1.00 PQ: 0 ANSI: 2
    sr0: scsi3-mmc of drive: 0x/0x of caddy
    sr the 3:0: 0: 0: Attached of scsi CD -ROm of sr0
    sr the 3:0: 0: 0: Attached of scsi of generic of sg1 of type 5
    usb-storage: device of scan of complete
    sr0: CDROM (ioctl) of error, command: cdb [of 0] =0x46 46 00 00 00 00 00 00 00 20 00
    sr: Sense Of key: 0x0 [of current]
    sr: ASC=0x0 Of aSCQ=0x0


    Is it evident that the device did recognize as CD -ROm and all?
    In the catalog /dev/ the new device appeared: /dev/sr0. Also, if in your Linux
    are disposed HAL/UDEV - to you will be proposed to [podmontirovat] new
    device - we reject.

    We carry out script change_modes.sh, we look, that it wrote to us. If everything
    successfully, after 5-10 seconds again of dmesg:

    usb 6-1: USB of disconnect, address 2
    usb 6-1: new of full of speed USB of device of using of uhci_hcd and address 3
    usb 6-1: configuration #1 of chosen of from of 1 choice
    scsi4: SCSI of emulation of for USB Of mass Of storage of devices
    usb-storage: device of found at 3
    usb-storage: waiting of for of device to of settle of before of scanning
    usbcore: registered of new of interface of driver of usbserial
    drivers/usb/serial/usb-serial.c: USB Of serial of support of registered of for of generic
    usbcore: registered of new of interface of driver of usbserial_generic
    drivers/usb/serial/usb-serial.c: USB Of serial Of driver of core
    drivers/usb/serial/usb-serial.c: USB Of serial of support of registered of for GSM of modem (1-port)
    option 6-1: 1.0: GSM of modem (1-port) of converter of detected
    usb 6-1: GSM of modem (1-port) of converter of now of attached to of ttyUSB0
    option 6-1: 1.1: GSM of modem (1-port) of converter of detected
    usb 6-1: GSM of modem (1-port) of converter of now of attached to of ttyUSB1
    option 6-1: 1.2: GSM of modem (1-port) of converter of detected
    usb 6-1: GSM of modem (1-port) of converter of now of attached to of ttyUSB2
    usbcore: registered of new of interface of driver of option
    drivers/usb/serial/option.c: USB Of driver of for GSM of modems: v0.7.1
    scsi the 4:0: 0: 0: CD -ROm AnyDATA CD -ROm 1.00 PQ: 0 ANSI: 2
    sr0: scsi3-mmc of drive: 0x/0x of caddy
    sr the 4:0: 0: 0: Attached of scsi CD -ROm of sr0
    sr the 4:0: 0: 0: Attached of scsi of generic of sg1 of type 5
    usb-storage: device of scan of complete
    sr0: CDROM (ioctl) of error, command: cdb [of 0] =0x46 46 00 00 00 00 00 00 00 20 00
    sr: Sense Of key: 0x0 [of current]
    sr: ASC=0x0 Of aSCQ=0x0


    Aha!!! - appeared the devices of ttyUSB0 and so forth - they that to us and they were necessary!

    We start in the console script evdo-skylink.sh - connection is must to be established, through
    the command of ifconfig you will be able to see the new net the device of ppp0.

    Everything - the Internet will work on this of the type.

    PS: If connection will be not stable, I recommend to decrease the value
    the maximum speed (in my script: 921600, but with this value
    real speed was: 368 kbit/s, and there were small delays, as if
    modem thought).

    PSS: If you have common telephone and with its connection in the catalog /dev/
    immediately appears device /dev/ttyUSB0 - tambourines with the mode switch
    modem are not necessary - you immediately start script - to them (at a rate of 230400) I
    already 2 years I use in any [linukse] (tube Of curitel-510 + OF USB-TO-COM
    pl2303 (prolific)).

    I hope that my small instruction will help someone

    With respect, [Vershinin] [Egor], company SWEET FLAG -[SOFt]
    Welcome to Linux!
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment

    Working...
    X