西门子手机模块TC35I c8051f020 源码
#include "c8051f020.h" // SFR declarations #define UINT unsigned int #define UCHAR unsigned char #define STARTCODE 0xfb #define ENDCODE 0xf7 #define TI1 (SCON1 & 0x02) #define RI1 (SCON1 & 0x01) //sms unsigned char xdata rec[80]; //0923 unsigned char code GSMCommand0[3] = "AT\r"; unsigned char code GSMCommand1[7] = "AT+CSQ\r"; unsigned char code GSMCommand2[10] = "AT+CMGF=0\r"; unsigned char code GSMCommand3[12] = "AT+CMGS=027\r"; unsigned char code GSMhead [12]="0011000D9168"; //unsigned char xdata PHONE_number[12]="3186634579f0"; //unsigned char xdata PHONE_number[12] _at_ 0x1010;//="3196415615F0"; unsigned char xdata PHONE_number[8][256][13]_at_ 0x1010;//="3196638946f4"; //unsigned char xdata PHONE_number[12]="3186117183f2"; unsigned char code GSM_set[6]="000801"; //unsigned char code GSM_sms[10]="044F60597D"; //短消息内容:你好 unsigned char code GSM_sms[26]="0C62115DF27ECF52308FBE3002"; //短消息内容:我已经到达。 //sms [12]="0011000D9168"; //unsigned char xdata PHONE_number[12]="3186634579f0"; //unsigned char xdata PHONE_number[12] _at_ 0x1010;//="3196415615F0"; unsigned char xdata PHONE_number[8][256][13]_at_ 0x1010;//="3196638946f4"; //unsigned char xdata PHONE_number[12]="3186117183f2"; unsigned char code GSM_set[6]="000801"; //unsigned char code GSM_sms[10]="044F60597D"; //短消息内容:你好 unsigned char code GSM_sms[26]="0C62115DF27ECF52308FBE3002"; //短消息内容:我已经到达。 //sms
文件列表
SMS_Mcu_Program.rar
(预估有个25文件)
SMS_Mcu_Program
youtian
sl.c
74KB
sms_Opt.Bak
3KB
sms.c
25KB
ocmj.txt
18KB
gsm
gsm.C
18KB
c8051F020.h
16KB
sms
60KB
用户评论