Berawal dari dibukanya situs http://www.arinet.org dan rasa ingin tau yang lebih nyampe menghayal dapat menyampaikan informasi kepada orang tua siswa disekolah dengan mudah dan tanpa biaya yang tinggi maka dimulailah ngoprek yang namanya kannel.
Menurut aku kannel itu cuma suatu software yang menjadi perantara PC dan Modem GSM sehingga bisa terkirimnya suatu text yg dibuat di PC ke mobile phone (HP). Bijimana proses installasi kannel ? nah ini dia yang akan aku coba untuk sharing.
Pertama-tama yang aku lakukan adalah download kannel nya di http://www.kannel.org/download.shtml yang aku download adalah gateway.tar.gz karena aku pake Distro Linux OpenSuse 10.2. Awalnya sih aku download yang Fedora Package tapi pas aku rpm -ivh kaga mau jalan he…….he………he terus aku coba yang Debian Package sama juga ngak mau jalan akhirnya aku coba aja yang gateway dan Alhamdulillah berjalan dengan baik. Nah sebagai bahan masukan dari pengamalan ini bahwa compilasi dari source lebih memudahkan dari pada menggunakan Package yang telah ada. Setelah aku download file gateway.tar.gz mulai lah aku pasang modem GSM Itegno di USB port.Timbul suatu pertanyaan dalam diriku yang baru ngoprek kannel apakah ada Driver yang support Modem ini ? Gimana mengetahui bahwa modem ini dapat terdetectsi sama OpenSUSE 10.2 ? lama aku mikir dan muter-muter tanya ke kakek segala tau Mbah Google akhirnya aku dapet di situsnya Mas Fajar bahwa dengan perintah
#tail -f /var/log/messages
Ini pun gak langsung terdetectsi setelah pusing2 mikirin ternyata PC yang aku pake port USB yang depan tidak di pasang sampe akhirnya muncul juga pesan bahwa modem GSM terdetect seperti berikut
Oct 20 13:38:47 bonni_tea kernel: usb 2-2: new full speed USB device using
uhci_hcd and address 2
Oct 20 13:38:48 bonni_tea kernel: drivers/usb/serial/usb-serial.c: USB Serial
support registered for Generic
Oct 20 13:38:48 bonni_tea kernel: usbcore: registered new driver usbserial_generic
Oct 20 13:38:48 bonni_tea kernel: usbcore: registered new driver usbserial
Oct 20 13:38:48 bonni_tea kernel: drivers/usb/serial/usb-serial.c: USB Serial
Driver core v2.0
Oct 20 13:38:48 bonni_tea kernel: drivers/usb/serial/usb-serial.c: USB Serial
support registered for PL-2303
Oct 20 13:38:48 bonni_tea kernel: pl2303 2-2:1.0: PL-2303 converter detected
Oct 20 13:38:48 bonni_tea kernel: usb 2-2: PL-2303 converter now attached
to ttyUSB0
Oct 20 13:38:48 bonni_tea kernel: usbcore: registered new driver pl2303
Oct 20 13:38:48 bonni_tea kernel: drivers/usb/serial/pl2303.c: Prolific PL2303
USB to serial adaptor driver v0.12
Ini baru awal keberhasilan modem terdetect pada PC, aku udah mulai tersenyum hi….hi.
Mulailah installasi kannel dengan perintah
- #cd /program
- #mkdir kannel
- #cd /var/log
- #mkdir kannel
- #cp gateway-1.4.1.tar.gz /usr/local/src
- #cd /usr/local/src
- #tar -xzvf gateway-1.4.1.tar.gz
- #cd gateway-1.4.1
- #./configure –-prefix=/program/kannel
- #make
- #make install
Beres sudah proses installasi kannel sekarang tinggal configurasi kannel.conf nya. Untuk kannel.conf aku copy aja yang punya Mas Fajar arinet seperti terlampir.
# CORE
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = password
status-password = password
log-level = 0
log-file = “/var/log/kannel/kannel.log”
access-log = “/var/log/kannel/access.log”
store-file = “/var/log/kannel/kannel.store”
# SMSC Fake
#group = smsc
#smsc = fake
#host = localhost
#port = 14013
# SMSC MODEM GSM
group = smsc
smsc = at
host = localhost
port = 13013
smsc-id = itegno
modemtype = wavecom
device = /dev/ttyUSB0
speed = 115200
#sms-center disesuaikan dengan simcardnya
#untuk Telkomsel: +6281100000
#untuk XL: +62818445009
#untuk Satelindo: +62816124
sms-center = +6281100000
group = modems
id = WAVECOM
name = wavecom
detect-string = WAVECOM
init-string = “AT+CNMI=2,1,0,0,0;+CMEE=1″
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = “0123456789+”
#global-sender disesuaikan dengan sms-centernya
global-sender = +6281100000
log-level = 0
log-file = “/var/log/kannel/smsbox.log”
access-log = “/var/log/kannel/access.log”
# SEND-SMS USERS
group = sendsms-user
username = kurniawan
password = rahasia
# SMS SERVICE ‘Default’
# there should be default always
group = sms-service
keyword = default
accept-x-kannel-headers = true
max-messages = 0
assume-plain-text = true
catch-all = true
Setelah aku copy file kannel.conf nya tinggal coba menjalankan kannel ini dengan cara
Apabila terlihat pesan sebagai berikut berarti kesuksesan sudah didepan mata.
2008-10-20 13:46:02 [2991] [0] INFO: Added logfile `/var/log/kannel/kannel.log’
with level `0′.
2008-10-20 13:46:02 [2991] [0] INFO: Started access logfile `/var/log/kannel/access.log’.
2008-10-20 13:46:02 [2991] [0] INFO: HTTP: Opening server at port 13000.
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2008-10-20 13:46:02 [2991] [0] DEBUG: starting smsbox connection module
2008-10-20 13:46:02 [2991] [0] INFO: BOXC: ‘smsbox-max-pending’ not set,
using default (100).
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2008-10-20 13:46:02 [2991] [0] INFO: Set SMS resend frequency to 60 seconds.
2008-10-20 13:46:02 [2991] [0] INFO: SMS resend retry set to unlimited.
2008-10-20 13:46:02 [2991] [0] INFO: DLR rerouting for smsc id <itegno>
disabled.
2008-10-20 13:46:02 [2991] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [0] INFO: AT2[itegno]: configuration shows
modemtype <wavecom>
2008-10-20 13:46:02 [2991] [0] DEBUG: AT2[itegno]: Reading modem definitions
from <kannel.conf>
2008-10-20 13:46:02 [2991] [0] DEBUG: AT2[itegno]: Found <1> modems
in config
2008-10-20 13:46:02 [2991] [0] INFO: AT2[itegno]: modemtype not found,
revert to autodetect
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
2008-10-20 13:46:02 [2991] [0] INFO: —————————————-
2008-10-20 13:46:02 [2991] [0] INFO: Kannel bearerbox II version 1.4.1
starting
2008-10-20 13:46:02 [2991] [0] DEBUG: Started thread 8 (gw/bb_store.c:store_dumper)
2008-10-20 13:46:02 [2991] [0] INFO: MAIN: Start-up done, entering mainloop
2008-10-20 13:46:02 [2991] [0] DEBUG: AT2[itegno]: start called
2008-10-20 13:46:02 [2991] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [6] DEBUG: AT2[itegno]: detecting modem type
2008-10-20 13:46:02 [2991] [6] INFO: AT2[itegno]: opening device
2008-10-20 13:46:02 [2991] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [7] DEBUG: sms_router: time to sleep 30.00
secs.
2008-10-20 13:46:02 [2991] [7] DEBUG: sms_router: gwlist_len = 0
2008-10-20 13:46:02 [2991] [8] DEBUG: Thread 8 (gw/bb_store.c:store_dumper)
maps to pid 2991.
2008-10-20 13:46:02 [2991] [8] DEBUG: Dumping 0 messages to store
2008-10-20 13:46:02 [2991] [6] DEBUG: AT2[itegno]: device opened
2008-10-20 13:46:03 [2991] [6] DEBUG: AT2[itegno]: device opened
2008-10-20 13:46:03 [2991] [6] INFO: AT2[itegno]: speed set to 115200
2008-10-20 13:46:03 [2991] [6] DEBUG: AT2[itegno]: –> ^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> AT^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> AT&F^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> ATE0^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> ATI^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– WAVECOM MODEM
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– MULTIBAND 900E
1800
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: found string <WAVECOM>,
using modem definition <wavecom>
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> AT+CSMS=?^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– +CSMS: (0,1)
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:05 [2991] [6] INFO: AT2[itegno]: Phase 2+ is supported
2008-10-20 13:46:05 [2991] [6] INFO: AT2[itegno]: closing device
2008-10-20 13:46:05 [2991] [6] INFO: AT2[itegno]: opening device
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: device opened
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: device opened
2008-10-20 13:46:05 [2991] [6] INFO: AT2[itegno]: init device
2008-10-20 13:46:05 [2991] [6] INFO: AT2[itegno]: speed set to 115200
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> ATZ^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> AT^M
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:05 [2991] [6] DEBUG: AT2[itegno]: –> AT&F^M
2008-10-20 13:46:06 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:06 [2991] [6] DEBUG: AT2[itegno]: –> ATE0^M
2008-10-20 13:46:06 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:06 [2991] [6] DEBUG: AT2[itegno]: –> AT+IFC=2,2^M
2008-10-20 13:46:06 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:06 [2991] [6] DEBUG: AT2[itegno]: –> AT+CPIN?^M
2008-10-20 13:46:06 [2991] [6] DEBUG: AT2[itegno]: <– +CPIN: READY
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: –> AT+CSCA=”+62818445009″^M
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: –> AT+CMGF=0^M
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: –> AT+CSMS=?^M
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: <– +CSMS: (0,1)
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:17 [2991] [6] INFO: AT2[itegno]: Phase 2+ is supported
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: –> AT+CSMS=1^M
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: <– +CSMS: 1,1,1
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: –> AT+CNMI=2,1,0,0,0;+CMEE=1^M
2008-10-20 13:46:17 [2991] [6] DEBUG: AT2[itegno]: <– OK
2008-10-20 13:46:17 [2991] [6] INFO: AT2[itegno]: AT SMSC successfully
opened.
with level `0′.
2008-10-20 13:53:24 [3088] [0] INFO: Service global sender set as ‘+62818445009′
2008-10-20 13:53:24 [3088] [0] INFO: Logging accesses to ‘/var/log/kannel/access.log’.
2008-10-20 13:53:24 [3088] [0] INFO: Started access logfile `/var/log/kannel/access.log’.
2008-10-20 13:53:24 [3088] [0] INFO: HTTP: Opening server at port 13013.
2008-10-20 13:53:24 [3088] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2008-10-20 13:53:24 [3088] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2008-10-20 13:53:24 [3088] [0] INFO: Set up send sms service at port 13013
2008-10-20 13:53:24 [3088] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2008-10-20 13:53:24 [3088] [0] DEBUG: ——————————
2008-10-20 13:53:24 [3088] [0] DEBUG: Kannel smsbox version 1.4.1 starting
2008-10-20 13:53:24 [3088] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
20086-10-20 13:53:24 [3088] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 3088.
2008-10-20 13:53:24 [3088] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 3088.
2008-10-20 13:53:24 [3088] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread)
maps to pid 3088.
2008-10-20 13:53:24 [3088] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2008-10-20 13:53:24 [3088] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2008-10-20 13:53:24 [3088] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread)
maps to pid 3088.
2008-10-20 13:53:24 [3088] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread)
maps to pid 3088.
2008-10-20 13:53:24 [3088] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread)
maps to pid 3088.
2008-10-20 13:53:29 [3088] [0] INFO: Connected to bearerbox at localhost
port 13001.
2008-10-20 13:53:29 [3088] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2008-10-20 13:53:29 [3088] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread)
maps to pid 3088.
boleh juga nih bos di coba…..
Comment by yamin — February 20, 2008 @ 7:55 am |