Home > UNIX TLC > Using Alcatel OT x020 with Linux (usbserial)

Using Alcatel OT x020 with Linux (usbserial)

December 26th, 2008 Leave a comment Go to comments

The Alcatel OT x020 is an HSDPA modem, it works fine in windows and Mac OS X (Drivers for both the OS's are provided). In Linux you need to work a little. If you want to use this modem you shall execute the following steps:

  • Download and install the latest libusb (version 0.1-4 works fine)
  • Download usb_modeswitch from here the packet contains the source code and a compiled binary, open a terminal window and extract the packet by typing the following line:

# tar jxvf usb_modeswitch-0.9.5.tar.bz2

  • move into the usb_modeswitch directory

# cd usb_modeswitch-0.9.5/

  • if you want to compile the source code for your processor type the following line (this step is optional):

# gcc -l usb -o usb_modeswitch usb_modeswitch.c

  • move the binary into /sbin/

# mv usb_modeswitch /sbin/

  • edit the /etc/usb_modeswitch.conf file

# sudo gedit /etc/usb_modeswitch.conf

  • Add the following lines to the file:

######################################################## # Alcatel OT-X020 DefaultVendor=  0x1c9e DefaultProduct= 0x1001 TargetVendor=   0x1c9e TargetProduct=  0x6061 MessageEndpoint=0x05 MessageContent="55534243123456780000000000000606f50402527000000000000000000000"

  • and save it.
  • prepare the /etc/ppp/peers/ppp0 file

# sudo gedit /etc/ppp/peers/ppp0

  • Add the following lines:

/dev/ttyUSB0 115200 connect "/usr/sbin/chat -v -f /etc/chatscripts/ppp0" user "on" usepeerdns defaultroute persist and save it. prepare the  /etc/chatscripts/ppp0 file # sudo gedit /etc/ppp/peers/ppp0

add the following lines: ABORT 'BUSY' ABORT 'NO CARRIER' ABORT 'ERROR' '' AT OK AT+CGATT=1 OK AT+CGDCONT=1,"IP","internet.wind" OK      ATDT*99***1# To prepare these two files you can also use kppp or pppconfig

  • Now attach the usb modem and wait a while (the usb disk will be showed)
  • unmount the usb disk
  • run the usb_modeswitch

# usb_modeswitch

  • prepare the serial driver

# modprobe usbserial vendor=0x1c9e product=0x6061

  • try to connect

# pppd call ppp0 Now you should be connected to the internet

Categories: UNIX TLC Tags: , , ,
  1. admin
    December 28th, 2008 at 09:57 | #1

    Note that with usbserial driver you could use the OT x020 only at 64 KB/s. To speed up your modem you need to recompile the airprime module. I’ve tested the x020 with the airprime module and I can say that it works fine and you can use the modem at 320 KB/s. As soon as possible I will post how to use the airprime module.

    If you have any question please feel free to leave a comment

  2. Simo
    December 19th, 2009 at 18:20 | #2

    hi! i wish to have the driver of HSDPA USB modem OT x020 of compatibility with windows 7 premium. txs so very much o tell me that or how to do .

  3. admin
    December 20th, 2009 at 16:27 | #3

    Hi Simo,
    I’d like to help you, but for now I cannot. I don’t have every O.S. in the market, I must buy each O.S. to perform tests. So I would appreciate donations or helps from the users of this blog. For now, with the current donations status I think I will buy a copy of windows 7 at the end of february.

    Thank you for your interest,
    adm.

  1. July 23rd, 2009 at 18:33 | #1
  2. January 26th, 2010 at 02:29 | #2
*

Statistical data collected by Statpress SEOlution (blogcraft).