Font Size: a A A

Design And Implement Of Gateway Platform Connection Module In The Mobile Phone Short Message Service

Posted on:2006-04-10Degree:MasterType:Thesis
Country:ChinaCandidate:J ZhangFull Text:PDF
GTID:2168360155454132Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In the service of mobile communiction,most of them are related to audiotransmission. On the contrary, data transmission is just in a developing phase.As the only data service at present, short message service is developing fast.Short message information service is a kind of new short message serviceprovided by each telecommunication operators and their designated SP/CP,which contains information service, amusement service, location service,communication service and commercial service.The mobile telephone short message customization system (SMCS) whichis introduced in this paper is a kind of short message information service system.It mainly provides entertainment service, by the way of mobile telephone shortmessage customization, through China Unicom offer service for mobiletelephone users.The system consists of the following modules:1. Gateway platform connection module: It connects to China Unicom shortmessage gateway , sends and receives data which uses SGIP protocol.2. Short message handling module: Take the responsibility of handling MO andMT short message, delivering MT short message and submitting MO shortmessage.3. Short message central module: Handle MO short message, excuteinstructions, then return results.4. Billing system module: This module confirms the user customization, andupdate corresponding database tables.5. User delivery module: After the short message service having beencustomized, this module can send the short message of various types accordingto time.6. Background management module: Manage the website.This paper focus on the design, analysis and implements of the Gatewayplatform connection module in the system.Gateway platform connection module provides the interface tocommunicate with China Unicom short message gateway, and to pack anduppack datas, it also supports TCP/IP protocol. This module mainly consists ofgateway communication module and SGIP protocol data handling module:1. Gateway communication module:Gateway communication module and China Unicom short messagegateway are both client and server of each other while communicating. OnWindows platform, we use Windows Sockets2, non-blocking mode, andasynchronous selection. Making the server function and the customer functionof gateway communication module in two threads can improve the performanceof the program.The implements of server side: create listening thread, listen networkevents, accept the connection of gateway, receive user's short message fromgateway.(MO course)The implements of customer side: create thread , connect gateway, listennetwork events, login, then receive data.(MT course)2. SGIP protocol data handling module:According to the SGIP protocol, disassemble the received data, retrieve theuseful information from raw data; assemble sending data and send to shortmessage gateway.The process of parsing received data: disassemble received data one by one,parse it by symbol table. Then excute the operation.The process of assembling sending data: assemble sending data accordingto SGIP protocol (message head and message body). Handle the head ofmessage ( pack message head ), handle different orders'message body ( packmessage body ), assemble message head and message body to be a completeshort message package, feed the complete short message packages to connectionfunction and message dispatch function, it will send the short message togateway .SP sends connection request to gateway: initialize register order's messagebody, call assembling function, send assembled message bale, and implementthe function of connection.
Keywords/Search Tags:Connection
PDF Full Text Request
Related items