2012年12月18日
摘要: #include<iostream>#include<string>#include<stdlib.h>using namespace std;void nts(int num){ const int SIZE=256; char buffer[SIZE]; int offset=SIZE-1; buffer[offset]='\0'; while(num>=10) { int d=num % 10; num=num / 10; buffer[--offset]=(char)(d+0x30); } buffer[--offset]=(c 阅读全文
posted @ 2012-12-18 23:20 hcmfys_lover 阅读(167) 评论(0) 推荐(0) 编辑
  2010年12月6日
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//dll是个好东西,呵呵,下面简单的总结下dll的创建和调用。  //创建:  //dll.h  ////////////////////////////////////////////  #ifndefdll_h_  #definedll_h_    #defineMYFIRSTDLLextern"C"_declspec(dllexport)  MYFIRSTDLLvoidShowText(v 阅读全文
posted @ 2010-12-06 16:00 hcmfys_lover 阅读(205) 评论(0) 推荐(0) 编辑
  2010年11月29日
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#ifndef_GDI_PLUS_H#define_GDI_PLUS_H#include<Gdiplus.h>usingnamespaceGdiplus;#pragmacomment(li... 阅读全文
posted @ 2010-11-29 20:22 hcmfys_lover 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--/**converttowidestring*/wchar_t*ConvertWideChar(char*cstr){intWLen=MultiByteToWideChar(CP_ACP,0,cstr... 阅读全文
posted @ 2010-11-29 20:20 hcmfys_lover 阅读(266) 评论(0) 推荐(0) 编辑
  2010年11月26日
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1//GeneratedbyReflectorfromC:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dl... 阅读全文
posted @ 2010-11-26 11:57 hcmfys_lover 阅读(531) 评论(0) 推荐(0) 编辑
  2010年6月29日
摘要: AT编程常见问题 1. 如何与GSM MODEM建立通信联系2. 不能与GSM MODEM进行正常的通信或总是在仿真终端上出现乱码3. 如何才能知道错误代码4. 发送短消息后,收到出错信息+CMS ERROR 5125. 发送短消息后,收到出错信息+CMS ERROR 5136. 发送短消息后,收到出错信息+CMS ERROR 5147. 发送短消息后,收到出错信息+CMS ERROR 5158.... 阅读全文
posted @ 2010-06-29 09:38 hcmfys_lover 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 本文以一个实例来解说AT指令发送PDU短信的全过程,假如我要发送下面的短信:接收号码:+8613602433649短信内容:工作愉快!短信中心号码:+8613800200500一、短信中心号码处理:用字符串 addr 表示1、将短信息中心号码去掉+号,看看长度是否为偶数,如果不是,最后添加F即 addr = "+8613800200500"=> addr = "8613800200500F"... 阅读全文
posted @ 2010-06-29 09:37 hcmfys_lover 阅读(535) 评论(0) 推荐(2) 编辑
摘要: 1.相关的GSM AT指令 与SMS有关的GSM AT指令(from GSM07.05)如表1所示: 表1 相关的GSM AT指令AT 指令 功 能 AT+CMGC Send an SMS command(发出一条短消息命令) AT+CMGD Delete SMS message(删除SIM卡内存的短消息) AT+CMGF Select SMS message formate(选择短消息信息格式:... 阅读全文
posted @ 2010-06-29 09:30 hcmfys_lover 阅读(342) 评论(0) 推荐(0) 编辑
摘要: A.发送中文例子:发送中文有两种方法,一种是PDU,一种是UCS2文本1.PDU方法:at+cmgf=0at+cmgs=24>0891683108100005F011000B813109018759F10008A70A00650073007496484E30信息内容为set陈丰解释:此字符串传set陈丰五个字符,采用unicode编码。0891固定格式不动,683108100005F0为短消... 阅读全文
posted @ 2010-06-29 09:28 hcmfys_lover 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: 一、英文短信发:AT收:OK发:AT+CMGF=1 收:OK发:AT+CMGS=13602433649收:>发:data→ //test 为发送内容,→为发送符(ctrl+z,十六进制0x1A)收:+CMGS: 54 OK二、中文PDU短信本文以一个实例来解说AT指令发送PDU短信的全过程,假如我要发送下面的短信:接收号码:+8613602433649短信内容:工作愉... 阅读全文
posted @ 2010-06-29 09:27 hcmfys_lover 阅读(835) 评论(0) 推荐(0) 编辑