Berikutnya blog gwe bakal jadi Journal Skripsi yg gwe bikin
"PEMBERI MAKAN DAN OBAT ANTIBIOTIK AQUARIUM IKAN LOUHAN DENGAN MEDIA SMS BERBASIS MIKROKONTROLER AT89S51"
ide itu muncul ketika gwe dikomplain oleh temen, gwe ketiban tanggung jawab memberi makan ikan louhan milik dia. karena dia harus pulang untuk jangka waktu yang lama. nah naasnya gwe kelupaan memberi makan itu ikan, akhirnya ikan itu mati dan gwe kena semprot HUH Sialan... sapa yg salah coba....
Ternyata semua device serial bisa berkomunikasi dengan mikrokontroler, itu berkat adanya komunikasi data yang sinkron dengan mengambil Format PDU pada SMS
"Receiving a message in the PDU mode
The PDU string contains not only the message, but also a lot of meta-information about the sender, his SMS service center, the time stamp etc. It is all in the form of hexa-decimal octets or decimal semi-octets. The following string is what I received on a Nokia 6110 when sending the message containing "hellohello" from www.mtn.co.za."
07 917283010010F5 040BC87238880900F10000993092516195800AE8329BFD4697D9EC37
Pada format PDU diatas, bisa dijelaskan
This octet sequence consists of three parts: An initial octet indicating the length of the SMSC information ("07"), the SMSC information itself ("917283010010F5"), and the SMS_DELIVER part (specified by ETSI in GSM 03.40).
Octet(s) Description
07 Length of the SMSC information (in this case 7 octets)
91 Type-of-address of the SMSC. (91 means international format of the phone number)
72 83 01 00 10 F5 Service center number(in decimal semi-octets). The length of the phone number is odd (11), so a trailing F has been added to form proper octets. The phone number of this service center is "+27381000015". See below.
04 First octet of this SMS-DELIVER message.
0B Address-Length. Length of the sender number (0B hex = 11 dec)
C8 Type-of-address of the sender number
72 38 88 09 00 F1 Sender number (decimal semi-octets), wit
Berkat format PDU diatas mikrokontroler dapat berkomunikasi langsung dengan Ponsel kita, gwe berkesimpulan kita bisa memerintahkan sebuah device yang terkontrol oleh mikrokontroler dengan format text SMS yang bisa dikonversikan sehingga Mikrokontroler mengenali perintah syntax
Text SMS Diterjemahkan ke dalam bahasa Mikrokontroler dengan menggunakan AT COMMAND
berikut beberapa contoh syntax bahasa AT untuk memerintahkan PONSEL mengetikkan SMS dan mengirimkannya
Examples:
Please check if your current firmware supports SMS commands.
AT+CSMS=0
+CSMS: 1,1,0 ; Only
OK
Important Note :
If the card returns ERROR, then the modem does not support SMS. Please try updating with the latest GSM Activation Kit for GSM-Ready, or for GSM-Only.
AT+CPMS?
AT+CPMS: "SM",1,10,"ME",4,5
OK
AT+CPMS="ME","SM" ; Swap memories
OK
AT+CMGF=1 ; select text-mode (DEFAULT!!)
OK
AT+CSCA="+3275161616" ; Enter SCA number ( for Belgium, Proximus) This number is operator and country dependent. Please check with your local provider.
OK
AT+CNMI=1,1,0,0,0 ; Enable de reception of SM's
+CMTI: "ME",3 ; a SM is received and stored in ME, index 3
AT+CPMS="ME" ; Make sure memory is OK
OK
AT+CMGR=3 ; Read message
+CMGR: "REC UNREAD",,,
Hello world
OK
AT+CMGL=4 ; Read all messages in ME
+CMGL: 3,"REC UNREAD",,, ; --> Only index 3 en 5 are used
Hello world
Send Message :
AT+CMGS="075261001" ; Send message to "075261001"
> Honey….put my dinner in the microwave. I'm on my way!!^Z (Ctrl+Z to finish and send the message)
+CMGS: 3 ; OK, message gone
OK
Important ERROR messages:
CMS Errors:
300: ME Failure;
302: Operation not allowed;
303: Operation not supported;
304: Invalid PDU mode parameter;
305: Invalid text mode parameter;
320: memory failure;
321: invalid memory index;
322: memory full;
330: SCA unknown;
500: Unknown error
nah semakin jelas kiranya kita bisa mengontrol sebuah device dari jarak jauh dengan menggunakan SMS di ponsel kita
Ary Blog....
bloging everythings....
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home