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 based smart information system for lost cards

GSM based smart information system for lost cards

|

Microcontroller › 8051 › GSM based smart information system for lost cards

  • This topic has 10 replies, 7 voices, and was last updated 13 years, 11 months ago by Ashish Chakole.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • January 17, 2012 at 8:18 pm #1735
    navneeta
    Participant

    How to make GSM  based inform ation system for lost cards?

    January 20, 2012 at 9:33 am #7050
    nikhiljain
    Participant

    The basics of GSm are vry well given in the site. Pls learn from there and then describe your project as to what you want to make.

    January 20, 2012 at 1:38 pm #7059
    navneeta
    Participant

    The main aim of this project is to prevent forced ATM theft, using GSM technology.Consider a
    scenario when you enter into an ATM to withdraw money for your need, and suddenly a thief
    enters into the ATM with a knife or a pistol, and force you to withdraw the entire amount in
    your account (considering the ATM has no security guard and is in a remote place). What you
    can do? You can either fight with the thief or can give all the money to him.
    Just think of an implementation which is helpful in this situation as, when you are forcibly
    attempting to withdraw money, and you are entering a code number instead of your actual pin
    code, and the ATM shows that you have no balance in your account (even if you have plenty).
    And also imagine that as the thief tries to get out of the ATM, he will come to know that the
    ATM is surrounded by armed police and there is no way to escape.
    This can be done by just entering a code instead of the actual password.

    January 20, 2012 at 7:10 pm #7062
    Adeeb
    Participant

    Why GSM, it is better to implement this in bank, any way ATM is connected to their servers…

     

    January 20, 2012 at 7:11 pm #7063
    Adeeb
    Participant

     

     

    January 22, 2012 at 2:00 pm #7070
    Syed Aameer
    Participant

    yes Adeeb is right.. i have heard that if u entered your password number in reverse order there will be an intimation for the bank that you are in trouble and your ATM card will be blocked immediately.. i am not sure but  i have heard from my friend

    January 27, 2012 at 12:12 pm #7083
    arun kumar yadav
    Participant

    hiiiii…..

    i made a c code to send a msg through gsm module. but i did not get desired result. plz check the code and help…

     

    #include<reg51.h>
    #define FREQ 12000000
    #define baud 9600
    #define spbrg_value (((FREQ/64)/baud)-1)

    sbit gas=P2^0;
    sbit pir=P2^1;
    sbit fire=P2^2;

    int i=0,j,k,temp;
    unsigned char *sms_service=”AT+CSMS=1″;
    unsigned char *sms_format=”AT+CMGF=1″;
    unsigned char *sms_write=”AT+CMGS=”7520487033″”;  // 10-Digit Mobile Number
    unsigned char *sms=”gas leakage”;
    unsigned char *smss=”moving body”;
    unsigned char *smsss=”fire”;
    unsigned char *sms_report=”SMS Sent…”;
    unsigned char sms_terminate=0x1A;
    unsigned char enter=0x0D;

    void delay(unsigned int msec)        // Function for delay
    {
        int i,j;
        for(i=0;i<msec;i++)
            for(j=0; j<1275; j++);
    }

    void init_serial()            // Initialize serial port
    {
        TMOD=0x20;            // Mode2
        TH1=0xFD;            //buad rate
        SCON=0x50;            // Serial mode=1 ,8-Bit data,1 Stop bit ,1 Start bit, Receiving on
        TR1=1;                // Start timer
    }

    void tx_data(unsigned char str)        // Transmit data function
    {
        SBUF=str;                  //Store data in SBUF
        while(TI==0);                 //Wait till data transmits
        TI=0;
    }

    void gsm_cmd(unsigned char *string)
    {
        i=0;j=0;
        while(string!=’’)
        {
            temp=0;
            if(string
    ==0x5C)        // Not to send ” cahracter
            i++;
            tx_data(string
    );        // Send by serial communication
            i++;
            while(temp!=1);
        }
        temp=0;
        tx_data(enter);                // Send ASCII code for ‘Enter’ key
        while(temp!=1);
    }

    void main()
    {
        P2=0xFF;
        P2=0x00;
        init_serial();
        while(1)
        {
        
            if(gas==1)
            {
               gsm_cmd(sms_service);
                gsm_cmd(sms_format);
                delay(1000);
    gsm_cmd(sms_write);
                delay(1000);
    gsm_cmd(sms);
                tx_data(0x1A);
                delay(1000);
            }
            else if(pir==1)
            {
            gsm_cmd(sms_service);
                gsm_cmd(sms_format);
                delay(1000);
    gsm_cmd(sms_write);
                delay(1000);
    gsm_cmd(smss);
                tx_data(0x1A);
                delay(1000);
            }

            else if(fire==1)
            {
            gsm_cmd(sms_service);
                gsm_cmd(sms_format);
                delay(1000);
    gsm_cmd(sms_write);
                delay(1000);
    gsm_cmd(smsss);
                tx_data(0x1A);
                delay(1000);
            }

    }
    }

    February 10, 2012 at 12:36 pm #7137
    Syed Aameer
    Participant

    Hello Arun,

     

                   gsm_cmd(sms);     //here you are giving  Enter value(That is not required)
                tx_data(0x1A);       //this is necessary
             

     

     

    After typing message give only CTRL Z (0x1A) no need of Enter value(0x0D)

     

    i didnt understand what is   “AT+CSMS=1”;

     

    you can give

    AT  <enter>

       AT+CMGF=1   <enter>

    AT+CMGS=”xxxxxxxxx”   <enter>

    Type a message then <CTRL+Z>
           

    March 12, 2012 at 2:55 pm #7292
    MUTHU KUMAR GANESAN
    Participant

    Hi Arun Kumar,

     

    I executed your C code to interface with GSM module from 8051 and found theres is something wrong in that. Then I removed the code in while loolp (temp!=1) and it started working.

     

    Thanks for your help.

     

    Note: Please correct my if I’m wrong.

     

    Thanks,

    GMK.
     

    March 23, 2012 at 2:18 pm #7322
    Ashish Chakole
    Participant

     

     Hello Sayeed n friends,

     

    i did same thing, i removed      temp=0; and while(temp!=1); both  and the problem was solved. the previous program used to stuck at while(temp!=1); but after removal, its working properly,

     

    but still i hav doubt whethr program will work with the hardware,……

     

    Also , Sayeed u hav sugested some corrections in Arun Kumar’s program but i dint get it properly, i mean i m too weak to undrstnd the Syntax of the program…. Would u plz post the complete program with the given corrections??? 

     

    plz plz plz,,,,,, its realy urgent….

     

     

    Thnx

    March 23, 2012 at 2:22 pm #7323
    Ashish Chakole
    Participant

     

     

    Hello Mr Arun,

     

    are u ok with the program after making corrections by Sayeed?

    if yes then plz forward me the corrected program plz plz……

     

    its very urgent…….

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

RSS Recent Posts

  • H bridge current direction logic March 11, 2026
  • Very Curious Issue With DS3231 RTC Clock March 10, 2026
  • Distorted output from buffer March 10, 2026
  • Motor Getting Hot March 10, 2026
  • excessive technology in multimeters March 10, 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