Академический Документы
Профессиональный Документы
Культура Документы
Fig.16 SMS received by JE and Line man 2 showing line 2 is operated off
If the fourth byte of the command is 2 then the communication for sending sms to line man 2. Arduino
arduino prints ‘COMMAND FOR GMR LINE 2’. After commands the GSM module to send an sms to line man
that digital write command arduino checks for the mode 2 with ‘line 2 is operated on’ as the message body.
of switch that is it checks for the digit of the unique Once this process is done arduino receives feedback and
code of command whether it is 1 or 0. In this case it writes ‘sms sent to line man 2’ in the serial monitor
equals 1 as noted from fig.17, then it is indication to window. This whole process runs on time delay in order
turn the line 2 of GMR on. Post to that arduino responds to prevent miscommunication between the arduino and
to the code and initiates a command signal to operate GSM module which would be a major threat.
line 2 on. After a few minutes of delay arduino digitally
writes ‘GMR line 2 on’ and after a few moments it also
writes ‘sending sms to je’ as shown in fig. 19.