Some experiences of developing value-added service in China Mobile MAS short message platform

Source: Internet
Author: User
Tags reserved system log

Mas development of value-added service platform for SMS

   

China Mobile MAS Machine knowledge I am not very familiar with, only know how to use it and. NET development link up to do text messaging, below is what I saw on the Internet some of the introduction: Mobile Agent Server (MAS)

1 , MAS system composition and function:

MAS system including MAS terminal, MAS Server and MAS management platform, China Mobile through the group customers (mainly with a complete enterprise information system of Government industry users and enterprises) within the deployment of mobile Proxy server, for the group of customers based on mobile terminals (including SMS, MMS, GPRS, WAP, Mobile phone clients and so on) the information Application service. Through mobile Proxy server, different industry user applications and services are extended to mobile terminals.

1. 1 MAS Server composition and function:

The composition of MAS server:

The MAS server consists of application access adapter module, business scheduling module, mobile security access module and Management module.

Functions completed by the composition:

Application of Access adapter module to realize mobile application Mobile application interface, through a variety of mobile communication methods to complete mobile office, mobile email, data on-site query, collection, input, WAP applications and other mobile applications.

The Business Processing module deals with the data information received from the application system, including information processing and routing, user authentication, business scheduling, log processing and QoS control.

On the one hand, the mobile security access module realizes the data communication between MAS server and industry gateway through the interface protocol provided by mobile industry gateway. On the other hand, using security encryption technology to provide safe access to SMS, MMS security access, GPRS security access, WAP security access, USSD security access, intelligent terminal security access function, through this way to achieve information in the air encryption transmission, for the MAS terminal to provide security services.

The management module completes the management and service of MAS server, which can provide the interface sub module of network management and authentication. can choose the service navigation, the route management, the business management, the data management, the application release, the statistical analysis, the address this management, the system configuration management and so on function module.

1. 2. Mas Management Platform:

The MAS management platform runs in the mobile company, communicates with the MAS server through the encrypted IP channel, completes the management and the control to the MAS server, the specific management content has the configuration management, the authentication management, the monitoring management, the fault management, the security management, the promotion maintenance management.

1, 3, MAS Terminal:

Through MAS system, mobile terminals can connect to the application data in the access information network by means of SMS/MMS short message, GPRS and other mobile communication methods. MAS terminal equipped with hardware encryption module (such as mobile phone equipped with security SIM card, notebook with security PCMCIA card), the Mobile Security Access module encryption issued information to decrypt, the uplink information encryption and other operations to ensure that the information received or sent the transmission of information security. MAS terminals can be ordinary mobile phones, smartphones or PDA mobile phones, mobile laptops and other mobile terminals.

2 , MAS System Structure:

2. 1 system structure diagram:

2. 2 MAS Network structure:

MAS server: Deployed within the industry users and enterprises, through the WAN or mobile public network and Industry gateway, MAS management platform for communication.

MAS management platform: Deployed in the mobile computer room, through the internal network of China Mobile and the boss and provincial integrated network management communication, through the WAN to the MAS servers.

MAS Terminal: MAS terminals use the services provided by MAS systems via mobile networks. Depending on your needs, you may need to install the client software.

3 , MAS completed business:

3. 1 Mas Business Description:

Mas terminal through the security of short message, GPRS online mode, IP Online services, WAP and other data services, through MAS Business Proxy server forwarding MAS terminal business request, the completion of data movement query, collection, input and other mobile applications, business processing completed from the MAS server to receive processing results, And the processing results are returned to the MAS terminal.

3. 2 Mas to complete the business process:

1 The deployment of MAS server: Based on the business users need to complete the operation of the installation of MAS server deployment,

2) Business Acceptance:

Business Processing sequence diagram:

3) MAS Server registration:

Mas Server Registration Management:

4 MAS Server Authentication and verification:

Mas Server Authentication and verification

5) Configure the application Access Adapter module:

In the MAS server to configure the mobile application Access adapter module, the configuration content includes the basic information of MAS server, including host information, support user number, IP address, business service port and so on.

6 Running MAS system:

The MAS server opens the corresponding function according to the Mobile data service and service adaptability issued by MAS management platform;

The MAS management platform monitors and manages the equipment status and operation status of MAS server;

MAS Terminal Configuration Security module, application module, through the Mobile communication network and MAS server to achieve secure communication, MAS server as a business proxy server to the Application Business Processing server forwarding MAS terminal business request, after the business processing from the MAS processing server to receive processing results, And the processing results are returned to the MAS terminal.

4 , MAS security in the system :

Mas system uses security measures to ensure the security of information network transmission, MAS server security, industry user Information Network information security, mobile terminal security, the protection of China Mobile industry users mobile applications overall security.

4. 1 Data Transmission security:

The MAS server is connected to the industry gateway and MAS management platform by VPDN Way, which guarantees the security of data transmission from the IP link, and the information is transmitted by encryption in the network transmission, which guarantees the security of data transmission.

In the industry and application which have higher requirement for safe transmission, the special security transmission and authentication system with higher security level can be used to ensure information security.

4. 2 Mobile Terminal security:

Mobile terminals can use a dedicated security SIM card, Security PCMCIA module for information encryption, user identity authentication to ensure the safety of mobile terminals.

4. 3 Mas Management Platform Security:

MAS system provides security functions from access control, security detection, attack monitoring and Operation Audit, and has complete network security monitoring, alarming and fault handling functions, which ensures the safety of MAS management platform.

4. 4 Perfect Rights Management and log management:

MAS system provides database log, operating system log perfect management log, security SIM card/secure Pimcia card on mobile terminal and the use of user and administrator rights Management system provided by MAS management platform to manage the use of MAS systems effectively.

He has a lot of functions, the following is a brief introduction of his one months to his use. Mainly in the message sent to receive some content

The database of MAS machine We can look, there are a lot of tables, we do mobile value-added development, the real use of only two tables: Tbl_smsendtask and tbl_smreceived

Tbl_smsendtask table: This is the message issued a task table, added to the contents of this table, if the conditions, or the corresponding insertion information is true, then the MAS machine will immediately send the message, after the success of the record will be automatically deleted.

The following is a brief description of the table's field names and their effects:

Field name

Description

Id

Primary key, ID number of task, auto increment field

Creatorid

Creator ID

TaskName

Task Name
When Smtype is 3 or 4 o'clock, the Enterprise code spId is represented

Smsendednum

The number of the task that has been sent, with an initial value of 0
A paused implementation also needs to be supported here.

Operationtype

Logo is mobile office: Was, business customization: SPS

Suboperationtype

corresponding to the type of common business in the mobile office was, the service configured in the value 50-99;sps, takes value 0-49. Facilitates the expansion of customized business types. and small categories of statistics

Sendtype

1: Ordinary text message 2: To express a mass message 3: To point through 4: to express the usual business 5: Express Wap-push SMS

Orgaddr

Caller ID number, source address

Destaddr

1. Destination address mobile phone number. When a single task for SPS business and was is separated by an air compartment; 2. When the destination address is a file, it is currently a file number for a message and does not support multiple files; 3. When Smtype is 3 or 4 o'clock, the user ID is used Destuserid

Sm_content

The message content, when Smtype is 3 or 4 o'clock, represents the billing user type Feeuserid

Sendtime

SMS Request time

Needstatereport

Whether a status report is required; 0: no status Report; 1: To Status Report

Serviceid

Business code

Feetype

The tariff type of the SMS

Feecode

Tariff code (in units)

MsgID

The message ID returned from the gateway for the status report

Smtype

The default value is 0
Indicates the type of the message
0: Ordinary SMS 1: On-Demand SMS 3 reverse order Message 4 reverse Cancel Order Message 5 forward message reply

MessageID

The default value is ' 0 '
Smtype is 0, this field is 0
Smtype is 1, this field is Lindid
Smtype is 2, this field is TransactionID (CMPP3 version supported)
When Smtype is 3 or 4 o'clock, the transaction ID number is represented TransactionID

Destaddrtype

The default value is 0
ID DESTADDR is the real phone number or pseudo code
0: The real mobile phone number
1: Pseudo-code (CMPP3 version support)

Subtime

The time the message was submitted to the publication

TaskStatus

Whether the task has been removed, has not been removed as: 0, after the removal is: 1

Sendlevel

General send level, the highest level 0, and so on, now divided into the highest 0, high 1, Medium 2, low 3, four levels. The SPS are all level 0, followed by the use of the three level.

Sendstate

The status of the message sending task is divided into: send 0, pause 1, cancel 3, pause forwarding, if the task has been loaded into memory that is (Taskstatus=1) set to 2, if it has not been loaded into memory that is (taskstatus=0), set to 0. Changing from a cancellation state to sending requires setting the TaskStatus to 0, sending a status of 0, and deleting related records of the task in the Tbl_smsendstate table for tasks that have been loaded into memory.

Trytimes

Number of times to be sent back

Count

Total number of lines of the task

Successid

The task sends a progress that represents the text message sent to the task

Reserve1

Reserved fields

Reserve2

Reserved fields

After reading these fields, there are still a lot of things you don't understand, so take a look at this insert example below:

Insert into Tbl_smsendtask (Creatorid,serviceid,operationtype,sm_content,orgaddr,destaddr,sendtype,taskstatus, Feetype,feecode,msgid)

VALUES (' 0000 ', ' MSC2110505 ', ' was ', ' sorry, the vote has ended ', ' 10657307023210170 ', ' 1354444**** ', ' 4 ', ' 0 ', ' 01 ', ' 0 ', ' 0 ')

The fields used in this INSERT statement are the fields that must be added, or the MAS will not send this message.

Serviceid is the encoding of MAS, each MAS machine has a name, just like the computer name.

ORGADDR: The number address of the caller, this is the Send table, then this address is the address of MAS machine, this address is very long, roughly: 10657307023210170. The first 12 digits of this number are fixed by China Mobile after the launch of each MAS machine. Like the MAS ID card, the use of his mobile can be traced to the specific hardware location. After this entry into the MAS database, if the conditions are met, the MAS will communicate with China Mobile communications to the corresponding mobile phone number.

The above INSERT statement, can realize to China Mobile user 1354444**** send short message, the user receives the short message displays the number is 10657307023210170.

The other table is the form that accepts text messages tbl_smreceived

This form is used to receive messages from mobile users replying to this MAS machine.

This table is also a very important table, we do value-added development personnel can read from this table we want the information, statistical analysis, etc., get what we want.

The fields in this table we are more concerned about are: reply to the SMS phone number, reply content, reply time and so on.

Summary

Introduction to here, we should be able to understand, mobile value-added service system of some development ideas. In fact, the first contact MAS system development, I do not know how to do is not understand how this message is sent to, and the reply to the message is how to receive. After this article, we should be able to understand, for the message sent and received, we have to do is only the MAS machine database in the sending table to add records, in the receiving table to read the record can be, as to how the message sent, we do not need to know.

In addition, many of these things are about the database processing, so many operations we can not be completed in the program, so that there is no timeliness, such as user response to a poll of a message, then he should immediately receive the prompt to say that the vote is successful or failure, if this process to be implemented in the program, Then you must run the program at all times, always refresh to reply, otherwise the user can only be in your program next time will receive the information prompt, timeliness is not. The user hint in this example may be later, but for statistics or other work is not the same, the system users can not always refresh the system, to access the database, so the load is too large.

Therefore, in the development of mobile MAS value-added services, we have to do a lot of processing in the database rather than the program. For example, the use of triggers, the use of jobs, etc., so that users can immediately reply to the text of the content of the effective judgment and a number of simple statistical classification, analysis, making the system more humane, usability, timeliness is stronger.

The above is my small experience of the development of MAS value-added services, deficiencies or mistakes, please correct me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.