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.
Hi, I can send the command "AT+CMGR=1" To GSM modem, but after that i cannot access the message from it. The modem is "Iwow" and microcontroller is 89c52. I have used Tx, Rx and ground pin of RS232. whether it is necessary to use RTS and CTS pins for this modem? When i send the command "AT+CMGR=1" to GSM modem, a pulse will be coming at TI pin of microcontroller. meanwhile there is no pulse at RI pin, indicating no message has been retrieved from GSM modem. But if i connect it to Hyperterminal i can read the message.
Please find a solution to this problem..
I have used Tx, Rx and ground pin of RS232. whether it is necessary to use RTS and CTS pins for this modem?
Did you take into account that the pins on the microcontroller do not have RS-232 voltage levels, and that a RS-232 transceiver (e.g. MAX232) may be necessary to interface the microcontroller to a RS-232 device ?
In the worst case, directly connecting the microcontrollers RX and TX lines to RS-232 voltage levels can damage the microcontroller.
"whether it is necessary to use RTS and CTS pins for this modem?" Quite possibly - Check in the modem's Manual.
Also Search here for the many previous discussions on this very subject...
"When i send the command "AT+CMGR=1" to GSM modem, a pulse will be coming at TI pin of microcontroller"
What do you mean by that? Do you mean that you have used an oscilloscope to verify that serial data is being emitted by the microcontroller?
Note that the string "AT+CMGR=1" will require significantly more than just one pulse at the Tx pin!
Note also that AT Commands need to be terminated with a CR character, ASCII code 0x0D.
Was the baud rate correct?
If the modem requires RS232 levels, do you have the appropriate transceiver?
Is your cable wired correctly - the microcontroller's Tx output should connect to the modem's TD input
"if i connect it to Hyperterminal i can read the message."
Do you use exactly the same cable & settings in hypoterminal as for the microcontroller?
Note that you can test your code in the uVision simulator by directing the simulated serial IO to the PC's COM port...
i get error when making code and i cannot run it. it gives me error cl4053 code is not in segment m452. what is wrong?????????
What is wrong? That you seem to be in the wrong thread. Your post doesn't seem to be an answer to the OP question about problems with a GSM modem.
What is wrong? That you haven't spent any time to describe your problem, giving relevant - and required - background information.
What is wrong? That you think you can get a higher priority by using a message header mentioning 'urgent'.
What is wrong? That you think you can get a higher priority by using an anonymous name that implies that your question is more important than other peoples questions.
What is wrong? That you haven't noticed the quite common convention of beginning sentences with an upper-case letter.
What is wrong? That you think your question gets a higher priority if you end it with a large number of question marks.
I don't believe that "error cl4053" is even a C51 error code?
I have used MAX232 as a transceiver( To convert to TTL LEVEL). Programming is done using C code. When i send the AT command like, AT+CMGR=1 a pulse wil be observed at TI pin of Microcontoller(checked using digital probe). But later, pulse is not observed at RI pin.since there is no indication of data at RI pin, the program will halt at the statement- while(RI==0);
wether GSM modem is not accepting that format?( GSM Modem used is of 'IWOW').
"When i send the AT command like, AT+CMGR=1 a pulse wil be observed at TI pin of Microcontoller"
I asked you to explain what that meant - you haven't explained it, you have simply repeated it!
You haven't stated specifically what chip you're using - there are many different variants from different manufacturers with "89C52" as the basic number. You need to state manufacturer, and include all prefix and suffix details.
eg, the Philips (now NXP) P89C51X2/52X2/54X2/58X2 don't have a "TI" pin.
I'm assuming you mean the TxD pin - which is the UART output?
Similarly, there is no "RI" pin - do you mean RxD, the UART input?
"a pulse wil be observed at TI pin of Microcontoller"
Why do you say "a pulse"? - do you really mean just one, single pulse? If you are seeing just one, single pulse, then that is certainly wrong! You should see a whole stream of pulses as the UART sends the "AT+CMGR=1" string!
"checked using digital probe"
What kind of "digital probe"? You need to use an oscilloscope and check that the pulses are well-formed and have the correct timing.
You need to check that the pulses arrive at the modem's input pin.
Did you confirm whether the modem requires RTS and/ot CTS?
Did you do the Search?
Did you note that AT Commands need to be terminated with a CR character, ASCII code 0x0D?
Did you check your cable wiring?
Did you check your baud rate setting?
Did you try the simulator?
If you connect the microcontroller to hypoterminal, do you see the string sent correctly?
"GSM Modem used is of 'IWOW'"
Never heard of it. Please post a link.