Senin, 10 Agustus 2009

Optimizing Connection Modem ZTE Smart 2726

Further notes ngoprek modem ZTE Smart in 2726, this time trying to improve connection speeds in Linux, soalnya kalau compare connection in Ubuntu and in Windows, the connection speed in Ubuntu (download mentok max at around 50-60an KB / s) more slowly than the pas-use in Windows (can nyampe around 100an KB / s).

This happens because the usbserial module in Linux that does not cater for high-speed modem. Eventually replace the use nyoba test module option.ko which he said is a 3G modem.

Unfortunately I option.ko module supports modem ZTE 2726, but this can add your own diakali with info for the modem ZTE to option.c in the source code so that the modem can be identified. For that we need to re-build the module option.ko, following the steps (the test in Ubuntu Jaunty with kernel 2.6.28-13-generic).

Download the linux source package and the packages to compile module:

$ Sudo apt-get install linux-source linux-headers-generic build-essential
$ Sudo su
# Cd / usr / src
# Tar xjf linux-source-2.6.28.tar.bz2

Copy and save the patch below:

diff-Nurp linux-source-2.6.28.old/drivers/usb/serial/option.c linux-source-2.6.28/drivers/usb/serial/option.c
--- Linux-source-2.6.28.old/drivers/usb/serial/option.c 2009-06-02 14:57:13.000000000 0700
linux-source-2.6.28/drivers/usb/serial/option.c 2009-06-24 02:39:56.000000000 0700
-292.6 292.7 @ @ @ @ static int option_send_setup (struct tty
0x0015 # define ZTE_PRODUCT_MF628
0x0031 # define ZTE_PRODUCT_MF626
# define ZTE_PRODUCT_CDMA_TECH 0xfffe
# define ZTE_PRODUCT_AC2726 0xfff1

# define BENQ_VENDOR_ID 0x04a5
0x4068 # define BENQ_PRODUCT_H10
-511.6 512.7 @ @ @ @ static struct usb_device_id option_ids []
(USB_DEVICE (ZTE_VENDOR_ID, ZTE_PRODUCT_MF626)),
(USB_DEVICE (ZTE_VENDOR_ID, ZTE_PRODUCT_MF628)),
(USB_DEVICE (ZTE_VENDOR_ID, ZTE_PRODUCT_CDMA_TECH)),
(USB_DEVICE (ZTE_VENDOR_ID, ZTE_PRODUCT_AC2726)),
(USB_DEVICE (BENQ_VENDOR_ID, BENQ_PRODUCT_H10)),
(USB_DEVICE (0x1da5, 0x4515)), / * BenQ H20 * /
() / * Terminating entry * /

Then apply the patch it:

# Cd linux-source-2.6.28
# Patch-p1-i / PATH / TO / directory / BERKAS.patch-NAME

And re-compile modulenya:

# Cp / boot/config- $ (uname-r) / usr/src/linux-source-2.6.28/.config
# Make menuconfig
# Make-C / lib / modules / $ (uname-r) / build M = / usr/src/linux-source-2.6.28/drivers/usb/serial

If you are wrong option.ko please copy the module to module directory, do not forget to backup first module option.ko the old:

# Cp / usr/src/linux-source-2.6.28/drivers/usb/serial/option.ko / lib / modules / $ (uname-r) / kernel / drivers / usb / serial /
# Depmod-a

Beres dah colokin live usb modemnya automatically detected later, I need to modprobe a module again. Coba aja llihat in the directory / dev, if I have already ttyUSB0 means success.

Next let ZTE modem 2726 can be detected with the network manager so I get more Cape-Cape config to make dial-up, let us make it for ZTE config:

Smart ZTE Network Manager

Create new files / usr/share/hal/fdi/information/20thirdparty/20-zte-2726.fdi

# Vi / usr/share/hal/fdi/information/20thirdparty/20-zte-2726.fdi

Copy the following config:










IS-707-A
modem







Save the file and delete the cache:

# Rm / var / cache / hald / FDI-cache

Completed, please restart and now the network manager should be able to recognize the modem ZTE 2726.

Udah ah segini aja notes ngopreknya, download time pelem gawe. Lumayan nih current connection in Ubuntu can be around 100-150KB / s. Oke surf safely!

http://skyisgrey.org/blog/mengoptimalkan-koneksi-modem-smart-zte-2726.html

Tidak ada komentar:

Posting Komentar