Tuesday, April 28, 2009

[solved] PROLINK PHS100 HSDPA workout for Debian lenny and Ubuntu intrepid


* check wethre system is up-to-date ( apt-get update && apt-get upgrade)
1. wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.7.tar.bz2
2. tar xjvf usb_modeswitch-0.9.7.tar.bz2 && cd usb_modeswitch-0.9.7 && make install
3. Edit /etc/usb_modeswitch.conf and add following section (similar to iCON 210 section) to end of the file
########################################################
# Option PROLINK PHS100
#
# Contributor: laxaman

DefaultVendor= 0x1e0e
DefaultProduct= 0xf000

TargetVendor= 0x1e0e
TargetProduct= 0x9000

# Not really necessary because IDs of target device are different
TargetClass= 0xff

MessageEndpoint=0x1
MessageContent="555342431234567800000000000006bd000000020000000000000000000000"

ResponseEndpoint=0x1


4. Create /usr/sbin/prolink_hsdpa.sh with the content given bellow and make it executable (chmod +x /usr/sbin/prolink_hsdpa.sh)
#!/bin/bash
# Copyright (C) 2008 Nayanajit Mahendra Laxaman mail: nmlaxaman@gmail.com

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

PATH=/usr/bin:/bin:/usr/sbin:/sbin
modprobe -r usbserial
sleep 1
modprobe usbserial vendor=0x1e0e product=0x9000


5. Create /etc/udev/rules.d/45-prolink_hsdpa.rules with the content given bellow
# Copyright (C) 2008 Nayanajit Mahendra Laxaman mail: nmlaxaman@gmail.com

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.


ACTION=="add", SUBSYSTEMS=="scsi", DRIVERS=="sr", \
ATTR{manufacturer}=="PROLINK ", \
RUN:=""

SUBSYSTEM=="usb", SYSFS{idProduct}=="f000", SYSFS{idVendor}=="1e0e", \
RUN:="/usr/sbin/usb_modeswitch"

SUBSYSTEM=="usb", SYSFS{idProduct}=="9000", SYSFS{idVendor}=="1e0e", \
RUN:="/usr/sbin/prolink_hsdpa.sh"


6. Thats it now you can plug your PROLINK PHS100 hsdpa dongle you will see some devices in /dev/ such as ttyUSB0 ttyUSB1 ttyUSB2 ttyUSB3 ttyUSB3 will the working one for data connection

7. You can use wvdial to dial your connection. If you don't have wvdial then install it (apt-get install wvdial). copy following content to /etc/wvdial.conf and type wvdial in your terminal to connect.


[Dialer Defaults]
Modem = /dev/ttyUSB3
Baud = 1843200
Modem Type = Analog Modem
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP",""
Dial Command = ATDT
Phone = *99***1#
Username = ''
Password = ''
Stupid Mode = yes

14 comments:

  1. I can't see 'ttyUSB*' at /dev/.

    also got 'ttyUSB3 : no such device or adress' after use wvdial.

    please help..

    ReplyDelete
  2. @bp_alfa
    try in terminal:
    $ sudo wvdialconf

    then you can edit /etc/wvdial.conf for phone, name and password:
    $ sudo gedit /etc/wvdial.conf

    CMIIW

    ReplyDelete
  3. Great post, works perfectly :)

    Just a little Tip. If the modem LED remains Red in Linux and you can't connect with wvdial ...

    Plug the modem to Windows, wait till it connects and the LED changes to blue from red. Once that happens and the software informs you, Yank out the modem (Do not use the software to disconnect).

    I think once connected, those settings are stored in the modem. Because when you connect it to Linux, the light will immediately turn red --> blue, which means you are correctly in your carriers HSDPA network.

    Now use the above wvdial script and you are good to go!!!

    ReplyDelete
  4. hey, am i do the step 2-4 in terminal too?
    what the password? i'm sorry for my english..
    and i'm a newbie in linux.. so i didn't understand the instruction very well..
    i'm sorry for the inconvenience..
    but plis help me

    ReplyDelete
  5. I followed all steps correctly and i didn't get ttyUSB*

    are these steps work for any version of Ubuntu?I'm using Ubuntu9.04

    Thank you for any help

    ReplyDelete
  6. In 9.04 usbserial module is built in to the kernel.[http://ubuntuforums.org/showthread.php?t=1132784] Therefore it is not possible to use this setup since it manually probe the module with different parameters.

    ReplyDelete
  7. I used v9.04 for a testing purpose.

    i need to install this in to a server with Ubuntu 8.04 server edition.
    will these steps work for that server?
    or should i use another method to install it to the server?

    Thanx...

    ReplyDelete
  8. I was tested this for intrepid ie. 8.10. It should probably work for 8.04

    ReplyDelete
  9. i have prolink 101....can help me...linux ubuntu 9.04.... cannot config..

    ReplyDelete

Intel Corporation XMM7360 LTE Advanced Modem in ArchLinux

The required packages are available in ArchLinux User Repository (AUR) so it will be easier if you can use an AUR helper package like yay . ...