EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / GSM WITH PIC

GSM WITH PIC

|

Microcontroller › PIC › GSM WITH PIC

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 5 months ago by Luis Morquecho.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 30, 2013 at 12:35 pm #2454
    k.n.sreekumar
    Participant

    hai,

        i am new to pic. i want to interface a gsm modem with pic16f877 for sms sending application for that i write the code.but the serial terminal working properly [through proteus] but i didnt get the message pls help me to solve the problem. the code is

     

    #include<16f877A.h>
    #use delay(clock=20000000)
    #fuses HS,NOWDT,NOPROTECT,NOLVP,PUT,NOBROWNOUT
    #use rs232(baud=9600, xmit=PIN_C6,rcv=PIN_c7)
    int i,j;
    void at_cmds();

    void main()
        {
        for(j=0;j<=5;j++)
            {
            delay_ms(500);
            }
        for(i=0;i<=5;i++)
            {
            delay_ms(2000);
            at_cmds();
            printf(“this is the %x th message”,i);
            putchar(0X1A);
            printf(“nr”);
            delay_ms(1500);        
            printf(“n”);
            }
        while(1);    
        }

    void at_cmds()
        {
        printf(“nATnr”);
        delay_ms(1000);
        printf(“AT+CMGF=1”);
        delay_ms(1000);
        printf(“rAT+CMGS=”9842584477″n”);
        delay_ms(1000);
        }

    August 18, 2013 at 3:53 pm #10337
    Luis Morquecho
    Participant

    If I were you I will use Hyperterminal to check all.

    First connecting Hyperterminal to the GSM and making it works by hand.

    Second connecting Hyperterminal to the PIC and seeing if I receive the correct commands.

    If all it´s OK then connect PIC to the GSM

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Expensive hobby January 23, 2026
  • analog logic of shmidt trigger bjt circuit January 23, 2026
  • renewed interest in old project I call it WICKED 8 January 23, 2026
  • getting no where fast 8 x 8 led matrix January 23, 2026
  • Micro mouse January 22, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise