This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot access the message from GSM Mdem to Microcontoller

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..

Parents
  • "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...

Reply
  • "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...

Children