DAY 4- 10 JULY 2012
Morning Session
Assalamualaikum...
As usuall,my training day will started with update my
blog first before proceed to training and learning session. But, unfortunately
the internet connection here is always limited. After completed soldering
process, it will continue with the test of circuit process. After complete soldering
process, the PIC board will be tested by using vibration sensorand LCD to make
sure it's well-function. The test is conducted using PIC C compiler software.
Before the PIC board is test, coding must be done. The test is conducted to
test :
i. power led
ii. vibrator sensor
Ic that has been programmed must be attached on PIC
board. After connect the vibrate sensor to the circuit, the vibrate sensor must
be shake off to check the functionality of the circuit.
Once we shake the vibrate sensor,the led will turn on
every time we shake the sensor.
iii. display on LCD by activate relay
An IC also has been programmed with LCD coding
functioning. Once we connect the circuit to LCD panel and turn on the circuit,
the lcd will display a word "Hello Word" same as have been set in
programming.
Afternoon Session
After complete with PIC pcb soldering task, we have be
given a new task by Mr.Mazran. Our new tast is to study about GSM Modem and AT
Command. We need to open Cytron website and study about that.
GSM Modem
GSM modem is specialized type of modem that operates over
subscription based wireless networks which is similar to a mobile phone. A GSM
modem accepts a SIM card, and basically acts like a mobile phone for the
computer. Traditional modem is attached to computers for ‘dial-up’ to connect
with other computer systems. A GSM modem operates in a similar fashion, except that
it sends and receives data through radio waves rather than a telephone line.
GSM/ GPRS modem can be connected directly to our computer's serial port for
wireless GSM communications including sending and receiving text messages.
Receiving SMS.
1. Set up the GSM Modem following step 1 – 6 in the
previous section.
2. Once the GSM Modem is ready, we can use a mobile
phone to send a SMS to the modem.
3. The following response received from the modem indicates a new SMS is received.
The last character indicates the memory index number, we use this index to read or delete this message. In this case, the index number is 1.
4. To list out all the available SMS in the SIM card, we can use the following command:
And the modem will respond with a list of SMS messages
in the SIM card.
The responding messages are formatted like this:-
+CMGL:
<index>,<status>,<from_address>,<mr>,<scts><CRLF><data>
· Index – The memory index number, use this index to
read or delete this message.
· Status – The status of this message. There might be
"REC READ" or "REC UNREAD" for received messages depending
on whether the messages have been read or listed before.
· from_address – The subscriber number of the sender.
· mr - The reference number of this message. Most modems
keep this field empty.
· Scts - The time when the message is forwarded to this
phone or modem.
· data – The actual message data in plain text.
5. To read a single message, we have to use the read
command. We must first know the index of the message. For instance, to read the
message on memory location 1, we use
The modem will respond as follows:-
Please note that the status of the message is now
"REC_READ" instead of "REC_UNREAD" because we have read the
message.
6. Once we have read a message, we can free the memory
by deleting the message from the storage. For instance, to delete the message
on memory location 1, we use:
The modem will delete the message and return to “OK”.
No comments:
Post a Comment