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

code for gsm modem interfacing to 8051

can any one help me with the code for the gsm modem interfacing with 8051

Parents
  • Before going to the program please understand the GSM module, hope you know that it works with AT commands
    Try these commands on GSM module by connecting to PC's hyperterminal

    Examples>>

    TO CHQ GAIN - AT+CSQ=?
    TO CHK NETWORK - AT+COPS=?

    Examples for send and receive SMS

    For sending SMS in text Mode:

    AT+CMGF=1 press enter
    AT+CMGS=”mobile number” press enter
    Once The AT commands is given’ >’ prompt will be displayed on the screen.
    Type the message to sent via SMS. After this, press ctrl+Z to send the SMS.
    If the SMS sending is successful, “ok” will be displayed along with the message number.

    For reading SMS in the text mode:
    AT+CMGF=1 Press enter
    AT+CMGR= no.
    Number (no.) is the message index number stored in the sim card. For new SMS, URC will be received
    on the screen as +CMTI: SM ‘no’. Use this number in the AT+CMGR number to read the message.
    Voice call
    Initiating outgoing call:
    ATD+ mobile number; press enter
    For disconnecting the active call:
    ATH press enter
    For receiving incoming call:
    ATA press enter

Reply
  • Before going to the program please understand the GSM module, hope you know that it works with AT commands
    Try these commands on GSM module by connecting to PC's hyperterminal

    Examples>>

    TO CHQ GAIN - AT+CSQ=?
    TO CHK NETWORK - AT+COPS=?

    Examples for send and receive SMS

    For sending SMS in text Mode:

    AT+CMGF=1 press enter
    AT+CMGS=”mobile number” press enter
    Once The AT commands is given’ >’ prompt will be displayed on the screen.
    Type the message to sent via SMS. After this, press ctrl+Z to send the SMS.
    If the SMS sending is successful, “ok” will be displayed along with the message number.

    For reading SMS in the text mode:
    AT+CMGF=1 Press enter
    AT+CMGR= no.
    Number (no.) is the message index number stored in the sim card. For new SMS, URC will be received
    on the screen as +CMTI: SM ‘no’. Use this number in the AT+CMGR number to read the message.
    Voice call
    Initiating outgoing call:
    ATD+ mobile number; press enter
    For disconnecting the active call:
    ATH press enter
    For receiving incoming call:
    ATA press enter

Children