INTERFACE GSM MODEM WITH 8051
H R U ?
AJAY
I M ON A PROJECT TO INTERFACE GSM MODEM WITH 8051
CAN U GIVE ME SUM INFORMAION
I AM ABLE TO SEND AT OMMANDS
I.E
SEND N READ MESSAGE FROM IT USING HYPER TERMINAL
I KNOW THAT AT+CMNI
IS THE NEW MESSAGE IDENTIFICATION COMMAND BUT HOW CAN I USE IT ??????????
AT+CNMI: New Message indication to TE
Command Possible response(s) +CNMI=[[, [, [, [, ]]]]] +CNMI?+CNMI: , , , , +CNMI=?+CSCB: (list of supported s, s, s, s, s) : 0: buffer in TA;
1: discard indication and reject new SMs when TE-TA link is reserved; otherwise forward
directly;
2: buffer new Sms when TE-TA link is reserved and flush them to TE after reservation;
otherwise forward directly to the TE;
3: forward directly to TE;: 0: no SMS-DELIVER are routed to TE;
1: +CMTI:, routed to TE;
2: for all SMS_DELIVERs except class 2: +CMT: .... routed to TE;
class 2 is indicated as in=1;
3: Class 3: as in=2;
other classes: As in=1; : same as , but for CBMs; : 0: No SMS-STATUS-REPORT are routed to TE;
1: SMS-STATUS-REPORTs are routed to TE, using +CDS: ...: 0: TA buffer is flushed to TE (if =1..3);
1: TA buffer is cleared (if=1..3);
---> Only whenis different from 0, you will get a message that a new SMS has been received.
By the way which mobile phone you are using? and go through the AT command manual of that phone.
Command syntax in text mode : AT+CNMA
Command syntax in PDU mode : AT+CNMA [ = <n> [ , <length> [ <CR>
PDU is entered <ctrl-Z / ESC> ] ] ]
Note: PDU is entered using <ackpdu> format instead of <pdu> format (e.g..
SMSC address field is not present).
Example of acknowledgement of a new message in TEXT mode
Command Possible responses
AT+CSMS=1 OK
Note: SMS AT commands
compatible with GSM 07.05
Phase 2 + version
AT+CMGF=1 OK
Note: Set TEXT mode
Note: TEXT mode valid OK
AT+CNMI=2,2,0,0,0
Note: <mt>=2
+CMT: “123456â€,â€98/10/01,12:30 00+00â€, 129, 4,
32, 240, “15379â€, 129, 5<CR><LF>
Received message
Note: message received
AT+CNMA OK
Note: acknowledge the message Note: send positive acknowledgement to the
received network
AT+CNMA +CMS ERROR: 340
Note: try to acknowledge again Note: no +CNMA acknowledgment expected
Salam waley Kum.
Please let us know what is your final object/application using GSM with 8051?So at least we can give you information related to your specific application.Also let me know which GSM module/mobile/media you are using? We may able to provide you information regarding the same
sir
i m using samsung c100 mobile as a gsm modem
i m able to send
AT Commands
using Hyper terminal
i want to know how to receive new message from gsm using 8051
i know the command
AT+CNMI
but it replies with some numbers like
(3,0)(3,0)(0,0)(0,0)
ok
now how can i red the new message
and what is CNMA
new message acknolegment
thx
i wanted to interface a gsm module to a 8051 microcontroller..the main purpose of the module would be to send a SMS to a specific number..can you please tell me how to start and use AT command to send the sms...i havent tried out nething so ne suggestions would be helpful...
thanks in advance...
after that send sms with the appropriate command from manual.
can any body suggest me?
i m also doin d same project ... i m able to use at commans at lcd using hyperterminal...now pls help me to proceed further... aim is to reciev msg at lcd sent thru a mobile... modem is wavecomm
are you using OpenAT (preferable) or microcontroller?