kirtan
Junior Member level 2
I am trying to interface SIM300 GSM modem with LPC2148.
When i send an at command to modem, i get the echo of command send. But after sending '\r' at the end of the AT command i do not get the response.
To illustrate the problem part of interest in the code is as follows
send_string("AT+CREG?");
sendchar('\r');
buf_rx=read_string();
These are functions with dedicated code for sending string, character and reading string written.
buf_rx received is displayed on the LCD display available on the kit
The buf_rx in above case shows AT+CREG? followed by Ascii character for \r.
When i check the modem on hyperterminal it works normal.
Kindly help me to know why do i not receive the response following the command.
thanks in advance
Kirtan
When i send an at command to modem, i get the echo of command send. But after sending '\r' at the end of the AT command i do not get the response.
To illustrate the problem part of interest in the code is as follows
send_string("AT+CREG?");
sendchar('\r');
buf_rx=read_string();
These are functions with dedicated code for sending string, character and reading string written.
buf_rx received is displayed on the LCD display available on the kit
The buf_rx in above case shows AT+CREG? followed by Ascii character for \r.
When i check the modem on hyperterminal it works normal.
Kindly help me to know why do i not receive the response following the command.
thanks in advance
Kirtan