Skip to main content

Ejabberd VS Openfire VS "handmade"

This month, I have a project from my laboratory about Smart Gateway. What smart gateway is it? It's a smart gateway system that allow multi-client-chat not only using internet but also SMS. Does it seem weird? Yeah, it will be used for rural area which is difficult to get internet access but still has SMS service. In this project, I take part in internet modul development.
There must be a server that can serve some users. There some applications that can be installed in the server to build a chat server. Firstly, I chose Ejabberd. Installation process for this application was so long. I installed it form its source code. This program was made by Erlang programming language. That's a new thing for me. I should installed Erlang's compiler. I found wrong site that gave difficult steps and I followed that difficult steps to install Erlang's compiler until I got stuck. Then, I found out that Ubuntu repository provides it. After that, I installed Ejabberd, built some configurations, and ran it. To make this server can be accessed by clients, it needs client application that can be installed either on server or clients. I chose JWChat, installed it on server, and built some configurations so this application could communicate with Ejabberd. Client can make a chat conference by access a web application which is on server from a browser. OK, that was the beginning. The main point of smart gateway chat server is to store internet chat data into a common database server like MySql which will be used by Gammu to store SMS messages.  I also have to built a program that can make all data from internet and SMS can be synchronized. Ejabberd use Mnesia database, a built-in database from Ejabberd. Then, I made some configurations again for Ejabberd so it can store chat data to MySql. After spending a day I tried to fix its configuration, Ejabberd server still didn't want to work. It failed to start. I think, the problem is on connection to MySql because when I used internal database, it ran normally. I read the installation guide and configuration file carefully but couldn't find any mistake. Then, I though to move to another application to build server.
Openfire is another application to build chat server. It use Java programming language. I think that was great. I always like Java. The developer website for this application is also looks better then Ejabberd site. I feel that Openfire installation process was easier then Ejabberd. To configure the server, we can use web-based control panel that is provided by Openfire. Database configuration also can be done from that control panel. Openfire has provided MySql driver for Openfire so we don't have to install it separately. For server testing, I used client-side application. It's Spark, also from Openfire site. It worked nicely. After that, I must think again how to manage the database, update the source code of Openfire to support Smart Gateway system, and build more simple application for client. Openfire is more complex application than Ejabberd that use Java and many modules on it.
After three days of doing this work, I start to think better solution to finish this project as soon as possible. I think, If I make my own server application using Java, it will be more simple and can produce result as needed.


Popular posts from this blog

Rangkaian Sensor Infrared dengan Photo Dioda

Keunggulan photodioda dibandingkan LDR adalah photodioda lebih tidak rentan terhadap noise karena hanya menerima sinar infrared, sedangkan LDR menerima seluruh cahaya yang ada termasuk infrared.
Rangkaian yang akan kita gunakan adalah seperti gambar di bawah ini.

Pada saat intensitas Infrared yang diterima Photodiode besar maka tahanan Photodiode menjadi kecil, sedangkan jika intensitas Infrared yang diterima Photodiode kecil maka tahanan yang dimiliki photodiode besar.
Jika tahanan photodiode kecil maka tegangan V- akan kecil. Misal tahanan photodiode mengecil menjadi 10kOhm. Maka dengan teorema pembagi tegangan:
V- = Rrx/(Rrx + R2) x Vcc V- = 10 / (10+10) x Vcc V- = (1/2) x 5 Volt V- = 2.5 Volt
Sedangkan jika tahanan photodiode besar maka tegangan V- akan besar (mendekati nilai Vcc). Misal tahanan photodiode menjadi 150kOhm. Maka dengan teorema pembagi tegangan:
V- = Rrx/(Rrx + R2) x Vcc V- = 150 / (150+10) x Vcc V- = (150/160) x 5 Volt V- = 4.7 Volt
Sekarang kita akan melihat trimp…

Sariawan dan Vitamin B12

Beberapa hari yang lalu, saya yang kebetulan sedang sariawan diminta teman saya di FKG Unpad yang sedang mencari pasien sariawan, untuk datang ke tempat praktek FKG yang berada di Sekeloa (dekat Dipati Ukur). Awalnya sempat malas, tapi karena saat itu saya sedang tidak ada kerjaan dan FKG tampaknya cukup 'menarik', akhirnya saya memutuskan pergi ke sana. Saya mendaftar jadi pasien di rumah sakit FKG terlebih dahulu, kemudian baru saya diajak ke tempat prakteknya. Saat ditanya apa penyebab sariawan saya, saya tidak ingat. Mulut saya pun kemudian diperiksa. Kaca mulut, sonde, pinset, dll sudah masuk ke mulut saya. Beberapa kali seriawan saya tersentuh. Seorang temannya Gema membantu mencatat data hasil pemeriksaan. Setelah itu, giliran dosennya yang memeriksa mulut saya. Pada bagian akhir sariawan saya diberi suatu obat cair. Pesan dari teman saya untuk memperbanyak minum air dan konsumsi vitamin B12.
Menurut Dosen Gizi dari Departemen Gizi Masyarakat Sumber Daya dan Keluarga, …

Beli Bahan Tekstil dan Jasa Jahit di Bandung

Acara wisuda akan dilaksanakan pada Juli 2012 dan untuk acara tersebut saya memerlukan jas. Saya langsung googling untuk mencari tempat yang menjual jas. Sebelumnya saya sempat berpikir untuk menyewa jas saja namun karena tampaknya jas akan cukup penting nantinya dan harga penyewaan yang umumnya tidak murah maka saya memutuskan membeli. Saya mencari tempat yang menjual jas yang murah di Bandung. Hasilnya beberapa artikel menyebutkan Pasar Baru Bandung menjual berbagai bahan tekstil dan pakaian termasuk jas. Saya langsung membuka Google Maps dan mencari lokasi Pasar Baru Bandung. Berikut adalah lokasi Pasar Baru Bandung.

View Pasar Baru Bandung in a larger map

Setelah mengetahui lokasi tersebut, saya memutuskan pergi sendiri ke Pasar Baru Bandung. Tidak lupa saya menyiapkan GPS berhubung sangat lemah soal arah jalan. Alhasil, setelah sampai di dekat jembatan, sebelum jalan Suniaraja saya sempat mengambil arah yang salah dan akhirnya berputar-putar di daerah sekitar Pasar Baru (Jalan St…

My Review for Free Project Management Tools

For about a year I had used Trello as my team project management tool. It helps my team to maintain our "to do" lists. But after increasing of project numbers, as operation manager, I feel hard to maintain each of team jobs on some projects. Some tasks become untouched. After a meeting, our team realize that what team need is clear detail about "What should I do today?" or "What should my teammates do today?". We need find another project management tool. Trello uses Kanban scheme which is very adaptive. I feel it's not suitable for my team which consist of some people with different level of expertise and work on multiple projects. We need tool which is better for more prescriptive process to maintain our projects. Other features of project management tool that we need are free, simple, secure, fast, and has mobile support. First, I search on Google for "Best Free Project Management Tool". After that I decided to try four free tools, they …

Raspberry Pi Bluetooth Connection

Raspberry Pi 3 provides built-in bluetooh module. Latest Raspbian has been bundled with tools for enabling bluetooth connection. Bluetooth icon will be showed up on top right corner of the desktop. It's a tool to discover available bluetooth devices and connect Pi with bluetooth devices. It is easy to connect any bluetooth-enabled electronic device with Pi. But, sometimes Pi will fail to make a connection especially for bluetooth device which has no standarized services.

From terminal, we can use bluetoothctl tool to scan and connect with a bluetooth device. You should make sure that BlueZ protocol stack has been installed by running $ apt-get install bluez
Run bluetoothctl to enter the tool command windowTurn the power on by running power on(Optional) You can set AutoEnable=true in /etc/bluetooth/main.conf if you want to make the bluetooth auto power-on after reboot.Run devices to see which devices have been pairedRun scan on if your desired device has not paired yet.Run agent o…

How To Use Git in Netbeans

Git is a popular version control application nowadays. Recently I have created a note about its differences with SVN and how to use it in Eclipse. There are many Git client tools. But I just want to show how to use Netbeans built in Git tools. It makes development process easier because it has been integrated with the IDE.
Create Remote Git Repository We need remote Git repository so everyone can store or receive any revision or updated files through the networks. We can setup our own Git server or use public Git server like Github. In this note, I use Github. 1. Create an account in Github and create an empty Git repository
2. Get the remote repository link
Create a New Project in Netbeans and Create Local Git Repository After we have a remote Git repository, we can create a project which will be stored to remote repository. We also need to create local repository before we can push any revision and files to remote repository. 1. Create a project. For example, I create PHP Application…