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

GSM MODEM INTERFACE

hello everyone ,
i am facing a strange situation.
i simply sent AT<CR> to gsm modem but in response receive only CR and character A instead of proper response i.e. <cr><lf>ok<cr><lf>
already tied DTE and RTS pins to +5v for handshaking.

with hyperterminal everything was ok but this is not the case with uc.I also read previous threads but nothing worked.

Any idea which can help?????

thanks n regards
rishi

Parents Reply Children
  • The UART is (at least) single-buffered, i.e. when it has received a character, it moves it to the receive register and then give you a full character transmit time to pick up the receievd character.

    8n1 givs 10 bits at 115200 baud (followed by a short pause before the next character) and means that you have at least 90 us to react.

    So you pick upp all characters first - and then emit all received characters? That should avoid problems with difference in baudrate between GPS and debug serial port, and time required for whatever method you use to emit the debug info.