xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡(jiǎn)介

內(nèi)含短信pdu編寫(xiě)資料,內(nèi)帶基于C語(yǔ)言的短信pdu編碼解碼的源碼,賦長(zhǎng)短信的拆分合并

資源截圖

代碼片段和文件信息

//---------------------------------------------------------------------------
#pragma?hdrstop
#include?
#include?“Sms_Send.h“
#include?“Main_Form.h“
#include?“DataModule.h“
#include?“frmHint.h“
#include?“frmSample.h“
#include?“vector.h“
using?std::vector;
//---------------------------------------------------------------------------

#pragma?package(smart_init)

//定時(shí)抄表?pCriticalSection??Sample_all_lock;??//避免兩次定時(shí)采集時(shí)間過(guò)短,同時(shí)進(jìn)入采集線程
pCriticalSection??Sample_one_lock;??//一次數(shù)據(jù)采集,對(duì)串口的寫(xiě)互斥

bool?Main_Terminate_sms;
bool?Main_Terminate_Data;

SMS_STRUCT?Sms_Var;?????????????????//等待發(fā)送的短信
CUR_METER_STRUCT?Cur_Meter_Info;????//記錄處理的當(dāng)前表的信息
CUR_METER_STRUCT?Old_Meter_Info;

unsigned?short?Modem_Rtn_ID;?????//?返回的Modem結(jié)果碼
AnsiString??smsc_addr;???????????//?短信中心地址
AnsiString??SMS_index;???????????//短信的索引號(hào)

const?bool?if_mul?=?false;????????????????????//是否是抄多表的標(biāo)志
bool?Process_State?=?FREE;?????????????????//?MSCommu控件的接收處理狀態(tài)
unsigned?short?error_code?=?0;?????????????//??出錯(cuò)代碼
bool?Modem_Connect_Status?=?false;?????????//modem狀態(tài)變量,是否已經(jīng)連接
bool?receive_wait?=?false;?????????????????//由定時(shí)器接收還是由主程序接收
bool?Have_Get_CSCA?=?false;????????????????//沒(méi)有能夠讀取短信中心的值
unsigned?char?wait_for_send_sms_count?=?0;?//等待發(fā)送的短信的條數(shù)
sms_arr_Struct?sms_arr;

//------------------------------------------------------------------------------
//函數(shù)名稱(chēng):Uart_TC35_Send_SM
//功????能: 發(fā)送短信阻塞調(diào)用方式
//入口參數(shù):void
//
//返回值:
//????????void
//------------------------------------------------------------------------------
bool?__fastcall?Uart_TC35_Send_SM(void)
{
????AnsiString??str_tmp;
??try{
????//測(cè)試是否支持CMGS?發(fā)送指令
????while(Process_State?==?BUSY)?Sleep(100);
FormMain->Modem_TC35->Output?=?(AnsiString)“AT+CMGS=?\r“;
if(Process_TC35_Return_Data(RTN_OK)?==?false)??{
????????if(Main_Terminate_Data?==?true)?{
??????????System_Hint_Item(“短信發(fā)送操作被中止“);
????????}
????????error_code?=?900;
????????return?false; //如果不支持則返回失敗
????}

//發(fā)送AT+CMGS=數(shù)量
str_tmp?=?“AT+CMGS=“;
if((Sms_Var.tpdu_len?/100)?!=?0)??{
????????????????str_tmp?+=?“?“;
????????????????str_tmp[str_tmp.Length()]?=?((Sms_Var.tpdu_len/100)%10)+0x30; //?如果有百位則發(fā)送百位
????}
if((Sms_Var.tpdu_len?/10)?!=?0)??{
????????????????str_tmp?+=?“?“;
????????????????str_tmp[str_tmp.Length()]?=?((Sms_Var.tpdu_len/10)%10)+0x30; //?如果有十位則發(fā)送十位
????}
????if((Sms_Var.tpdu_len)?!=?0)??{
????????str_tmp?+=?“?“;
????????????str_tmp[str_tmp.Length()]?=?(Sms_Var.tpdu_len%10)?+?0x30;???????????//?添加個(gè)位數(shù)
????}
????str_tmp?+=?‘\r‘;

????while(Process_State?==?BUSY)?Sleep(100);
FormMain->Modem_TC35->Output?=?str_tmp;??//發(fā)送AT+CMGS=LEN\r
? if(Process_TC35_Return_Data(SMS_SEND_PROMPT)?==?false)??{
????????if(Main_Terminate_Data?==?true)?{
??????????System_Hint_Item(“短信發(fā)送操作被中止“);
????????}
????????error_code?=?901;
????????return?false;
????}???????????//等待回應(yīng)發(fā)送提示符“>“的返回

????str_tmp?=?Sms_Var.smsc_code;
????str_tmp?+=?Sms_Var.call_phone_code;
????str_tmp?+=?Sms_Var.sms_message;

????whil

?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----

?????文件??????28252??2018-09-04?19:06??短信pdu所有資料\CMPP3.0_長(zhǎng)短信實(shí)現(xiàn)方案.docx

????I.A....????142619??2018-09-03?19:40??短信pdu所有資料\GSM短消息&長(zhǎng)短信解碼.pdf

????I.A....????128924??2018-08-23?09:40??短信pdu所有資料\pdu長(zhǎng)短信接收及發(fā)送.docx

?????文件??????14336??2018-08-17?17:55??短信pdu所有資料\新建?DOC?文檔.doc

????I.A...R?????90112??2018-08-17?11:54??短信pdu所有資料\消息編碼與解碼---C語(yǔ)言實(shí)現(xiàn)(bit7?bit8?ucs2串口等).doc

????.......????156130??2011-04-18?16:24??短信pdu所有資料\短信的源代碼示例\Sms_Send.cpp

????.......??????9252??2011-04-18?16:24??短信pdu所有資料\短信的源代碼示例\Sms_Send.h

????.......???1377726??2011-04-18?16:24??短信pdu所有資料\短信的源代碼示例\Sms_Send.obj

????.......??????1469??2011-04-18?16:25??短信pdu所有資料\短信的源代碼示例\thread.h

????.......??????5689??2011-04-18?16:25??短信pdu所有資料\短信的源代碼示例\Thread_Modem.cpp

????.......??????1052??2011-04-18?16:25??短信pdu所有資料\短信的源代碼示例\Thread_Modem.h

????.......???????246??2011-04-18?16:25??短信pdu所有資料\短信的源代碼示例\thread_test.cpp

????.......??????1131??2011-04-18?16:25??短信pdu所有資料\短信的源代碼示例\thread_test.h

?????文件??????90112??2012-05-29?09:42??短信pdu所有資料\短信編碼與解碼C語(yǔ)言\短信編碼與解碼C語(yǔ)言.doc

?????目錄??????????0??2018-09-04?17:31??短信pdu所有資料\短信的源代碼示例

?????目錄??????????0??2018-08-27?09:34??短信pdu所有資料\短信編碼與解碼C語(yǔ)言

?????目錄??????????0??2018-12-01?17:48??短信pdu所有資料

-----------?---------??----------?-----??----

??????????????2047050????????????????????17


評(píng)論

共有 條評(píng)論

相關(guān)資源