| With the rapid development of mobile communication technology, wireless data value-added services of the mobile communication are entering the condition of powerful operation. Short Message Service (SMS) is the earliest and maturest, most consumers recognized service in different kinds of wireless value-added services. Short message platform is the guarantee of major Service Providers to achieve short message value-added service. In this paper, we design and realize a short message platform based on SMPP/CMPP protocol.The paper first reviews the development course and the present situation of SMS, elaborating the architecture of short message network and the principle of short message transmission. And further analyzes the Internet Short Message Gateway (ISMG) and the short message network interface protocol; discusses and designs a unified message access platform in detail; realizes the short message platform server design with emphasis, solves the key issues and processing flow of each module. Finally through the seal of SMPP /CMPP protocol, the short message platform interface is provided to the outside by the form of dynamic link library so that short message application systems can carry on secondary development.The system adopts C# object-oriented language to develope, mainly involves network programming, multi-thread processing, message queue and other technology. Short message server is primarily responsible for the communication with application entity, ISMG or Short Message Service Center (SMSC), as well as deals with uplink and downlink messages. The short message server is divided into application entity communication agent module, message processing module, gateway communication agent module, configuration and management module according to the differences of the function. In order to process the shared data among modules, we design a message queue class, define two global message queues, message sending queue and receiving queue, act as the bridge of data sharing among modules. The message processing module adopts multi-thread processing mechanism, develops independent thread to process the receiving and sending short message as well as the link testing. The system uses the sliding window flow control technology to improve the transmission efficiency and reliability, and guarantees the short message platform automatic response to ISMG through event model. The interface program, which is divided into Socket_IO layer, PDU layer and API layer, designs and implements packing and unpacking the Protocol Data Unit (PDU) defined in SMPP/CMPP and the request/response mechanism, the lower layer provides service for the upper layer, the realization of the upper functions need to use the lower functions. The sealed protocol is provided for the SP client in the form of API interface.To realize the mobile messaging platforms, short message applications system can access SMSC through SMPP also can access ISMG through CMPP .The platform can correctly and stably receive and send short message through testing and has been successfully applied in the communication platform of Guizhou Mobile Repeater Monitoring System. |