how to use at command in c programming of keil compiler . i use 89s52 micro controller . my concept is if any fire accident occurring in my home means it send sms to me . so please send program to my email id (rk9047545247@gmail.com)
Please send program
How come that so many believe that when you have worked countless hours on something, you want to just give it away.
Could that be because the braggards that post their pitiful 'code' on the web makes everybody ass u me that paid people gladly do the same.
What do you think would happen if I, after charging someone $20,000.00 for some code, started giving it away to others?
Erik
The other issue is that people think there are ready code to post. They don't realize that real programs is the combination of a large number of modules - and many of these modules are specifically adapted to fit together with the neighbour modules.
There are not "one" word processor. There are not "one" compiler. There are not "one" photo editor. There are not "one" SMS gateway. There are not "one" home alarm.
So there can't exist "one" code that can be mailed out to anyone interested. People who don't have the skill to understand "the code" and adapt it according to the specific requirements don't have any use for web-published code or for requesting code. They have to settle for buying a consultant to do that custom adaptation - or better yet supply a turn-key solution.
A problem here is that people who ask for code thinks that 100 or 1000 source code lines represents a large program. So they think that there must be existing programs for everything - it's just a question of finding where it is. That even an embedded device can contain software with a million source lines or more are totally impossible to grasp. And that just the modem module may contain the result of a million lines of code, and have lots of custom-adapted AT commands is inconceivable. Code works best if matched to the AT command documentation for the specific modem, unless the code is guaranteed to just use a subset of instructions that are suitably "standardized".
People who don't have the skill to understand "the code" and adapt it according to the specific requirements don't have any use for web-published code or for requesting code.
my, often repeated, comment "if you can't code it yourself, downloaded code is worthless" restated
/*My program was given below my concept is to connect the gas sensor to P3^7 pin of micro controller and alarm connected to P3^6 pin of micro controller. P3^6 is low means the alarm is on. When the gas leakage is occure in home means the gas sensor give low (0) to micro controller it check the sensor input and send sms message to the User number in the program also switch on alarm. My question is whether this AT command is common for all type of gsm modum , I have a nokia mobile if my mobile used in the circuit means how to modify my program. Please tell me low cost gsm modem model , I will wait for your replay, Thank you [rk9047545247@gmail.com]*/
#include<at89x51.h> #include<stdio.h> #include<stdlib.h> sbit gassensor = P3^7; sbit alarm = P3^6; void GSM_modem(void) { delay2(); puts(Command_AT); delay2(); puts(Command_CMGF); delay2(); puts(Command_CMGS); delay2(); puts(msg02); delay2(); while(!TI); TI = 0;SBUF = 0x1A; } void serialcommunication(void) { TMOD = 0x20; SCON = 0x50; TH1 = 0xFD; TL1 = 0xFD; TR1 = 1; TI = 1; } unsigned char Command_AT[]="AT\r"; unsigned char Command_CMGF[]="AT+CMGF=1\r"; unsigned char Command_CMGS[]="AT+CMGS =+9190475xxxxx\r"; unsigned char CtrlZ=0x1A; unsigned char msg02[]="Gas Leakage occure!"; void delay2(void) { int i; for(i=0;i<25000;i++} {} } void main(void) { P3=0xff; while(1) { if(gassensor==0) { alarm=0; serialcommunication(); GSM_modem(); } else { alarm=1; } } }