Senin, 26 Juli 2010

Setting Up My First Blackberry Development With Eclipse Galileo (WinXP)

Yet another scratchpad.. just to free up my brain's memory space.

Here are things on my checklist, as prerequisite..
  1. a cup of -my wife's created- morning coffee
  2. OS Setup: WinXP 32bit, 1GB RAM (2GB RAM is very-very recommended) with working-n-fast internet connectivity
    using seven 64 at first, it brings me to 'crowdy' situation as the jde + simulator + eclipse stuff would eat very huge part of RAM and bb jde has incompatibility issues with 64bit environment. I'll try to solve this later ~_-"
  3. Java JDK Environment Setup, currently using Oracle - Sun Java J2SE6u20
    After JDK installation, add this line to winxp environment Path:
    {JDK Installation Path}\bin;
  4. Eclipse Setup (preferably Galileo), get it from BlackBerry® Java® Plug-in for Eclipse® v1.1 (FULL INSTALLER)* or Older Versions of Eclipse
    *Pre-packaged Eclipse-JDE integration on RIM's Developer site. You must be a registered developer to download cool stuffs there. Just do the registration with no hurt, it's free ;)

After doing major setup above, the next steps are integrating eclipse IDE and BB JDE including simulators+debugger, while my objective is to make bb software development become more fun and things are running automagically as expected ;)
To do so.. we can add RIM's repository for eclipse by doing the following steps:
  1. Run Eclipse
  2. Open Install window by clicking Help > Install New Software...
  3. Type http://www.blackberry.com/go/eclipseUpdate/3.5/java on Work With field, then click Add... button
  4.  
  5. Wait for couple of seconds while eclipse fetching software updates from RIM's repository
  6. Choose:
    • Blackberry Java Plug-in: to install Eclipse-JDE integration
    • Blackberry Java SDK: thick required version match on BB OS target/type, to install RIM Blackberry Device simulator + debugger integration
  7. Sit back, relax and take another cup of coffee.. it's gonna be take some time for eclipse to download the updates


.. well, i think that's all for now. There are steps that i didn't mention here, just doing next-next-next things won't horribly burn up my XT-Core Processor brain ;) ... and for last, the rest is up to you..

20100724 Triady HS
Lavdate Dominvm
drink Kahlua, save water

Senin, 29 Juni 2009

[Debian] Setting internet smart dengan pppconfig

Setting internet smart dengan pppconfig di debian

nitip space, biar ga lupa kalo mau setting internet lagi. thx :)


Preparation:

  • HP cdma (currently using Nokia 6255i), smart RUIM preloaded
  • Kabel data (ttyUSB) / IrDA (ircomm) / Bluetooth (rfcomm)


Software requirements:

untuk mempermudah, install dulu pppconfig.

sudo apt-get install pppconfig

* I prefer using pppconfig instead of wvdial or gnome-ppp, because of it`s flexibility of customizing, IMHO.


Step-by-step:


Setting awal dengan pppwizard ==> pppconfig

  1. Pastikan serial port antara linuxbox dan hp sudah terkoneksi dan terbentuk device ttyUSBx, ircommx atau rfcommx di directory /dev.

  1. Jalankan ppp wizard

    sudo pppconfig
  2. Pilih Create - Create a connection
  3. Provider Name isi dengan provider.
    Secara default, pppd memanggil koneksi dengan nama 'provider'
  4. Configure Nameservers (DNS), pilih Dynamic - Use dynamic DNS.
  5. Authentication Method for provider, pilih PAP - Peer Authentication Protocol.
  6. User Name, isi dengan smart.
  7. Password, isi dengan smart.
  8. Speed, isi dengan 230400 bila menggunakan kabel data, 115200 bila menggunakan bluetooth atau 57600 bila menggunakan Infra Red, atau biarkan saja tetap 115200 (default)
  9. Pulse or Tone, pilih Tone.
  10. Phone Number, isi dengan #777.
  11. Choose Modem Config Method, pilih No. Kita akan isi port serial secara manual (autodetection usually won`t works)
  12. Manually Select Modem Port, isi dengan /dev/ttyUSB0 bila menggunakan kabel data, /dev/rfcomm0 bila menggunakan bluetooth atau /dev/ircomm0 bila menggunakan IrDA
  13. Setting awal selesai, akan tampak tampilan seperti berikut:
    - img -
  14. Dari layar tersebut, pilih Advanced - Advanced Options.
  15. Pilih Add-User - Add a ppp user untuk memberi hak dial pada user.
  16. Add User, isi dengan login user, misalnya: triad.
  17. Pilih Previous - Return to previous menu untuk kembali ke menu setup 'provider'.
  18. Pilih Finished - Write files and return to main menu, untuk menyimpan semua setting yang sudah dilakukan, lalu quit untuk kembali ke terminal prompt. Well, tahap awal setup telah selesai, selanjutnya kita lakukan customizing

Customizing peers (/etc/ppp/peers/provider)

  1. Dari terminal:

    sudo nano /etc/ppp/peers/provider
  2. Lakukan editing pada file provider sehingga isinya menjadi sebagai berikut:

    # This optionfile was generated by pppconfig 2.3.18.
    #
    #
    hide-password
    debug
    noauth
    connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"

    ## Ubah nilai2 berikut sesuai spesifikasi koneksi dan modem
    ## Connection preferences
    /dev/rfcomm0
    115200
    ## End of Connection preferences

    defaultroute
    noipdefault
    user "smart"
    password "smart"
    remotename provider
    ipparam provider
    usepeerdns

    ## i`m using 1492 instead of default mtu=1500.
    ## feel free to play with this
    mtu 1492

    lcp-echo-failure 0
    lcp-echo-interval 0
    persist
    silent
  3. Simpan script '/etc/ppp/peers/provider' dengan menekan tombol [^X] [y] [Enter]



Customizing chatscript (/etc/chatscripts/provider)

  1. Dari terminal:

    sudo nano /etc/chatscripts/provider
  2. Lakukan editing pada file provider sehingga isinya menjadi sebagai berikut:

    # This chatfile was generated by pppconfig 2.3.18.
    # Please do not delete any of the comments. Pppconfig needs them.
    #
    # ispauth PAP
    # abortstring
    ABORT BUSY
    ABORT 'NO CARRIER'
    ABORT VOICE
    ABORT 'NO DIALTONE'
    ABORT 'NO DIAL TONE'
    ABORT 'NO ANSWER'
    ABORT DELAYED
    # modeminit
    '' ATZ
    OK AT+CRM=1
    #OK AT+CSO=33
    OK AT+CMUX=1
    OK AT+CPS=33
    OK AT+CTA=0

    # ispnumber
    OK-AT-OK "ATDT#777"
    # ispconnect
    CONNECT \d\c
    # prelogin

    # ispname

    # isppassword

    # postlogin

    # end of pppconfig stuff
  3. Simpan script '/etc/chatscripts/provider' dengan menekan tombol [^X] [y] [Enter]


Done! Setting internet telah selesai



Melakukan koneksi internet

  1. Untuk melakukan koneksi, dari terminal:

    pon
    atau
    pon [nama provider]
    apabila nama provider pada langkah awal bukanlah "provider"
  2. Untuk diskonek dari internet, dari terminal:
    poff -a
    Option -a ditambahkan untuk memastikan semua daemon pppd meninggal sempurna dan bahagia tanpa ada yg gentayangan.


.. That`s all folks.
Kalo ada salah kata mohon koreksi dan maaf, secara bentar lagi lebaran :)