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

8051 with GSM

Hi, I am using 8051 to control teh GSM module. Both are working fine with the terminal commands. But when I send the same command from the controlle rto modem, modem is not responding. i iwant the information from teh modem. so first I send the command and then I activated the serial interrupt to recive the data from the modem. Some where I am missing it out. Can somebody help me in thsi regard.thank you

Parents Reply Children
  • ...first I send the command and then I activated the serial interrupt to recive the data from the modem.

    You should not wait until you have sent a command to the modem until you set up and enable your serial interrupt routine. You do that first of all, so it is ready to capture all data - including any possible echo from sending the command.

    If using interrupts to receive data, it is often smart to use interrupts for sending data too. This leaves your application ready to process other I/O while the command is sent out.