CN1424841A - Method for communication and data exchange between short message gateway and webpage - Google Patents
Method for communication and data exchange between short message gateway and webpage Download PDFInfo
- Publication number
- CN1424841A CN1424841A CN 03112602 CN03112602A CN1424841A CN 1424841 A CN1424841 A CN 1424841A CN 03112602 CN03112602 CN 03112602 CN 03112602 A CN03112602 A CN 03112602A CN 1424841 A CN1424841 A CN 1424841A
- Authority
- CN
- China
- Prior art keywords
- thread
- user
- content
- short message
- messaging gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A method for implementing communication and data exchange between short message gateway and home page includes such steps as transmitting a short message to short message gateway by user's mobile telephone via base station, receiving the short message and telephone number by said gateway, coding the contents of short message to be pointed by menu engine while recording it in memory queue, reading the codes by another thread of menu engine, calling the relative application from remote page server, returning back the contents pointed by user, receiving the contents and translating it to codes readable for said gateway by menu server, sending it to the gateway and sending it to the mobile telephone of user by the gateway.
Description
Technical field
The present invention is a kind of, and what relate in the mode with exchanges data of communicating between short messaging gateway and the webpage is that a kind of application menu engine technique (computer program) is realized the intermediate system that application (recreation) environment communicates on short messaging gateway and the webpage, is applicable to the short message service center of the GSM network of communication common carriers such as UNICOM, China Mobile and cdma network and short messaging gateway, short message interactive application.
Background technology
Communicate with exchange data using fixation application program between short messaging gateway and the webpage at present and realize, every kind of application program is made into (translating into) webpage can be realized by cognizance code, the application of each uniqueness all needs independent program to exchange, if any thousands of kinds of application, will work out thousands of kinds of independent application programs, the human cost of writing is very high, needs to realize with a large amount of personnel for a long time and safeguard.
Summary of the invention
The objective of the invention is provides a kind of mode that communicates with exchanges data at above-mentioned weak point between short messaging gateway and webpage, adopt feasible application (recreation) exploitation of menu engine technique to become very simple, for later development has been saved time and cost based on short message.Make to have different implications in application end simultaneously, saved the resource of instruction, reduced the user and remembered the process that complicated short message instructs with a kind of short message instruction.
The menu engine technique is a kind of mode computer program that communicates between short messaging gateway and webpage with exchanges data, is called for short the menu engine.The menu engine technique is deposited in the computer storage, and the computer that stores the menu engine technique in the memory is called the menu engine server.
A kind of communicating between short messaging gateway and webpage with the mode of exchanges data takes following scheme to realize:
Its exchanged form comprises:
(1) user mobile phone sends SMS message content to short messaging gateway by the base station, and the short gateway that disappears receives content and the cell-phone number that the user sends;
(2) computer program is converted to the content encoding of user's appointment with content of short message in the menu engine server, and different users has different command codings, and is recorded in the Installed System Memory formation;
(3) another thread of menu engine server reads short message coding from the Installed System Memory formation, selects to call application program in the long-range page server according to user's different conditions;
(4) page server returns the content of user's appointment, and this content is that the page can identification mode;
(5) the menu engine server receives returning of menu page server, and content of pages is converted into the short message code that short messaging gateway can be discerned, and the tabulation of the User Status in the update system internal memory;
(6) menu engine server program will be changed content of short message later and send to short messaging gateway;
(7) short messaging gateway sends to user mobile phone with content of short message.
Its menu engine server program comprises:
(1) obtain user mobile phone credit thread: this thread realizes that mainly the user of reception gateway sends SMS message and writes transmit queue with communicating with the SMS communication agreement between the short messaging gateway;
(2) content of short message is sent to the user mobile phone thread: this thread mainly realizes with communicating with the SMS communication agreement between the short messaging gateway, and the downstream message that will receive in the formation sends to short messaging gateway to receive former road, removes and receives formation;
(3) page processing threads: this thread is realized information is connect distributing according to the send SMS message difference of content of user, submit request to web page server, obtain returning bag and performing an analysis of web page server, discharge the web page server port, and information write receive in the formation;
(4) thread that returns of processing page: read the information in the transmit queue, judge idle page processing threads, and send it to this thread, corresponding record in the formation of clear to send simultaneously.
Adopting menu engine technique MENU ENGINE in the mode with exchanges data of communicating between short messaging gateway and the webpage is the intermediate system of realizing that application (recreation) environment on short messaging gateway and the webpage WEB SERVER communicates, it is the core system that realizes the short message user interactions, owing to adopted the menu engine technique, feasible application (recreation) exploitation based on short message becomes very simple, for later development has been saved time and cost.Make to have different implications in application end simultaneously, saved the resource of instruction, reduced the user and remembered the process that complicated short message instructs with a kind of short message instruction.
Range of application of the present invention is interactively application (recreation) environment, and menu engine technique (control program) has adopted the language of hypertext HSML, is in order to reach the language based on the XML standard that mutual purpose designs by short message.The scope of application of the present invention is the GSM network of all UNICOMs, mobile operator and the short message service center and the short messaging gateway of cdma network, and the short message interactive application can expand to the application of WAP, GPRS.
Description of drawings
The invention will be further described below with reference to accompanying drawing.
Fig. 1 is a kind of mode schematic diagram that communicates between short messaging gateway and webpage with exchanges data.
Fig. 2 is a kind of mode sequential processes block diagram that communicates between short messaging gateway and webpage with exchanges data.
Fig. 3 is a kind of mode collaborative process block diagram that communicates between short messaging gateway and webpage with exchanges data.
Fig. 4 is a kind of user mobile phone information of obtaining thread block diagram that communicates between short messaging gateway and webpage with the mode of exchanges data.
Fig. 5 be a kind of between short messaging gateway and webpage, communicate with the mode of exchanges data content of short message is sent to user mobile phone thread block diagram.
Fig. 6 is a kind of thread block diagram that returns with the processing page of the mode of exchanges data that communicates between short messaging gateway and webpage.
Fig. 7 is a kind of thread block diagram that returns with the processing page of the mode of exchanges data that communicates between short messaging gateway and webpage.
Description of drawings
With reference to accompanying drawing 1~7, a kind of processing procedure that between short messaging gateway and webpage, communicates with the mode of exchanges data:
1 user mobile phone sends SMS message content to short messaging gateway by the base station, and the short gateway that disappears receives content and the cell-phone number that the user sends;
Computer program is converted to the content encoding of user's appointment with content of short message in the 2 menu engine servers, and different users has different command codings, and is recorded in the Installed System Memory formation;
Another thread of 3 menu engine servers reads short message coding from the Installed System Memory formation, select to call application program in the long-range page server according to user's different conditions;
4 page servers return the content of user's appointment, and this content is that the page can identification mode;
5 menu engine servers receive returning of menu page server, and content of pages is converted into the short message code that short messaging gateway can be discerned, and the tabulation of the User Status in the update system internal memory;
6 menu engine server programs will be changed content of short message later and send to short messaging gateway;
7 short messaging gateways send to user mobile phone with content of short message.
It is as follows that the menu engine technique is finished major function:
1, in server (computer) internal memory, dynamically preserves user's MO point that sends SMS message and tabulate, can dynamically control the length and the time limit of tabulation;
2, each user is sent SMS message the MO program request to HTTPD request of WEB SERVER submission, accession page also obtains return results.Each request is submitted to and is obtained and all support a plurality of system parameterss when returning.
3, the menu engine is supported system's input of SMPP-GW with the communication protocol of CMPP1.X;
4, the menu engine is supported system's output of SMPP-GW with the communication protocol of CMPP1.X.
Menu engine server program comprises:
1, obtain user mobile phone information Read-cmpp thread (subprogram): this thread is mainly realized communicating with the agreement with CMPP1.X between the short messaging gateway, and the user of the gateway MO information (delivery-sm primitive) that sends SMS message is write and sends in the deliver formation.The main flow process of this thread as shown in Figure 4;
2, content of short message is sent to user mobile phone send-submit thread (subprogram): this thread is mainly realized communicating with the agreement with CMPP1.X between the short messaging gateway, and the downstream message that will receive in the submit formation sends to short messaging gateway to receive submi-sm primitive.The main flow process of this thread as shown in Figure 5;
3, the page is handled get-process thread (subprogram): this thread is realized that the difference according to the information content connects information and is distributed (according to the systemtab table), realize communication simultaneously to web page server Web Server, obtain the webpage Web information on backstage, and information is write in the reception submit formation.This thread flow process as shown in Figure 6;
4, the delivery-process thread (subprogram) that returns of processing page: this thread reads the information that sends in the deliver formation, judge idle page processing get-process thread, and send it to this thread, corresponding record in the deliver of the clear to send simultaneously formation.This thread flow process as shown in Figure 7;
The main mode of formation (shared memory space) that adopts communicates between each thread, guarantees the locking in memory shared district in the mode of semaphore.Wherein obtain user mobile phone information thread Read-cmpp, content of short message is sent to the thread delivery-process that user mobile phone thread send-submit, processing page return be single thread, page processing threads get-process can start a plurality of threads, the quantity of page processing threads get-process can be according to requirement (actual motion environment requirement) hack of configuration file, to obtain the best fit of system resource and response speed.
Adopt several different threads to be combined into main program according to user's instructions for use, the main mode of queue sharing memory headroom that adopts communicates between each thread, guarantees the locking in memory shared district in the mode of semaphore.
Except above-mentioned four main threads, system also should have a worker thread to realize the function that daily record is write, thread monitor reaches synchronously, thread is restarted, and the requirement that thread is controlled is:
1, thread does not have response message should give to restart for a long time;
2, should restart automatically the thread that withdraws from unusually;
3, receive the output and the formation system journal of each thread.
With reference to accompanying drawing 2,3, in a kind of mode sequential processes block diagram and collaborative process block diagram that between short messaging gateway and webpage, communicates with exchanges data:
Short message communication CMPP receiver class: such reception and upstream queue of mainly handling the user uplink short message of supporting with short message communication CMPP agreement is safeguarded;
Short message communication CMPP pusher class: such reception and down queue of mainly handling the descending short message of supporting with short message communication CMPP agreement of user is safeguarded;
The information processing class: such mainly obtains return results with user's request by the mode of the visit gateway Web page and adds in the down queue, and the information processing class can start a plurality of as required, can be configured according to the concrete environment of system;
The distribution of information class: such mainly obtains the data in the upstream queue and is distributed to a plurality of information processing classes according to the thread free pointer;
User's MO formation that sends SMS message: upstream queue, deposit cellphone subscriber's the MO information that sends SMS message;
Send to the formation of user feedback short message MT: down queue, deposit cellphone subscriber's feedback short message MT information.
Claims (4)
1, a kind of mode that communicates between short messaging gateway and webpage with exchanges data is characterized in that exchanged form comprises:
(1) user mobile phone sends SMS message content to short messaging gateway by the base station, and the short gateway that disappears receives content and the cell-phone number that the user sends;
(2) computer program is converted to the content encoding of user's appointment with content of short message in the menu engine server, and different users has different command codings, and is recorded in the Installed System Memory formation;
(3) another thread of menu engine server reads short message coding from the Installed System Memory formation, selects to call application program in the long-range page server according to user's different conditions;
(4) page server returns the content of user's appointment, and this content is that the page can identification mode;
(5) the menu engine server receives returning of menu page server, and content of pages is converted into the short message code that short messaging gateway can be discerned, and the tabulation of the User Status in the update system internal memory;
(6) menu engine server program will be changed content of short message later and send to short messaging gateway;
(7) short messaging gateway sends to user mobile phone with content of short message.
2, a kind of mode that communicates between short messaging gateway and webpage with exchanges data according to claim 1 is characterized in that menu engine server program comprises:
(1) obtain user mobile phone information thread: this thread realizes that mainly the user of reception gateway sends SMS message and writes transmit queue with communicating with the SMS communication agreement between the short messaging gateway;
(2) content of short message is sent to the user mobile phone thread: this thread mainly realizes with communicating with the short message communication agreement between the short messaging gateway, and the downstream message that will receive in the formation sends to short messaging gateway to receive former road, removes and receives formation;
(3) page processing threads: this thread is realized credit is connect distributing according to the send SMS message difference of content of user, submit request to web page server, obtain returning bag and performing an analysis of web page server, discharge the web page server port, and information write receive in the formation;
(4) thread that returns of processing page: read the information in the transmit queue, judge idle page processing threads, and send it to this thread, corresponding record in the formation of clear to send simultaneously.
3,, a kind of mode that between short messaging gateway and webpage, communicates with exchanges data according to claim 1 and 2, it is characterized in that adopting several different threads to be combined into main program according to user's instructions for use, the main mode of queue sharing memory headroom that adopts communicates between each thread, guarantees the locking in memory shared district in the mode of semaphore.
4,, a kind of mode that between short messaging gateway and webpage, communicates with exchanges data according to claim 1 and 2, it is characterized in that switching system also has that a worker thread realizes that daily record is write, thread monitor and synchronously, the thread function of restarting, be to the requirement of thread control:
(1) thread does not have response message should give to restart for a long time;
(2) should restart automatically the thread that withdraws from unusually;
(3) receive the output of each thread and form system journal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03112602 CN1424841A (en) | 2003-01-02 | 2003-01-02 | Method for communication and data exchange between short message gateway and webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03112602 CN1424841A (en) | 2003-01-02 | 2003-01-02 | Method for communication and data exchange between short message gateway and webpage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1424841A true CN1424841A (en) | 2003-06-18 |
Family
ID=4790201
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 03112602 Pending CN1424841A (en) | 2003-01-02 | 2003-01-02 | Method for communication and data exchange between short message gateway and webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1424841A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101827331A (en) * | 2010-04-26 | 2010-09-08 | 宇龙计算机通信科技(深圳)有限公司 | Method, terminal and server for stimulating network application to transmit and acquire short message |
CN101094227B (en) * | 2007-07-18 | 2010-09-15 | 中山大学 | Mobile platform online game message interaction method based on CS architecture |
CN101516072B (en) * | 2009-02-19 | 2011-05-18 | 万纳特科技(深圳)有限公司 | System for answering the problems of daily life through mobile terminal and method thereof |
CN101232540B (en) * | 2008-02-21 | 2012-04-04 | 中兴通讯股份有限公司 | Method and system for interacting information among systems |
WO2013174336A2 (en) * | 2012-09-05 | 2013-11-28 | 中兴通讯股份有限公司 | Remote game manipulation method and device |
CN104349291A (en) * | 2013-08-09 | 2015-02-11 | 富泰华工业(深圳)有限公司 | Electronic device and system and method for surfing Internet |
CN105765487A (en) * | 2013-06-27 | 2016-07-13 | 贝宝公司 | Execution and display of events in web browsers |
CN107018502A (en) * | 2017-03-29 | 2017-08-04 | 北京小米移动软件有限公司 | Short message recognition methods and device |
CN104168282B (en) * | 2014-08-22 | 2018-05-08 | 广州博冠信息科技有限公司 | cross-platform game communication method and system |
CN108683739A (en) * | 2018-05-16 | 2018-10-19 | 众安信息技术服务有限公司 | A kind of appraisal procedure and device of terminal applies content |
-
2003
- 2003-01-02 CN CN 03112602 patent/CN1424841A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094227B (en) * | 2007-07-18 | 2010-09-15 | 中山大学 | Mobile platform online game message interaction method based on CS architecture |
CN101232540B (en) * | 2008-02-21 | 2012-04-04 | 中兴通讯股份有限公司 | Method and system for interacting information among systems |
CN101516072B (en) * | 2009-02-19 | 2011-05-18 | 万纳特科技(深圳)有限公司 | System for answering the problems of daily life through mobile terminal and method thereof |
CN101827331A (en) * | 2010-04-26 | 2010-09-08 | 宇龙计算机通信科技(深圳)有限公司 | Method, terminal and server for stimulating network application to transmit and acquire short message |
CN101827331B (en) * | 2010-04-26 | 2015-07-08 | 宇龙计算机通信科技(深圳)有限公司 | Method, terminal and server for stimulating network application to transmit and acquire short message |
WO2013174336A2 (en) * | 2012-09-05 | 2013-11-28 | 中兴通讯股份有限公司 | Remote game manipulation method and device |
WO2013174336A3 (en) * | 2012-09-05 | 2014-01-16 | 中兴通讯股份有限公司 | Remote game manipulation method and device |
CN105765487A (en) * | 2013-06-27 | 2016-07-13 | 贝宝公司 | Execution and display of events in web browsers |
CN104349291A (en) * | 2013-08-09 | 2015-02-11 | 富泰华工业(深圳)有限公司 | Electronic device and system and method for surfing Internet |
CN104168282B (en) * | 2014-08-22 | 2018-05-08 | 广州博冠信息科技有限公司 | cross-platform game communication method and system |
CN107018502A (en) * | 2017-03-29 | 2017-08-04 | 北京小米移动软件有限公司 | Short message recognition methods and device |
CN107018502B (en) * | 2017-03-29 | 2020-10-09 | 北京小米移动软件有限公司 | Short message identification method and device |
CN108683739A (en) * | 2018-05-16 | 2018-10-19 | 众安信息技术服务有限公司 | A kind of appraisal procedure and device of terminal applies content |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1842063A (en) | Instant communication method | |
CN1729468A (en) | Data synchronization | |
CN1492655A (en) | Telephone directory information sharing system of mobile phone | |
CN1180603C (en) | Method and system for user interface of mobile terminal | |
CN1681248A (en) | Method and system for transmitting data for data synchronization between server and client | |
CN1565101A (en) | A method of server initiated synchronization in a synchronization system where the request message from the server has a maximum size | |
CN1901695A (en) | Short message management system using a vm application and a mobile communication terminal | |
CN101047658A (en) | Method for amending transmitted message and immediate communication device | |
CN1424841A (en) | Method for communication and data exchange between short message gateway and webpage | |
CN1819607A (en) | System and method for realizing group address book service | |
CN1568047A (en) | A method for implementing network side and terminal side service adaptation | |
CN1169563A (en) | Transmitter-receiver for electronic mail system | |
CN1633115A (en) | Method for implementing instant communication software intercommunication based on handset short message | |
CN1363486A (en) | Intelligent taxi scheduling system with satellite location | |
CN1859262A (en) | Device and method for realizing transfer net page information in mobile terminals | |
CN1941702A (en) | Method and method for issuing blog articles | |
CN100341270C (en) | Method for reflecting task progress of message based distributed platform client | |
CN1157909C (en) | Connection handle | |
CN1155211C (en) | Goal filtering method, and customer device using same | |
CN1363482A (en) | Intelligent taxi scheduling system with satellite location | |
CN1750672A (en) | Method for reading color message content | |
CN1589040A (en) | Method for processing and identifying name card image using cell phone color information | |
CN1553724A (en) | Method and system for improving multimedia message performance process by multimedia message system | |
CN1445974A (en) | Method for automatic transferring name cards through communication with mobile telephone | |
CN1842004A (en) | User state showing system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |