phoneserver里是
tapi_Init_SoftReset, ATZ
tapi_Init_SetNoEcho, ATE0
tapi_Init_SetCharset, 返回的字符编码,特别是汉字的编码,T39_PLATFORM的是AT+CSCS=\"UTF-8\,CELLON_PLATFORM的是"AT+CSCS=\"UCS2\" "
tapi_Init_SetExtendedError, AT+CMEE=1
tapi_Init_SetCRC, AT+CRC=1
tapi_Init_SetCREG, AT+CREG=1
tapi_Init_SetCLIP, AT+CLIP=1
tapi_Init_SetCMER, AT+CMER=0,0,0,0,0
tapi_Init_SetCCWA, AT+CCWA=1
tapi_Init_SetSMSFormat, AT+CMGF=0, PDU mode
// tapi_Init_SetCPBS, AT+CPBS="SM"
tapi_Init_SetCNMI, 赛龙的是AT+CNMI=2,1,0,1,0 其他的是AT+CNMI=3,1,0,0,0
#ifdef CELLON_PLATFORM
tapi_Init_SetPPURC, AT+PPURC=7
tapi_Init_SetCOLP, AT+COLP=0
#endif
#ifdef T39_PLATFORM
tapi_Init_SetCPMS, AT+CPMS="ME',"ME","ME"
#endif
// tapi_Init_WaitPbkReady AT+CPBW=? wait phonebook is ready
gsmd里:
/* echo on, verbose */
rc |= gsmd_simplecmd(gsmd, "ATE0V1");
/* use +CRING instead of RING */
rc |= gsmd_simplecmd(gsmd, "AT+CRC=1");
/* enable +CREG: unsolicited response if registration status changes */
rc |= gsmd_simplecmd(gsmd, "AT+CREG=2");
/* use +CME ERROR: instead of ERROR */
rc |= gsmd_simplecmd(gsmd, "AT+CMEE=1");
/* use +CLIP: to indicate CLIP */
rc |= gsmd_simplecmd(gsmd, "AT+CLIP=1");
/* use +COLP: to indicate COLP */
rc |= gsmd_simplecmd(gsmd, "AT+COLP=1");
/* use +CCWA: to indicate waiting call */
rc |= gsmd_simplecmd(gsmd, "AT+CCWA=1,1");
/* configure message format as PDU mode*/
/* FIXME: TEXT mode support!! */
rc |= gsmd_simplecmd(gsmd, "AT+CMGF=0");
rc |= gsmd_simplecmd(gsmd, "AT+CSCS=\"UCS2\"");//自己加上的
/* reueset imsi */
atcmd_submit(gsmd, atcmd_fill("AT+CIMI", 7+1,
&gsmd_get_imsi_cb, gsmd, 0, NULL));
这里要注意 的电话本AT+CSCS初始化返回sim卡上的姓名的汉字编码,如过没初始化,则读sim卡上的号码和姓名时,MTK返回的姓名将是NULL的,还有就是根据猫初始化语音电话,at+ecpi=2
阅读(2851) | 评论(0) | 转发(0) |