Siasat Agar Modem USB ZTE MF622 tidak Dikenali Sebagai Storage Drive

2009May05

Untuk para pengguna linux, seringkali jika kita hendak menggunakan modem ZTE MF622 (yang digunakan oleh IM2) di notebook kita, linux mendeteksinya sebagai sebuah storage drive, bukan sebagai modem. Terkadang hal ini membuat kita kesal karena kita tidak dapat konek ke internet dengan modem ZTE tersebut.

Namun ada cara agar modem ZTE MF622 itu terdeteksi sebagai modem. Caranya adalah dengan membuat rules. Berikut langkah-langkahnya:

  1. Download dan install USB_Modeswitch
    	wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.4.tar.bz2
    	
    Ekstrak dan install
    	tar jxvf usb_modeswitch-0.9.4.tar.bz2
        cd usb_modeswitch-0.9.4
        sudo cp usb_modeswitch /usr/sbin
        sudo cp usb_modeswitch.conf /etc
  2. Buat rules baru dengan membuat file
    /etc/udev/rules.d/15-zte-mf622.rules
  3. isi file tersebut:
        
        #-------------------------------------------------- 
        ACTION!="add", GOTO="ZTE_End"
        
        # Is this the ZeroCD device? 
        SUBSYSTEM=="usb", SYSFS{idProduct}=="2000", 
        SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"  
        
        # Is this the actual modem? 
        SUBSYSTEM=="usb", SYSFS{idProduct}=="0001", 
        SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"   
        
        LABEL="ZTE_ZeroCD"  
        
        # This is the ZeroCD part of the card, remove 
        # the usb_storage kernel module so 
        # it does not get treated like a storage device 
        RUN+="/usr/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001"
        
        LABEL="ZTE_Modem"  
        
        # This is the Modem part of the card, let's 
        # load usbserial with the correct vendor 
        # and product ID's so we get our usb serial devices 
        RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0001",  
        
        # Make users belonging to the dialout group 
        # able to use the usb serial devices. 
        MODE="660", GROUP="dialout"   
        
        LABEL="ZTE_End"
        
        #-------------------- eof ---------------
        
        
  4. Pastikan juga file tersebut di set ke 644 agar dapat dibaca oleh semua user
    sudo chmod 644 /etc/udev/rules.d/15-zte-mf622.rules

Selesai. Sekarang setiap kali anda mencolokkan Modem USB ZTE MF622 ke PC atau notebook anda, linux akan mengenalinya sebagai modem, bukan sebagai storage drive lagi.

Tags:  | | | |

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Untuk mencegah spam ke website abetobing.com, silahkan masukkan kode yang tertera dibawah ini.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Recent comments

Check This Out