Hi, I’m working on my final project which a passenger monitoring system. The system does the following: 1. Count the total number of passengers in a vehicle(data)
2. Count the number of available and occupied (data)
3. Send the needed data using GSM module.
ex. if send msg “status” i’ll receive the second data
if send “total” I’ll receive the first data.
I’m using arduino uno atmega 328p, Infrared sensor for each seat in a vehilce, and a gsm module.
I need a help in coding my prototype using only 2 sensors and gsm module
sorry for delay,
you want to send a " status" to GSM and GSM send indicating the nuber.
ok, you want to send for same number you send the SMS or for default number you bout it ??
for GSM you need to use AT command:
first you need to send “AT”
“AT”
this for make gsm ready to take the command.
then send “AT+ CMGF=1”
to enable SMS.
and to send SMS :
“AT+CMGS=“thenumber””
“the message”
and 0x1a to end the message.
/////////////////////////////////////
to take a SMS message:
“AT+CNMI=2,2,0,0,0”