SMS based result declaration in Java using Mobile as Modem

Implementation Details
Send Result SMS :
Send result function will take result name, sms centre, COM port no and departments as parameters. Application Connects to GSM Modem on specified COM port. Communication between application and Modem are implemented using Java Communication API that provides serial communication implementation support with device. One by one several commands are passed to Modem and that prepares device for sending SMS. This process continuous for all the student records that match criteria.
SMS packet containing data part, receiver’s no, smsc centre no, encoding scheme (7 or 8 bit) is sent from PC to Modem using AT Commands. We have made the use of AT Commands in order to use Mobile phone as Modem. SMS related AT Commands, for example AT+CMSC etc are used to Send Result.
SMS Datagram 7-bit Encoding scheme algorithm implemented that is like datagram of any other protocol TCP.
The following example shows how to send the message "hellohello" in the PDU mode from Sony Ericsson 810i.
STEPS:
AT+CMGF=0 //Set PDU mode
AT+CSMS=0 //Check if modem supports SMS commands
AT+CMGS=23 //Send message, 23 octets (excluding the two initial zeros)
>0011000B916407281553F80000AA0AE8329BFD4697D9EC37
There are 23 octets in this message (46 ‘characters’). The first octet ("00") doesn’t count, it is only an indicator of the length of the SMSC information supplied (0).

0 comments:

Post a Comment