【正文】
er),由短消息服務(wù)中心再發(fā)給最終的信宿,是目前應(yīng)用最廣泛的一種通信方案。 1 短消息基本原理介紹 1. 1 GSM模塊介紹 目前,市場(chǎng)上 GSM模塊種類(lèi)很多,但功能、用法基本相同。設(shè)備通過(guò)發(fā)送 AT命令來(lái)控制移動(dòng)臺(tái),并與 GSM網(wǎng)絡(luò)業(yè)務(wù)進(jìn)行交互。 1. 3 收發(fā)短消息的模式 目前 , 接收和發(fā)送 SMS信息常用的模式主要有兩種 : Text(文本 )模式和PDU(Protocol Data Unit, 協(xié)議數(shù)據(jù)單元 )模式。 (2)PDU模式 PDU模式被所有手機(jī)支持,可發(fā)送中英文短信。其代碼表示為將實(shí)際數(shù)據(jù)兩兩顛倒,例如實(shí)際短信息中心號(hào)碼應(yīng)為“ 8613800311500”。在Text 模式下時(shí)間和日期均 為 ASCII 碼,可直接讀取,只需將內(nèi)容中漢字部分的Unicode 碼轉(zhuǎn)換成國(guó)標(biāo)碼;而在 PDU 模式下除漢字編碼轉(zhuǎn)換外,還需將號(hào)碼、時(shí)間部分編碼進(jìn)行兩兩顛倒的轉(zhuǎn)換,才能得到所需的正確信息。本設(shè)計(jì)中選擇 P89V51RD型單片機(jī),該芯片提供的 1 KB RAM可以滿(mǎn)足存儲(chǔ)多條短信的要求。轉(zhuǎn)換流程如圖 2所示。本方法利用數(shù)控模擬開(kāi)關(guān) CD4052來(lái)做多串口擴(kuò)展器,成本低廉而且接線(xiàn)簡(jiǎn)單。當(dāng) INH為 1時(shí),所有通道均關(guān)閉。 單片機(jī)控制 GSM模塊在 Text模式下接收手機(jī)中文短信息,其編碼轉(zhuǎn)換格式較為簡(jiǎn)單,并有較高的轉(zhuǎn)換速率。 GSM module to send and receive Chinese SMS key technologies Mobile phone short message service SMS (Short Message Service) is a global system for mobile munications GSM (Global System for Mobile Communication) of a basic business, which uses signaling channel transmission, do not set up dialup connection, directly to the information issued to increases on the destination address is sent to the Short Message Service Center (service center), from the Short Message Service Center and then the final letter sent to places, are currently the most widely used of a munications , with the widespread use of mobile phone, SMS message service for its convenience, low prices and increasing attention has been widely applied to monitor the positioning system, wireless alarm, remote maintenance and data information and other fields . In this paper, singlechip through the serial port to send AT mands to control GSM wireless transceiver modules, realize do not support Chi nese encoding in the Text (text) mode to receive Chinese SMS hardware and software design of the study and use of numerical control analog switches CD4052 realize more than a singlechip serial port expansion. 1 Introduce the basic principles of short message GSM Module Introduction At present, the market, many different types of GSM modules, but the function, usage is basically the same. In this paper, the use of the Siemens pany TC35i module with GSM2/2 patible,providing dualband and RS232 data interface, an external provider and making themselves laughing stocks