GSM Vehicle Control and Security System using SMS

I did this project for my 5th semester for "Microcontroller based Systems". It was done on an 89C51 microcontroller which belongs to 8051 family, using a sony ericsson T290i mobile inter-connected with a serial cable. It was implemented on my Honda Civic.
The user could control some functions of the vehicle by sending
specific sms commands to the T2920i.

Some of these functions were:
  • start and stop the engine (without using the key)
  • stop the engine if somebody starts it with a key ( by cutting off ignition)
  •  lock and unlock the doors
  •  send a text message to the owner if an intruder is detected (by monitoring the doors)
  •  switch the heater/air conditioner on and off


DESCRIPTION

SMS is checked by monitoring the phone memory by using AT+CPMS command which sets the preferred phone memory location for storing sms and returns status of phone memory.

When an SMS is received its text is dumped into microcontroller's RAM using a very calibrated approach. Therefore the 7th character(7th was chosen randomly) always lands at location 57H of RAM. This was determined by connecting the phone to PC's serial port and debugging using the Proteus Simulation. The RAM was monitored as the phone sent the SMS text and it was dumped.

So the 7th character is compared using the below table and the appropriate function is called for performing the action using relays.



############## SMS COMMANDS ###################

 SMS COMMAND         7TH CHARACTER                HEX EQUIVALENT


start engine                                     e                                       65h    
stop engine                                     n                                       6eh    
car lock                                            c                                       63h    
car unlock                                        l                                        6ch    
on heater                                         t                                        74h    
off heater                                         a                                       61h    
panic mode                                    m                                       6dh    


Two Interrupts are used, Timer 0 overflow interrupt and External interrupt. The program checks for sms every time Timer 0 overflows. External Interrupt is connected to door switch for detecting intrusion and sending sms to owner. If external interrupt happens while sms is being checked, the program will get stuck due to unexpected reply from mobile. To avoid this situation, both interrupts are set to high priority using IT0 bit in TCON register. Now if one Interrupt occurs while the other is being serviced, it will have to wait until control returns from first interrupt.      

Here are the Hardware connections.

 P0.0 = for locking car (attached to security sys remote)
 P0.1 = for unlocking car (attached to security sys remote)
 P0.2 = for switching on heater
 P0.3 = connected to IGNITION RELAY 1 (CRANK or START engine)
 P0.4 = connected to IGNITION RELAY 2 (ON)
 P0.5 = connected to IGNITION RELAY 3 (ACC)
 P0.6 = connected to IGNITION CUT RELAY (Used for switching off engine when someone is running with your car!! i.e PANIC MODE)
 P3.2(INT0) = Door switch relay(for detecting if door is opened) 

Download Section

Here are the project files:
-Source code (Assembly language-Compiler: Keil uVision 3)
-Proteus Simulation  (works with Proteus 7.4 and above)
-Sony Ericsson AT command manual

Hardware:

-PCB Layout 8051 board  (works with Proteus 7.4 and above)
-Relay board demo (simulation) (works with Proteus 7.4 and above)
-Custom Serial adapter 
(The custom serial adapter as seen in the last picture; connected between the mobile phone serial cable and 8051 board, is used to provide power to the MAX232 IC present inside the mobile phone serial cable by giving +5V at pins 7(RTS) and 4(DTR) of the phone serial cable. The cable won't work without this custom adapter)

Some snapshots of the hardware. From the pictures it may seem that the project is incomplete or something but I actually drove the car around for a couple of months with the system working!




The setup was placed in the dashboard

The relays connected to the ignition

The microcontroller board with the serial port and the relay board.

 The 8051 board connected to the phone through serial cable.


The code has been tidied before uploading so if you can interpret it, it can be ported easily to an AVR or PIC. If anybody wants any help with this stuff, just drop a comment or "Contact me". I'll be happy to help.

229 comments:

  1. Hey Umar

    Very nice project. How did you learn about the T290i being able to supply text messages via a serial link ?
    Olin would be interested to see that async serial is still being used.
    I googled for the T290i and I cannot find any for sale in the USA. Is the T290i obsolete ? Or limited to countries
    other than the USA ? I would like to do this if I can find a phone that has similar capabilities.

    Gus x AT nope9 DOT com

    ReplyDelete
  2. Thanks for the comments. Yeah the T290 is quite obsolete, I had one some time back. I bought its serial cable for retreiving contacts etc, thats how I found that one could control most of its functions by sending AT commands(see the manual on my website) via hyperterminal. So I thought, why not try this stuff with a microcontroller and it worked. I intercepted hyperterminal's serial communication using a packet sniffer software and found out how it talked to the phone, and mimiced it using a microcontroller.
    The phone and its serial cable are available at ebay.

    ReplyDelete
  3. Hi I wrote from Uruguay It's nice found these kind of projects I made a similar but I've used a 16F628 pic you can read about it in my blog
    http://telecontrolgsm.blogspot.com/2009_01_01_archive.html
    and watch a youtube video in http://www.youtube.com/watch?v=Xdx5QUmxnG4
    Cheers

    ReplyDelete
  4. Yeah I like your system too. Great work!

    ReplyDelete
  5. aside from T290 what other model that can you use.

    ReplyDelete
  6. You can use any mobile phone as long as it supports AT commands, many phones do these days. See sony erricsson developer site for exact models.

    ReplyDelete
  7. um ... i am calling the CIA

    ReplyDelete
  8. Lol!! I would too if I were you, it is one creepy DIY. My dad was shocked the first time I showed it to him!

    ReplyDelete
  9. wow!!!! amazing
    hi umar can u make a tool for unlock mobilephone
    just see on our forum http://forum.gsmhosting.com/vbb/index.php
    money machine :D

    ReplyDelete
  10. Yeah maybe. I,ll look it up and get back to you.

    ReplyDelete
  11. dude is this possible in sony erricsson 580i ????

    ReplyDelete
  12. bro...
    At wat cost u made this??

    ReplyDelete
  13. If 580i comes with a serial cable the it is possible, because you need it for connecting to the microcontroller. This project cost me around $20, the phone was second hand.

    ReplyDelete
  14. from where u got the 2nd hand mobile....???

    ReplyDelete
  15. at wat price u took 2nd hand mobile???

    wats the name of tht set???

    ReplyDelete
  16. I got it from a local dealer, it was hard to find. But there are a lot of them at ebay along with serial cables. Some of them are new as well.

    ReplyDelete
  17. i want 2nd hand bro....
    wats th name of ur handset???

    ReplyDelete
  18. It was a sony ericsson t290i. Got it for about $12.

    ReplyDelete
  19. Hi really challenging one to built as own..
    Are you doing some other projects right now?.

    ReplyDelete
  20. ya....
    I'm in final year needs to do some project....
    so thinking what type of project is good to do....
    for a while i don't hav any idea....
    Please if u have any idea , do mail ya....

    ReplyDelete
  21. Yes, doing projects all the time!
    Ankit what kind of projects are you interested in? And how many people are working with you?

    ReplyDelete
  22. m interested in electronics(hardware) related projects....
    we the gang of four people working together....

    ReplyDelete
  23. salam..nice project indeed...y didnt u use pic microcntrooler instead of 8051?

    hira taqdees.

    ReplyDelete
  24. any latest ideas related to tht???

    ReplyDelete
  25. Thank you. Well first of all it was my semester project ad they taught us 8051 only, so we had to use 8051. And 8051 is the cheapest of all and easily available in PK and its programmer is not expensive either. PIC on the other hand is expensive and its programmer i.e. MPLAB is n/a and is very expensive.
    Apart from all this, I,ve learnt from experience that 8051 starts behaving strangely when a large sized code is burnt into it( maybe because units available locally are very old, upto 7-8 years) and people who used PIC say it does the same. I used AVR in a recent project and I must say it is better than both of them. The choice is yours.

    ReplyDelete
  26. do u hav any idea abt th latest tech project???

    ReplyDelete
  27. Ankit why don,t you interface a GPS to this project so exact location of the vehicle is determined? What other projects have you considered? maybe i can advise u about them

    ReplyDelete
  28. write nw jus thnking if i get any idea....i'll surely take a help frm u....
    i want to do somethng innovative....so cracking my head nw a days....

    ReplyDelete
  29. i too am in final yr, tried to do something innovative but there are too many funding and administrative problems in the uni so finally had to do a project offered by my department. I proposed a multi-robot mine detection system. Now I am doing a UGV offered by uni. You hav problems like that in your uni?

    ReplyDelete
  30. ya bro....samr prob here also....

    ReplyDelete
  31. Hi great project you have done !!!
    If still doing many projects, do you have any idea about the following?, I am just trying it.

    http://www.8051projects.net/forum-t27328.html

    ReplyDelete
  32. Yes, its a very good idea. You should do it this way: Store image into microcontroller using serial camera and send it to a server using GSM module. You will have to compose the file again using the data received on the server side. Somebody posted this on the same forum about sending data to a server.

    http://www.8051projects.net/forum-t18327.html

    Talk to this person for how to set up TCP server, he sure knows how to do it.
    Good luck and keep me updated about this project. And tell me if you need me more help

    ReplyDelete
  33. Hi thanks, i went through that but i cant understand anything since i am new to server application, if u have any basic example point it to me. Because would like to start with basics.

    ReplyDelete
  34. Here is a tutorial. You don,t need to read all of it, just refer to it when you need to look something up. http://www.techiwarehouse.com/cms/engine.php?page_id=d9e99072

    http://www.8051projects.net/forum-t18327.html
    Shailesh NAYAK in the above link has used "TCP Test Tool 2.3" to setup the web server.

    ReplyDelete
  35. Fine i have seen it, But i am just in the learning phase only, It seems to be little bit complicated, so will do this job little later.
    Now i am planning to built an inverter circuit using 8051, also a real frequency meter using 8051. These things for my personal use. So for designing invereter 12 v dc - 230 v ac, 100w, i just need to configure the timer for 50Hz, I am not familier about configuring timers, so just coded delay loop of 1650 times with 12khz system clock and cheked the code output with proteus oscilloscope, it was 50Hz i guess. I can upload it to IC but have to check with frequency meter since real time values will be different, so gonna design that also. Anyway generating 50Hz using delay loop is not a good idea, if you know how to generate 50Hz using timers then guide me. These are my current projects now.

    ReplyDelete
  36. And forget to say thanks !!!

    ReplyDelete
  37. Maybe you should find some one who knows about servers, since it is not easy to learn and will take a lot of time.

    For 50Hz frequency you need a delay of
    1/50Hz = 0.02 seconds = 20000 microseconds

    65536-20000 = 45536

    45536/256 = 177.875 = 177 (put this value in TH0 register)

    45536-(177*256)= 224 (put this value in TL0 register)

    Use timer 0 in 16-bit mode.
    Here is a file in which all about timers is explained, including the above formulas on pg 20.
    http://www.adrive.com/public/dd573d065bccb6e122d78f82a4e26668024d526bf857549e31aa508baec3e5df.html

    ReplyDelete
  38. Yes ofcourse.

    And i unable to get your material even though after created account on Adrive, Do u have any good book to learn 8051 using C, If so please share it to me, will be helpful for me to make many projects.

    ReplyDelete
  39. send me ur email id through the "contact me" link at the top of my site. I,ll email you all the material.

    ReplyDelete
  40. Hi Umar.I tried to generete the hex for this project building it with keil but I was't able.Can you help me?

    ReplyDelete
  41. nice project ......
    Do you have code in C.

    ReplyDelete
  42. Where can I get the details for immobilizing the car...
    Do you have any document?

    ReplyDelete
  43. Thank you. Sorry don't have code in C.
    I immobilized the car by using my car's service manual. All details about internal ignition circuitry is given in the manual. You just have to cut-off the ACC and ON wire in the ignition, using a relay to immobilize the car. What car do you want to immobilize?

    ReplyDelete
  44. DEAR, DO YOU KNOW HOW TO PROGRAM ATMEGA MICRO CONTROLER IS

    IF KNOW JUST HELP ME BOUT IT


    MY E-MAIL ID IS SUMONANIK@YAHOO.COM
    AND SUMO_SHAF@YAHOO.COM
    SUMONANIK@LIVE.COM
    THANK'S ME AVAILABLE ALL TIME!!!

    ReplyDelete
  45. Here are some very simple and easy to build AVR flash programmers. Complete details about hardware and software is also given. I,ve used all of them.

    USB programmer
    http://www.fischl.de/usbasp/

    Serial programmer
    http://olimex.com/dev/avr-pg1.html

    Parallel programmer
    http://olimex.com/dev/avr-pg2.html

    ReplyDelete
  46. Just look at the following product, free for 21 days, its amazing. Just for your info. And i tried ajays frequency meter in proteus.. Its also working good, thought of making into real one for lab purpose.

    http://www.virtins.com/indexENUS.shtml

    ReplyDelete
  47. Wow, its really a great product since it works without any additional hardware, other pc based oscilloscopes ususally require some external harware. send me the me link to ajays frequency meter too.

    ReplyDelete
  48. I get the SMS Control Advance from a Spanish company. Happy customer ;-)

    ReplyDelete
  49. Frequency Meter

    http://www.8051projects.net/downloads221.html

    ReplyDelete
  50. thanks. I tried to test the Virtins Multi-Instrument product you sent me. It works great, no harware required, just use the "line-in" or "mic" inputs of the sound card.

    ReplyDelete
  51. can v use diff mobile phone instead of 1 u have used

    ReplyDelete
  52. yes of course. But its AT commands will be different.

    ReplyDelete
  53. Fine, but take care of input voltage, it must not exceed 5v.
    And i am trying simple serial program to display message in system. But i am having vista, so no hyperterminal, i am using other 3rd party soft alternate to hyperterminal Tera Term and Putty, But i unable to get the display even though the baud rate and COM port are adjusted as required. Do u have any idea?, tried ever in vista??

    ReplyDelete
  54. This comment has been removed by the author.

    ReplyDelete
  55. da i'm interested in GPS & GSM based vehicle tracking system.....
    can u giv me idea abt hw to do tht...???

    ReplyDelete
  56. Ok. The rest of the system will be identical to mine but the vehicle will include a GPS module. The microcontroller will read the coordinates from GPS module and send the coordinates to owner's mobile. These coordinates can then be used with a map to find the exact location. The owner's mobile can be connected to a computer software also which automatically shows the vehicle's location on a map.

    ReplyDelete
  57. This comment has been removed by the author.

    ReplyDelete
  58. This comment has been removed by the author.

    ReplyDelete
  59. The microcontroller will read the coordinates from GPS module and send the coordinates to owner's mobile...

    bro how to mark coordinates????
    M nt getting tht....

    ReplyDelete
  60. Coordinates are simple two numbers that represent a location on a map. A GPS module constantly sends out its coordinates by its serial port. Now these coordinates can simply be used to find your location on a map.

    ReplyDelete
  61. hello,
    nice project you have here!

    i'm working on a project similar to yours and i was wondering if you can help me :)

    my project is a remote health monitoring system using GSM modem

    i'm going to use iTegno 3845 GPRS Modem and PIC16f877

    so. do you have any connections or program codes that can help me?

    its going to be like this:

    analog signal -> PIC -> GSM modem -> GSM modem -> PC

    ReplyDelete
  62. Yes, you can download my source code and simulation from the post above. They'll give you a fair idea about AT commands and other stuff.

    ReplyDelete
  63. hello,
    i am currently on my final year project titled GSM based security system. I want to use a mobile phone to send sms when an intrusion is detected. I am using the 8051 and new to AT commands.Can you help me in combining the AT commands and 8051 assebly programming.

    ReplyDelete
  64. Yeah sure, I can help. Download the code I have posted. It is written in 8051 assembly language and comments have been used to explain the working of code. Then if you face problems you can contact me about it.

    ReplyDelete
  65. The sms with which you command the relay bord can be sent from any phone number?

    ReplyDelete
  66. Yeah. But you can restrict it to specified numbers in the programming.

    ReplyDelete
  67. salam
    bro im doing a GSM car alarm system..im 2nd year engineering student.I red ur blog..u have done great job.i appriciate you..i need some help regarding my project..will you b able to help me.

    awaitng for your reply

    Rimaz

    ReplyDelete
  68. Yeah sure, what exactly do you need help with?

    ReplyDelete
  69. sir, please can AT commands be used on the AVR microcontroller

    ReplyDelete
  70. Yes, AT commands can be used on any microcontroller as long as it has a UART, which is used to communicate with the cellphone.

    ReplyDelete
  71. Hi Umar..good job dude..
    can u plz help me with my project..
    our project is slightly related to urs...Actually we r planning to implement security for houses.. by using DTMF decoder n Microcontroller.so that we can get a call if our door is opened by an outsider using sensors... so can u plz help me with this..r can u giv us any other idea..thanku in advance... my mail id is anilkumarreddy4022@gmail.com.
    waiting for ur reply..

    ReplyDelete
  72. sir, please can I use AT commands in an AVR c program.

    ReplyDelete
  73. sir, please can I use AT commands in an AVR c program.

    ReplyDelete
  74. Yes, of course you can use AT commands with C and it can work with any microcontroller as long as it has got a UART.

    ReplyDelete
  75. hmm, ok, so please put here Your car phone number so anyone all over the world could lock the doors and start or stop Your cars's engine, especially when You're in the car :)

    ReplyDelete
  76. Sorry, its top secret. I love my car!

    ReplyDelete
  77. hi sir umar!

    i'm Mark Robinson from Philippines. im currently having a problem in developing my thesis project. Its an Intrusion Detection and Alarm System Via GSM Modem. It should be controlled via sms and web like the interface of a router for computers. problem is, what should i use in order to embed webpage in the micro-controller? can i use pic 16f877 ?

    BTW, the system comprises of an fingerprint scanner , a lock ,alarm and sensors that can be turn on/off via sms and web.

    scenario is that, when a user scans his/her finger the system will verify it. if its correct then the lock will disengage and system logs it. however, if its wrong for 5 times then it should sound the alarm and sends the owner a sms notifying an intrusion.



    any help would be highly appreciated!

    ReplyDelete
  78. Hi Arshad,

    Wish you very happy new year 2010!!!

    And wish you all success.

    ReplyDelete
  79. hello sir
    i have install protious 7.6 , but to start it saying..
    "this application has failed to start because UPDATE.DELL was not found . Re- instaling the application may fix the problem.

    plz help arsad sir.

    ReplyDelete
  80. sir i ru ste up but when i m installing ,crack(LXK Proteus 7.6 SP0 v2.0.1). it is saying" window can not assecss this specfied device,path,or file. you not have to apprpriate permission to asseces this item"

    plz help sir

    ReplyDelete
  81. The UPDATE.DELL error is because you have not installed the crack. Also disable your antivirus before opening the crack, other wise you will get this error
    " window can not assecss this specfied device,path,or file. you not have to apprpriate permission to asseces this item".
    Disable your anti virus to solve it.

    ReplyDelete
  82. hello sir thanks for repply;
    sir when i m running crack file , it is asking browws ,which file i select sir plz sir................
    reply as soon as possible

    ReplyDelete
  83. hello Arsad sir ,

    my self shailesh agrahari ,sir my protios is now donloded thanks for ur support. sir now i m doing a project & i want send states of my devise to user . how i start plz tell me . sir i want t some basics knoledge to deep about "GSM" plz advised me .
    plz sir .

    shailesh agrahari.

    ReplyDelete
  84. sir umar..

    i need ur help with my project..we run out of time..we just have 2weeks before the final defense..we have similar project..our main problem is the sms program..we use sourceboost c or c language and pic 16f84...

    thanks in advance....

    jm....

    email johnmarco18@yahoo.com.ph

    ReplyDelete
  85. hey man..whr did u get that cable??mobile to DB9..what s the name of that cable??

    ReplyDelete
  86. Its a simple sony erricsson serial cable. Older phones came with serial cables instead of USB cables. It is available on ebay. I got it from my local market.

    ReplyDelete
  87. hey man..thanks for the info..but whats the neame of the cable.is it drs-11??and can u plzz send the link of that cable on e-bay..

    ReplyDelete
  88. Gr8 gr8 work! Really awsome!
    I live in Karachi, Pakistan and here i searched almost every where but couldnt find the cable though i have the phone. Is there ne alternate i.e can v make our own cable or sum other way out?

    ReplyDelete
  89. sir,
    Nice work!!!..is there any way by which I can control ignition of spark plug in bikes using microcontroller.Like when valid password is entered the user should be able to start the bike.

    ReplyDelete
  90. @alive: The alternative is to use a newer phone which comes with a usb data cable. and use an AVR microcontroller which support firmware-only USB implementation. But of course you need to be really good at microcontrollers for that.

    @sanket: you can put a relay behind the spark plug or something to cut it off.

    ReplyDelete
  91. Is it possible to make it work using DB9 connector with RS232 interface?

    ReplyDelete
  92. Well you can always make your own cable somehow, here is what I found, you'll have to search the internet for exact t290i pinouts.
    http://pinouts.ru/CellularPhonesCables/ericsson_cable_pinout.shtml

    ReplyDelete
  93. Very nice work sir...I want to interface Nokia6681 to RS232 port(Zone C in 89S5x trainer kit) but am having Nokia6681 USB data cable so can I connect Txd,Rxd,Gnd from usb end of data cable to Txd,Rxd,Gnd of RS232 port on kit???

    ReplyDelete
  94. No, USB and RS232 are different protocols, you cannot conect hem like this.

    ReplyDelete
  95. Thanx sir!I used RS232 interface with T290i nd it worked well. May need ur help as the project proceeds...

    ReplyDelete
  96. I have nokia6681 usb data cable and now I got a usb to DB9 data cable can I use both of those to interface nokia6681 to microcontroller(AT89C52)?

    ReplyDelete
  97. Yeah I think it will work , but I am not entirely sure. Maybe you'll have to decode the data in the microcontroller.

    ReplyDelete
  98. nice project dude...i also trying this...m able to send msg using 89c51 but the pblm i have i m not able to cntrl rspnc of at+cpms....89c51 not rcving any rspnc from the t290i for at+cpms...i works wid hypr trmnl but wid 89c51....could u pls help me ou bro

    ReplyDelete
  99. Sir, please we bought a sony ericsson serial cable for the k700, but it is not working. Can you give me a description of the cable you used for your project.

    ReplyDelete
  100. My cable is a Sony Ericsson DRS-11 Serial Data Cable. Here
    http://www.1800mobiles.com/ericssondrs-1--437022.html

    ReplyDelete
  101. sir,
    As I had already told you.Am trying to connect nokia 6681(usb data cable) to uC using usb-RS232 adapter.am able send AT commands from uC to PC but nokia6681 is not responding...Plz help me with this

    ReplyDelete
  102. HI UMAR U DID A NICE PROJECT, I NEEDED SOME HELP ON MY PROJECT, AM DOING SECURITY SYSTEM PROJECT WHICH DETECTS INTRUSION BY IR DETECTOR CONNECTED TO 89C51 WHICH IS CONNECTED TO THE PHONE, HOW CAN I SIMULATE IT?

    ReplyDelete
  103. See my simulation, you'll figure it out.

    ReplyDelete
  104. Thank you Umar, i would like to know which IDE did u use bse i tried to compile our code with 8051 IDE its showing me 5 errors and 0 warnings BUT urs showed me 160 errors

    ReplyDelete
  105. Thankyou umar, pliz help me with a setup of keil uvision 3 and proteus version 7.4 u used, my email is dumato52@gmail.com, thankyou in advance

    ReplyDelete
  106. Hello! I've worked on the cable and AT commands and now i can use the hyperterminal to receive messages but how to use AT commands to send msgs through hyper terminal? Can u plz help?

    ReplyDelete
  107. Thank you Umar for ur help, am now using pic16f84 microcontroller,to send an SMS after detection of intrusion, but am stack with coding, can u help pliz?
    thanks in advance

    ReplyDelete
  108. program to send name as sms through gsm modem using 8051 in keil c

    ReplyDelete
  109. hay.. gr8 job!!
    needs to ask sumthing, u used ate=0 to disable echo. y is that so ??

    ReplyDelete
  110. can u plz say what algorithm did u use?
    plz send to neerajcesc@gmail.com

    ReplyDelete
  111. dude do you have a circuit diagram for this?

    ReplyDelete
  112. if yu hve pl send tat @ sridhur@gmail.com

    ReplyDelete
  113. please sir,
    I am finding it difficult to get a Sony Ericsson serial cable. Can you help me make one.

    ReplyDelete
  114. Hi Umar,
    i am working on a project on AT89C52 microcontroller. I want to run my assembly language code in Keil uvision version 3 software. I dont know how to run assembly language code in this software. As you have worked on the same software please tell me how to run(debugger and how to get output)the code in keil software.

    Reply ASAP.

    ReplyDelete
  115. Hi Umar,
    I need to send sms from uC using gsm modem which has a baud rate of 115200. so to set that, am programming in c?

    ReplyDelete
  116. hey,we are not using pc..we are interfacing directly.How to write code for that.any idea?

    ReplyDelete
  117. Hey..can we use USB instead of DB9 for serial communication..is D+ and D- same as rx and tx??

    ReplyDelete
  118. assalam o alikum nice to see your project....well ur from nust...i m from G.C universty Lahore.hope u will help ur pakistani brother can u plz tell me about "packet sniffer software".regards syed farooq

    ReplyDelete
  119. Well I used WireShark at that time, it intercepts what you are sending and receiving from the serial port, like Hyperterminal sends 0x0A and 0x0D before and after every AT command. The phone replies in a similar fashion. So you can know what to put before and after your commands in the mcrocontroller. You should use Docklight however, since it is quite easy to use, WireShark is very complex.

    ReplyDelete
  120. great project
    please help me
    when i sent a character from my mucro to pc the hyper terminal show unknown chracter
    wait your replay

    ReplyDelete
  121. Excellent project to make use of existing electronic components ... wanted to know how DCU-11 cable(mobile-usb) can be interfaced with the microcontroller ...i dont have the DRS-11 cable which u have made use of ... please reply asap ... thanks

    ReplyDelete
  122. Just one word buddy.. excellent stuff. keep up the good work. I havent seen any project nicely done in entire www. all those crap and failed projects. Just a question.. can you use Nokia sets without changing the code?

    ReplyDelete
  123. Can you use nokia sets without mod's in code?
    Excellent work btw.

    ReplyDelete
  124. Thank you for the appreciation. No, the code cannot be used with nokia phones because they have different sets of AT commands.

    ReplyDelete
  125. Actually Nokia even have a different protocol, The FBus and MBus protocols. AT commands in some nokia phones work through IRDA.
    One more question: Are you familiar with retrieving CBC SMS Messages in AT command set? They are broadcasts services like Telenor displays your location information. Actually you can retrive the entire cell grid locations using J2ME API (like google map does) but in some cases i just want the textual stuff shown on text displays.

    ReplyDelete
  126. I was thinking to use CBC information to locate my car. Also the GSM protocol sends the cell grid informations but your phone's SDK calculates the incenter location of all joining points and returns a latitude/ longitude of approximate location. But this info i probably dought that is retrievable from AT command set.

    ReplyDelete
  127. Well, I know about telenor's cell info service that you're talking about. I also tried to incorporate it into my project, but the phone that i used did not support retrieving CB info. The CB messages could be set to be relayed by the phone when the CB info changed. I did that but the phone did not send CB messages even when the CB info changed, so it was quite tricky. Besides, the AT command manual i was using was not very detailed, it just had bits of information scattered all over. So i just left it out since i was short of time.

    I also tried to used nokia at first but the fbus was too complicated, so i bought a sony ericsson instead which supported AT commands. You can contact me through the "Contact me" button at the top of the page if you want any more information.

    ReplyDelete
  128. Try using Samsung SGH-C160 to get CBC Messages. Their is an option in this phone that transfers CBC messages into phone's SMS Memory. so by doing a software polling after say every 1 minute you can retrieve them i guess. I am very new guy with AT command set so i am not confident enough it will work. But i have this phone and can hook it up to 89C51. I would be glad if you could have let me contribute in your source code and grant me as a contributor in your project.

    ReplyDelete
  129. salam umar bhai

    Details about project i want to do:

    "sms controlled toy car"

    i m sending u the code can u please tell me how to send sms (in there order) to the phone attached to the circuit so it can work??

    i am not a coder and i cannot get anything out of it best regards.

    the code is in next post

    Afaq Muhammad

    ReplyDelete
  130. #include
    #include
    unsigned int x;
    unsigned int y;
    unsigned int val1;
    unsigned int val2;
    sbit pin1=P0^6;
    sbit pin2=P0^7;
    sbit pin3=P0^4;
    sbit pin4=P0^5;
    unsigned char msg[14];
    unsigned char store;
    bit error=0;

    void sendstr(unsigned char * chrr)
    {
    while(*chrr!='\0')
    {
    SBUF=*chrr;
    TI=0;
    while(TI==0);

    chrr++;
    }

    }


    void clr()
    {
    for(x=0;x<14;x++)
    msg[x]='\0';
    }
    void sendchr(unsigned char ch)
    {
    SBUF=ch;
    TI=0;
    while(TI==0);

    }

    void delay()
    {
    int a,b;
    for(a=0;a<=1000;a++) // 0.22 sec
    {
    for(b=0;b<200;b++);
    }
    }

    void initialize()
    {

    TMOD=0x20; // mode 2 for timer 1
    TH1=0xFD; // baud rate 9600 selected
    SCON=0x50;
    TR1=1; // starts timer 1
    TI=1;
    connect:
    sendstr("AT"); //start communication
    sendchr(0x0d);
    delay();delay();
    if(RI==0)
    goto connect;



    sendstr("AT+CMGF=1"); // initializing
    sendchr(0x0d);
    delay();
    clr();

    sendstr("AT+CNMI=2,1,2,0,0");
    sendchr(0x0d);
    delay();

    }

    void sendmsg()
    {
    sendstr("AT+CPMS=");
    sendchr(0x22);
    sendstr("SM");
    sendchr(0x22);
    sendchr(0x0d);
    delay(); delay();
    sendstr("AT+CMGF=1"); // text mode
    sendchr(0x0d);
    delay();delay();

    sendstr("AT+CMGW="); // saving message to unsend
    sendchr(0x22);
    sendstr("+923326535036");
    sendchr(0x22);
    sendchr(0x0d);


    sendstr(msg);
    sendchr(0x1a); // ascii of ctrl+z
    delay();

    sendstr("AT+CMSS=1"); // send from storage
    sendchr(0x0d);
    delay();delay();

    }


    void rcvmsg()
    {
    sendstr("AT+CNMI=2,0,2,0,0"); // disabling the alert
    sendchr(0x0d);
    delay();delay();
    sendstr("AT+CPMS=");
    sendchr(0x22);
    sendstr("ME");
    sendchr(0x22);
    sendchr(0x0d);
    delay();delay();
    RI=0;
    sendstr("AT+CMGR=1");
    sendchr(0x0d);
    x=0;
    while(x<8)
    {
    while(RI==0);
    store=SBUF;
    if(store==0x22) // comparing " symbols
    x++;

    RI=0;
    }
    while(RI==0);
    RI=0;
    x=0;
    y=0;

    while(x<2)
    {
    while(RI==0)
    {
    y++;
    if(y>900000) /// responding to no mesage output;
    goto label;
    }
    msg[x]=SBUF;
    RI=0;
    x++;
    y=0;
    }

    label: // cheak of validity
    x=0;
    if(msg[0]>='0' && msg[0]<='9')
    x++;

    if(msg[1]=='F' || msg[1]=='R' || msg[1]=='L' || msg[1]=='B')
    x++;
    if(x!=2)
    {
    strcpy(msg,"INVALID");
    error=1;
    }

    }

    ReplyDelete
  131. void main()
    { P0=0;
    initialize();
    x=0;

    P1=0x0a;
    RI=0;

    while(1)
    {
    while(RI==0);
    delay();delay();
    RI=0;
    P1=0xaa;
    rcvmsg();

    if(error==1)
    {
    sendmsg();
    error=0;
    }
    else
    {
    strcpy(msg,"acknowledged");
    sendmsg();
    switch(msg[0])
    {
    case '1':
    val1=10000; //2 second
    break;
    case '2':
    val1=20000; //4 second
    break;
    case '3':
    val1=30000;
    break;
    case '4':
    val1=40000;
    break;
    case '5':
    val1=50000;
    break;
    case '6':
    val1=60000;
    break;
    case '7':
    val1=70000;
    break;
    case '8':
    val1=80000;
    break;
    case '9':
    val1=90000; //18 second
    break;
    }
    switch(msg[1])
    {
    case 'F':
    val2=0;
    break;
    case 'R':
    val2=1000; //1 second
    break;
    case 'B':
    val2=0;
    break;
    case 'L':
    val2=1000;
    break;
    }
    x=0;y=0;
    while( x=val2)
    {
    pin3=0;
    pin4=0;
    }
    y=y+1;
    x=x+1;

    }


    }

    clr();
    sendstr("AT+CMGD=1");
    sendchr(0x0d);
    delay();
    sendstr("AT+CPMS=");
    sendchr(0x22);
    sendstr("ME");
    sendchr(0x22);
    sendchr(0x0d);
    delay(); delay();
    sendstr("AT+CMGD=1");
    sendchr(0x0d);
    delay();

    sendstr("AT+CNMI=2,1,2,0,0");
    sendchr(0x0d);
    delay();delay();
    RI=0;
    }
    }

    ReplyDelete
  132. umar bhai this was the code

    set used same as yours
    controller used same as yours
    circuit is same as yours

    now once i attach all the thins please tell me the detailed procedure what to write in sms to make the toy car move?

    waiting for ur reply ASAP.

    thanks alot

    ALlah hafiz

    ReplyDelete
  133. the 1st header file is at89x52.h

    and the second is

    string.h

    it did not come in copy pasting.

    2ndly i m using at89s52 as controller have at89c51 too but in circuit at89s52 is fixed.

    ReplyDelete
  134. Dear Umar,

    Very nice ur project. Its good. Same like, I need to done one kit for our agricultural motor control. Can u help me. If u guide, it will very helpful to me. My theme is I want to control agri, motor by SMS. Ur project circuit is ok. can i use Nokia 3310 for this?. Where u got this PCB?. how much cost of this project.

    ReplyDelete
  135. hI, i WANT control my agricultural motor by SMS command. same like ur project i need to do. If i send SMS like "MOTOR ON", then should be ON. iF I send sms like "MOTOR OFF",then motor should be OFF. can i use Nokia 3310. which mobile is better for that. theme : 1.send SMS from my mobile 2. SMS received another mobile 3. It connected to PIC 4. Based comment (Motor ON), PIC micro controller operates relay. 5. Relay operate 3 phase contactor. This is my idea. Please suggest.. how can i proceed. Its very urgent. my mobile

    ReplyDelete
  136. hey love your project and i'm doing something close to that with my own project and i would like you to assist me my project is Design and implementation of a GSM controlled multi electrical appliances

    ReplyDelete
  137. find here gsm controller www.alarmagsm.co.cc

    ReplyDelete
  138. wonderful project i want to know that what kind of
    sensor used for intrusion detection

    ReplyDelete
  139. Hello all,
    Actually I want to implement a security system type using microcontroller. Actucally I want to send the SMS as soon as a particular event occur. like Door opening etc. Cam any one suggest me a ckt for that. And also which microcontroller wil be better for it.

    ReplyDelete
  140. hi can any one give the complet projrct report

    ReplyDelete
  141. My project T230 pic16f877a written in C
    http://www.youtube.com/watch?v=OqsOgkjaNk8

    ReplyDelete
  142. im a final year student.for my project i will do abaout GSM repoting System which mean that the GSM will send the report to our handphone about any cases like broken house or fire burning.for time being i still couldn't fing the coding for my GSM project..i really2 hope that u can help me as soon as posible.

    ReplyDelete
  143. i have downloaded keil u vision v3.1 from your site but dont know the password to open the zip file. kindly send the password

    ReplyDelete
  144. hey can u tel me which exact microcontroller wud suit this project from the AVR family? and also can a nokia phone be used? do u have any access to the AT commands for it?

    ReplyDelete
  145. My project T230 pic16f877a written in C
    http://www.youtube.com/watch?v=OqsOgkjaNk8 contact me for C code

    ReplyDelete
  146. My project T230 pic16f877a written in C
    [url]http://www.youtube.com/watch?v=OqsOgkjaNk8[/url]

    ReplyDelete
  147. hello ashad umar,please i want to know if sagem my x5-2 will work with your circuit.i have built the hardware and i am able to send at commands from uc to pc, so i want to know if sagem will work.i have usb data cable for sagem which i will convert by cutting off the usb head and interating a max 232 chip to it.

    ReplyDelete
  148. hello umar, i sent the earlier post,if i convert the usb to data cable with max and connect it to your circuit will it work.and one more question, if i simulate your circuit(Proj4)on protues but with a usb gsm modem atached am i going to get the same results on the compim. pleas i ne3ed your reply

    ReplyDelete
  149. NICE PROJECT SIR.
    DO YOU GUID ME FOR MAKE THIS PROJECT I WANT TO CHOOSE THIS PROJECT FOR FINAL YEAR
    SEND ME YOUR REPLY ON MY EMAIL ID
    sachin25feb@gmail.com

    ReplyDelete
  150. Dear umar,

    Can we used this system in bikes with some modification as you said , if the vehicle will stole can we able to find the vehicle where it is located,

    Nabbil.ME
    nabbil83me@gmail.com

    ReplyDelete
  151. hey i would like do it as a project in time its happy c them in net in ur profile . .can u clear me tat mobile wants to be connected with the board always . .?? is it possible to do it in wireless mode tat can be controlled in world wide .

    ReplyDelete
  152. wats the cost???????

    ReplyDelete
  153. hey umar bhai,
    i m also working on the same interface bt getting into a little problem regarding configuration... no one else do i see but u can help me i knw...
    plz reply me at adp_900@hotmail.com
    i need a svere help i m checking my inbox every hour to see wheher u replied or not

    ReplyDelete
  154. hi umar
    its really a fantastic job by u man. i had sent u request for the details of components n the ckt can u please send it my email id
    pradeeprocks123@gmail.com
    thank u v.much

    from pradeep

    ReplyDelete
  155. hiii,,,pls pls help me out,,i m doing the same projct,,,its very urgent,,i need the code,crkt diagram and all details of this prjct,,pls pls send it to my mail id:rcrohiita@gmail.com,,,i'll waiting for ur reply,,thanku

    ReplyDelete
  156. hi, nice project.. im doin my final year.. any idea...

    ReplyDelete
  157. Hi Umar,
    Very nice project.
    I tried your project working great.
    I was trying to send sms as soon as modem initialized to make it sure system is working.
    But using send_sms function it get stuck up at
    AT+cmgs command showing phone no. but if I send any message to modem it starts working from there...

    Plz help,

    Rajesh

    ReplyDelete
  158. hii umar im final year student,do the gsm car alarm system..the problem is i dont know how to connect 12vdc and 5A from car fius to support voltage to ON the PIC circuit??can u tell me the function relay board and show me the circuit... my email is cyclonecan@yahoo.com.my

    ReplyDelete
  159. Dear Brother, may you find this in best of your health and happiness!

    I was googling for a project of GPS based car tracking system with 8051 as its brain, I landed on this page and realized it to be useful.

    I now plan to proceed and build upon your work and make this project more interactive with the car owner. For this I need your source code files, simulation files and board files.

    Similarly I am also going to need Proteus VSM AGDI Driver v1.0. I would be looking forward to listen from you soon.

    Thumbs up for you for this nice project.

    Best Regards
    Arshad
    Electronics Engineer.

    ReplyDelete
  160. hey Umar, none of your links are working anymore.
    Can you please fix them, I need an idea for my final project and this looks interesting.

    Plaz help brother and I will pray that allah reward you.

    You can contact me at
    fqzero@gmail.com
    Farooq

    ReplyDelete
  161. Asalamoalaikum

    Yaar I want to do the same project with PIC,but have no idea.
    can you help me in terms of providing me some tutorial or any thing

    Best Regards

    ReplyDelete
  162. You can find my atmega32 Sms controller here http://www.youtube.com/watch?v=NLPHbhkTEiQ

    ReplyDelete
  163. can u send me the documentation of this project,if u have it with u,,its vry vry urgent,,send it to my mail id rcrohiita@gmail.com

    ReplyDelete
  164. ohh one of this nice article and information about Electronic Security System. today i research about this all products and i find this products.
    Regard: CCTV Camera.

    ReplyDelete
  165. this system is gud... this was the vehicle control system
    actually am wrking on a project called "vehicle tracking system using gps and gsm" and am nt able to get thru the 8051 programming involved in this...
    can any1 of u help me out to get the assembly language programming in 8051 for the same...
    i'll b really thankful 2 u..


    my mail id is nikki_991@rediffmail.com
    if you cud pls tell me the programmin...thnk u

    ReplyDelete
  166. hey man can i have the c language project final code pls....i would really appreciate it man pls mail to lifiq@hotmail.com

    ReplyDelete
  167. hi this is Nabiha... can u tell me if it works without the serial port???

    ReplyDelete
  168. im Nabiha... i working on final year project regarding applications of gsm.. i want to make vehicle security system which alerts us through sms when any damage is happened to the car. will this project will work wd my idea... can u kindly email me the details at nabihazkhan@hotmail.com. i will be highly grateful to u...

    ReplyDelete
  169. When an SMS is received its text is dumped into microcontroller's RAM using a very calibrated approach?

    ReplyDelete
  170. hi.....
    i also did the same project in my final year of ma engineering.............
    it is the same as it is..............
    but now i need the thysis of it..
    can u help me in in this....
    engr.machine@gmail.com

    ReplyDelete
  171. Asalam o Alikum..
    im trying to interface nokia 1202 wht is the changing in AT commands as well i need the code in C........
    plzzzzzzz some one help me out
    hammad_programer@yahoo.com

    ReplyDelete
  172. hello

    Anybody build SMS via siemens c35i,elektor 1-2002 and 2-2002?
    this is with mcu AT89LS8252.
    The inputs are working fine ,from smschip to mobile phone.
    But the outputs doesn't work .
    this is the message from mobile:
    (
    "password"
    SET 10
    )
    this is set output 10 high,sms is sended but nothing happens.

    thanks
    Martin

    ReplyDelete
  173. I want to On / Off Relay throug SMS using AT89S52 Controller in bascom 8051

    i am able to send sms but couldnt able to recieve sms from gsm modem any help will be appreciated

    ReplyDelete
  174. is this reall working ? we would like to purchse the parts from you mR.Umar. here's my email pocholo_montejo10@rocketmal.com

    ReplyDelete
  175. hey,
    i m making similar project for the two wheeler activa, i wanted to know is there any possibility of ready made circuit available in the market?

    ReplyDelete
  176. hai....i would like to know the circuit and description required for receiving the sms...

    ReplyDelete
  177. please tell me,how you connect your phone to Controller. i mean ,i have data cable of T290 (RS232) ,so which pin is the TX and which is RX,
    please elaborate the pins out shcematic
    thanks in advance

    ReplyDelete
  178. please any one re upload the source code cause i cant download it...urgently please

    ReplyDelete
  179. Can i have the circuit block diagram of your project.

    ReplyDelete
  180. please tell me,how you connect your phone to Controller. i mean ,i have data cable of T290 (RS232) ,so which pin is the TX and which is RX,
    please elaborate the pins out shcematic
    thanks in advance

    ReplyDelete
  181. plx help me i want to make it as my final year project ...
    after day tommorrow m having first presentation
    plx contact me plx
    regards
    HIRA BAIG
    student of telecommunication engineering

    ReplyDelete
  182. The source code link is now fixed. Sorry for the delay

    ReplyDelete
  183. hi ! bhaiya ,me bhi IV sem me hu ,muja bhi kuch is he tarah ha inventation karna h,kuch alag tarika se ,so do you help me

    ReplyDelete
  184. Please provide me with the source code and all project details. naveenratan@indiatimes.com

    Any help will be much appreciated.

    ReplyDelete
  185. Hi,

    Can you send me all the soft copy of this project? This is the proposal that I made for my final year. I would appreciate any help given, drop me an email jdimpas@gmail.com

    ReplyDelete
  186. NICE PROJECT SIR.
    DO YOU GUID ME FOR MAKE THIS PROJECT I WANT TO CHOOSE THIS PROJECT FOR FINAL YEAR
    SEND ME YOUR REPLY ON MY EMAIL ID
    raj21091988@gmail.com
    debabratamandal66@gmail.com

    ReplyDelete
  187. GSM device is more suitable by replacing this mobile phone,anywayz Good project. must b apreciated :)

    ReplyDelete
  188. sir how much is your budget in this project? thank you very much.

    ReplyDelete
  189. it's very nice project but can i know your universaty

    ReplyDelete
  190. hi Umar
    I am doing the same project as yours, but i want to use modem (to be connected to the microcontroller) instead of the mobile phone. is it possible? can you tell me what criteria is being used in choosing microcontoller and modem types bcoz I am new at these devices

    ReplyDelete
  191. Please any one send me a C code to receive message by micro-controller from cell phone by using AT commands.....I need it.please send it to me on mail: parvez_nazeer@yahoo.com

    Thanks

    ReplyDelete
  192. Interesting post. I have been wondering about
    this issue,so thanks for posting.

    ReplyDelete
  193. is this reall working ? we would like to purchse the parts from you

    ReplyDelete
  194. hlo sir, i m jaspreet, i am tried to make this, but i can't understand how to connect the max232 with pic16f877A.... M using proteus for circuit designing, and i don't find GSM module in it... will u plz help me sir.. as soon as possible....

    ReplyDelete

If anybody wants any help with this stuff, just drop a comment or use the "Contact me" button at the top of the page . I'll be happy to help.