We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
can any one help me with the code for the gsm modem interfacing with 8051
Google can.
www.lmgtfy.com
www.8052.com/.../160143
i am not able to understand what i have to send from my mobile is it the at command???
What does your mobile have to do with it?
You said you were interfacing to a modem?!
Before going to the program please understand the GSM module, hope you know that it works with AT commands Try these commands on GSM module by connecting to PC's hyperterminal
Examples>>
TO CHQ GAIN - AT+CSQ=? TO CHK NETWORK - AT+COPS=?
Examples for send and receive SMS
For sending SMS in text Mode:
AT+CMGF=1 press enter AT+CMGS=”mobile number” press enter Once The AT commands is given’ >’ prompt will be displayed on the screen. Type the message to sent via SMS. After this, press ctrl+Z to send the SMS. If the SMS sending is successful, “ok” will be displayed along with the message number.
For reading SMS in the text mode: AT+CMGF=1 Press enter AT+CMGR= no. Number (no.) is the message index number stored in the sim card. For new SMS, URC will be received on the screen as +CMTI: SM ‘no’. Use this number in the AT+CMGR number to read the message. Voice call Initiating outgoing call: ATD+ mobile number; press enter For disconnecting the active call: ATH press enter For receiving incoming call: ATA press enter
i am trying to control the operation through the mobile wirelessly through sms and nt through the hyper terminal
you will control some operations using SMS right? Then how you will read received SMS(containing control operation) to GSM from the mobile? So try out some commands to read SMS as I have sent it in previous post, then start reading for that same SMS and control devices
ok thanks i will try it but do i have to send the at command as an sms
do i have to send the at command as an sms NO send simple control message from mobile to GSM and read the same using GSM module(using "AT+CMGR=no." command) then do the operation depends on message content
Think about it: what is your system (the 8051+modem) going to do with the message when it receives it...?
The OK just indicates that the AT Command was accepted by the modem - it does not indicate succesful transmission of the message!
The message is not confirmed as sent until you subsequently receive the Message Reference (MR) number.
But the OP's project is receiving the message - not sending it.
Thanks for the reply. After receiving the control messegage it will operate the appropriate relay.
got it i will try accordingly.