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.

Comments

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

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

Kerusakan pada Motherboard

1. Sering terjadi hang memory tidak cocok --- ganti memory ada virus di harddisk --- scan harddisk over clock --- seting kembali clock prosesor ada bad sector di harddisk --- partisi harddisk dengan benar 2. Pembacaan data menjadi lambat memori tidak cukup --- tambah memori harddisk penuh atau ada virus --- kurangi isi harddisk, scan harddisk, atau ganti hardisk 3. CMOS failure baterai habis --- ganti baterai CMOS seting BIOS berubah --- seting kembali BIOS 4. Tidak bisa booting cache memory rusak --- disable eksternal cache memory di BIOS memori tidak cocok --- ganti memori boot sector pada harddisk rusak --- masukkan operating system baru ada bad sector pada trek awal harddisk --- partisi harddisk 5. Suara bip panjang berkali-kali memori rusak --- periksa kedudukan memori memori tidak cocok --- ganti memori memori tidak masuk slot dengan sempurna --- periksa kembali kedudukan memori 6. Suara bip bagus tetapi tidak ada tampilan / bip dua kali VGA card

Itachi Uchiha

The Real Hero of Konoha

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 Kelu

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 window Turn 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 paired Run scan on if your desired device has not pair