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)
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.