西门子手机模块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
用户评论
这个内容很丰富,C语言的,好用