الأحد، 16 مايو 2010

How to make Yemen Mobile Phones "CDMA broadband modem" work in your open SUSE?



There are many ways to make your CDMA modem work in Linux. I use these steps to make my CDMA Hisense mobile working with Yemen Mobile network. Using this configuration:
The user and password: ymobile
Dial number: #777
baud: 115200

  1. Login as root.




  2. Be sure you have installed these softwares: smpppd, udev, wvdial, and kinternet.




  3. Do this command: dmesg at the end of the result you will see something like this (not important)




    [ 2879.028201] sd 5:0:0:0: [sdb] Assuming drive cache: write through
    [ 2879.028218] sd 5:0:0:0: [sdb] Attached SCSI removable disk
    [ 3327.318366] usb 1-1: USB disconnect, address 2
    [ 3701.313639] input: Virtual pam_fp Keyboard as /devices/virtual/input/input14
  4. Connect your (USB) mobile, then execute the command dmesg again. Note the change it may look similar to this:


    [ 3701.313639] input: Virtual pam_fp Keyboard as /devices/virtual/input/input14
    [ 4339.456859] usb 3-1: new full speed USB device using uhci_hcd and address 2
    [ 4339.664308] usb 3-1: New USB device found, idVendor=109b, idProduct=3197
    [ 4339.664327] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 4339.664340] usb 3-1: Product: COMMON,USB
    [ 4339.664349] usb 3-1: Manufacturer: COMMON,USB
    [ 4339.664358] usb 3-1: SerialNumber: Serial Number
    [ 4339.664540] usb 3-1: configuration #1 chosen from 1 choice

  5. Using the results (idVendor=109b, idProduct=3197), write this command
    modprobe -v usbserial vendor=0x109b product=0x3197


  6. Run the dmesg again. You should see ttyUSB like this.

    [ 4339.664540] usb 3-1: configuration #1 chosen from 1 choice
    [ 4787.132839] usbcore: registered new interface driver usbserial
    [ 4787.133124] USB Serial support registered for generic
    [ 4787.133517] usbserial_generic 3-1:1.0: generic converter detected
    [ 4787.135810] usb 3-1: generic converter now attached to ttyUSB0
    [ 4787.135848] usbserial_generic 3-1:1.1: generic converter detected
    [ 4787.136128] usb 3-1: generic converter now attached to ttyUSB1
    [ 4787.136772] usbcore: registered new interface driver usbserial_generic
    [ 4787.136783] usbserial: USB Serial Driver corev

  7. That means: your modem has installed successfully and you can use it. The device installed at /dev/ttyUSB0



  8. check the wvdial configuration by the command cat /etc/wvdial.conf. If the result not like the one below, configure it manually, or by using ether kinternet or wvdialconf.
    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem = /dev/ttyUSB0
    Phone = 0
    Idle Seconds = 300
    Password = ymobile
    Modem Type = Analog Modem
    Stupid Mode = 1
    Compuserve = 0
    Baud = 115200
    Auto DNS = 1
    Dial Command = ATDT
    Ask Password = 0
    ISDN = 0
    Username = ymobile



    When your configuration is ready, use kinternet to connect to the network. If the connection do not start check the smpppd service.
  9. Start smpppd service like this:

    run yast , insert the root password > system > system services (runlevel) > expert mode
    then choose the run level 2,3, and 5
    then start the service, the OK