CN104754535A - Message access device - Google Patents

Message access device Download PDF

Info

Publication number
CN104754535A
CN104754535A CN201510057194.3A CN201510057194A CN104754535A CN 104754535 A CN104754535 A CN 104754535A CN 201510057194 A CN201510057194 A CN 201510057194A CN 104754535 A CN104754535 A CN 104754535A
Authority
CN
China
Prior art keywords
data
module
short message
sent
sms center
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
Application number
CN201510057194.3A
Other languages
Chinese (zh)
Inventor
曹纪清
商琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Industrial Park Institute of Services Outsourcing
Original Assignee
Suzhou Industrial Park Institute of Services Outsourcing
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Industrial Park Institute of Services Outsourcing filed Critical Suzhou Industrial Park Institute of Services Outsourcing
Priority to CN201510057194.3A priority Critical patent/CN104754535A/en
Publication of CN104754535A publication Critical patent/CN104754535A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The embodiment of the invention provides a message access device. The device is configured in a message gateway. The device comprises an access main module, a data transmission module, a data receiving module, a protocol processing module and an overtime processing module. The message access device provided by the embodiment of the invention is capable of being responsible for switching message data between the message gateway and a message center through a standard message protocol to realize data interaction between an applying system and a user.

Description

Note access device
Technical field
The embodiment of the present invention relates to areas of information technology, particularly relates to a kind of note access device.
Background technology
Note (Short Message, SM) gateway is based on one of door layer between the various different business application system of cell phone and user, SM access way is provided to user, be responsible for the exchanges data of the sms center (SMSC) of application system and mobile operator, the transaction request of external messaging data protocol converted to the transaction form of application system internal unity; Or convert the transaction results of internal unity form to external messaging data protocol, then send to sms center outward, finally pass to cellphone subscriber.
At service provider (Service Provider, the design and implimentation mode of the note access device in the Short Message Service Gateway of SP) side belongs to a part for applied business systematic design idea, do not have unified specification and technical standard, each company requires based on the difference of each real system and the experience of designer and ability and have different designs to realize.
In the application aspect of note access, some specialties are had to do the company of Short Message Service Gateway product at present, need the system of short message service (as shopping online to signing an agreement, mailbox registration etc.) provide based on HTTP (Hypertext Transfer Protocol by the mode of download client interface routine, HTTP) or the Short Messaging Service of WEBSERVICE (web service) agreement, this belongs to third party's stand-alone service for user, but the specific design of note access device is generally all business secret with realization thus makes to learn in these Short Message Service Gateway.
Summary of the invention
The embodiment of the present invention provides a kind of note access device, to provide note access way to user.
Embodiments provide a kind of note access device, be configured in Short Message Service Gateway, this device comprises:
Access primary module, for starting following data transmission blocks, data reception module and timeout treatment module; And to sms center registration, and set up the first link when succeeding in registration, it is mutual that wherein said first link is used between described data transmission blocks and described sms center, mutual also between described sms center and described data reception module;
Data transmission blocks, packs to the data to be sent obtained according to setting agreement for calling following protocol process module, and the packet to be sent after packing is sent to described sms center by described first link; And the wait-for-response queue original transmission data in the packet of transmission write in described Short Message Service Gateway;
Data reception module, for receiving protocol responses data by described first link from described sms center; Call described protocol process module to unpack described protocol responses data according to setting agreement; Judge the respond style of the protocol responses data after unpacking, and according to described judged result, carry out respective handling; And the wait-for-response queue protocol responses data after unpacking write in described Short Message Service Gateway; Wherein, described protocol responses data are successfully receiving the packet to be sent of described data transmission blocks transmission and generation after responding by described sms center;
Protocol process module, for packing to the data to be sent that described data transmission blocks obtains according to setting agreement; Also for unpacking the described protocol responses data that described data reception module receives according to setting agreement;
Timeout treatment module, for wait-for-response queue described in timing scan, check whether that existence has successfully sent but time-out does not receive the original transmission data of response, if, then abandon this original transmission data, maybe by this original transmission data write short message sending queue, and trigger described data transmission blocks execution retransmit operation.
The note access device that the embodiment of the present invention provides, primary responsibility Short Message Service Gateway and sms center (SMSC) exchange note data by standard short message agreement, achieve the data interaction between application system and user.
Accompanying drawing explanation
In order to be illustrated more clearly in the present invention, introduce doing one to the accompanying drawing used required in the present invention simply below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The structural representation of a kind of note access device that Fig. 1 a provides for the embodiment of the present invention one;
A kind of workflow schematic diagram accessing primary module in the note access device that Fig. 1 b provides for the embodiment of the present invention one;
A kind of workflow schematic diagram of data transmission blocks in the note access device that Fig. 1 c provides for the embodiment of the present invention one;
A kind of a kind of workflow schematic diagram of data reception module in the note access device that Fig. 1 d provides for the embodiment of the present invention one;
Handling process schematic diagram when data reception module receives protocol responses data in the note access device that Fig. 1 e provides for the embodiment of the present invention one;
Handling process schematic diagram when data reception module receives service request data in the note access device that Fig. 1 f provides for the embodiment of the present invention one;
A kind of a kind of workflow schematic diagram of timeout treatment module in the note access device that Fig. 1 g provides for the embodiment of the present invention one;
The structural representation of a kind of note access device that Fig. 2 a provides for the embodiment of the present invention two;
A kind of workflow schematic diagram of monitoring service module in the note access device that Fig. 2 b provides for the embodiment of the present invention two;
A kind of workflow schematic diagram of request processing module in the note access device that Fig. 2 c provides for the embodiment of the present invention two.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, be described in further detail the technical scheme in the embodiment of the present invention below in conjunction with accompanying drawing, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Be understandable that; specific embodiment described herein is only for explaining the present invention; but not limitation of the invention; based on the embodiment in the present invention; those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content.
Embodiment one
Referring to Fig. 1 a, is the structural representation of a kind of note access device that the embodiment of the present invention one provides.This device is configured in Short Message Service Gateway, and this device comprises: access primary module, data transmission blocks, data reception module, protocol process module and timeout treatment module.
Wherein, described access primary module is used for log-on data sending module, data reception module and timeout treatment module; And to sms center registration, and set up the first link when succeeding in registration, it is mutual that wherein said first link is used between described data transmission blocks and described sms center, mutual also between described sms center and described data reception module.
Referring to Fig. 1 b, is the workflow schematic diagram accessing primary module a kind of in the note access device that the embodiment of the present invention one provides.Whether first this access primary module detects enabling signal amount exists; If detect to there is not enabling signal amount, then create enabling signal amount, described enabling signal amount is used for log-on data sending module, data reception module and timeout treatment module; Read respective profiles, the parameter of initialization Short Message Service Gateway; And configuration operation environment, the queue of initialization wait-for-response, short message sending queue and note receiving queue, also i.e. initialization wait-for-response queue, short message sending queue and note receiving queue; To sms center registration, and according to described enabling signal amount log-on data sending module, data reception module and timeout treatment module, and set up the first link when succeeding in registration; Described access primary module also can preferably monitor data sending module, data reception module and timeout treatment module ruuning situation separately, and further to occurring that abnormal module carries out misarrangement process; Whether described access primary module also can enter the mode of secession by preferred detection Short Message Service Gateway, if so, also can be responsible for cleaning work when exiting, and if not, then continues the ruuning situation of the above-mentioned each module of monitoring.
Wherein, data transmission blocks is used for invocation protocol processing module and packs to the data to be sent obtained according to setting agreement, and the packet to be sent after packing is sent to described sms center by described first link; And the wait-for-response queue original transmission data in the packet of transmission write in described Short Message Service Gateway.
In other words, described data transmission blocks performs following operation: first, obtains data to be sent; Secondly, invocation protocol processing module is packed to data to be sent according to the agreement of setting, obtains packet to be sent; Then, by described first link by the Packet Generation to be sent after packing to sms center, finally, by the data to be sent write Short Message Service Gateway that obtains, specifically can write wait-for-response queue.
Further, described data transmission blocks specifically may be used for: call described protocol process module and pack to the data to be sent write by the application system be connected with described Short Message Service Gateway obtained from the short message sending queue in described Short Message Service Gateway according to setting agreement.
In other words, the operation of the acquisition data to be sent that described data transmission blocks performs can be specially: from the short message sending queue described Short Message Service Gateway, obtain data to be sent, wherein these data to be sent are written in short message sending queue by the application system be connected with described Short Message Service Gateway.
Further, described data transmission blocks also can be preferred for: when not getting the data to be sent write by the application system be connected with described Short Message Service Gateway from the short message sending queue in described Short Message Service Gateway, link test bag is sent by sms center described in described first chain road direction, the effectively lasting of the first link can be kept to connect by sending link test bag, unlikely disconnection.
Referring to Fig. 1 c, is the workflow schematic diagram of a kind of data transmission blocks in the note access device that the embodiment of the present invention one provides.First this data transmission blocks obtains socket (socket) parameter; Time-out (a kind of socket communication protocol pattern is set) read data from short message sending queue, if there are data to be sent, after then data are packed by invocation protocol processing module, be sent to sms center, be sent to sms center specifically by the first link; Send the initial data write wait-for-response queue successfully then will sent, and return the operation that time-out performs read data from short message sending queue; If short message sending queue is without data to be sent, then send link test bag to described sms center, if send successfully, then return the operation that time-out performs read data from short message sending queue.
Further, described data transmission blocks also can be preferred for: after get the data current to be sent write by the application system be connected with described Short Message Service Gateway from the short message sending queue in described Short Message Service Gateway, check in described wait-for-response queue do not receive response but the quantity of the data described to be sent sent, and send with preset flow and control window and compare, determine whether to pack according to comparative result and send the data current to be sent of acquisition.
The manner is applicable to short message protocol flow being had to requirement, by by do not receive response in wait-for-response queue but the quantity of the data to be sent sent and preset flow send and control window and compare, determine whether to pack according to comparative result and send the data current to be sent obtained, can flow control be realized.
Referring to Fig. 1 d, is a kind of workflow schematic diagram of a kind of data reception module in the note access device that the embodiment of the present invention one provides.First this data reception module reads socket parameter; By described first link from described sms center barrage reception data, when receiving successfully, calling described protocol process module and according to setting agreement, the data received being unpacked; Judge the type of the data after unpacking, and according to described judged result, carry out corresponding classification process.
Wherein, the type of the data of reception comprises protocol responses data and service request data.
Handling process when introducing handling process when data reception module receives protocol responses data below respectively and receive service request data.
Data reception module is used for receiving protocol responses data by described first link from described sms center; Call described protocol process module to unpack described protocol responses data according to setting agreement; Judge the respond style of the protocol responses data after unpacking, and according to described judged result, carry out respective handling; And the wait-for-response queue protocol responses data after unpacking write in described Short Message Service Gateway; Wherein, described protocol responses data are successfully receiving the packet to be sent of described data transmission blocks transmission and generation after responding by described sms center.
Wherein, the respond style of described protocol responses data comprises: correct response and errored response.
Described data reception module, according to described judged result, carries out respective handling, specifically can comprise:
When the respond style determining the protocol responses data after unpacking is for correctly responding, from described wait-for-response queue, read corresponding original transmission data, and the traffic statistics module called in described Short Message Service Gateway carries out transmitted traffic statistics;
When the respond style determining the protocol responses data after unpacking is errored response, then abandoning with type is the described protocol responses data of errored response, or to obtain with type be original transmission data corresponding to the described protocol responses data of errored response, and using the original transmission data of described correspondence as data to be sent, re-write described short message sending queue, call described protocol process module to make described data transmission blocks to pack to the data to be sent write by described data reception module obtained from described short message sending queue according to setting agreement, and the packet to be sent that the data described to be sent write by described data reception module are formed after packing is resend to described sms center by described first link, and the data to be sent resend are re-write described wait-for-response queue.
Referring to Fig. 1 e, is handling process schematic diagram when data reception module in the note access device that the embodiment of the present invention one provides receives protocol responses data.This data reception module, when receiving protocol responses data by described first link from described sms center, calls described protocol process module and unpacks described protocol responses data according to setting agreement; Corresponding initial data is read from wait-for-response queue, judge that whether the protocol responses data after unpacking are the correct responses to described initial data, if so, then traffic statistics process is carried out to described original transmission data, if not, then perform above-mentioned abandoning operate or re-write operation.
Referring to Fig. 1 f, is handling process schematic diagram when data reception module in the note access device that the embodiment of the present invention one provides receives service request data.
Described data reception module is also unpacked the service request data received from described sms center by described first link according to described setting agreement for calling described protocol process module, and the data after described unpacking are write the note receiving queue in described Short Message Service Gateway;
Described protocol process module is also for unpacking the service request data that described data reception module receives according to described setting agreement.
Described data reception module can also be used for call described protocol process module according to described setting agreement to by described first link from after the service request data that described sms center receives unpacks, the traffic statistics module called in described Short Message Service Gateway carries out reception traffic statistics.
Protocol process module is used for packing to the data to be sent that described data transmission blocks obtains according to setting agreement; Also for unpacking the described protocol responses data that described data reception module receives according to setting agreement.
Timeout treatment module is used for wait-for-response queue described in timing scan, check whether that existence has successfully sent but time-out does not receive the original transmission data of response, if, then abandon this original transmission data, maybe by this original transmission data write short message sending queue, and trigger described data transmission blocks execution retransmit operation.
It should be noted that, preferably, execution by this original transmission data write short message sending queue, and triggers described data transmission blocks execution retransmit operation, to improve the success rate data to be sent obtained from application system being sent to sms center.
Referring to Fig. 1 g, is a kind of in the note access device that the embodiment of the present invention one provides a kind of workflow schematic diagram of timeout treatment module.This timeout treatment module the review time not then, be in sleep (sleep) state, when arriving the review time, start wait-for-response queue described in timing scan, specifically comprise: read the message number in wait-for-response queue, whether detect-message data reach inspection threshold value, if, then read the message in wait-for-response queue successively, do not read in message, but message time-out detected, carry out detecting that the message of time-out carries out timeout treatment, timeout treatment represents the process of protocol data response time-out not being received to response, can take to abandon, retransmit, also likely think link fails, close link etc., then the operation of reading the message in wait-for-response queue is successively returned, if message is not overtime, then write wait-for-response queue, then return the operation of reading the message in wait-for-response queue successively, when reading the message in wait-for-response queue successively, if message has read, then again enter sleep, when message data does not reach inspection threshold value, again enter sleep, when not reaching the review time, also again enter sleep.
The technical scheme of the present embodiment, provides the note access device in Short Message Service Gateway, and primary responsibility Short Message Service Gateway and sms center (SMSC) exchange note data by standard short message agreement, achieve the data interaction between application system and user.
It should be noted that, the setting agreement that note access device is suitable for generally includes: note point-to-point protocol (SMPP) agreement, CHINAUNICOM's SMS gateway system interface protocol (SGIP) and China Mobile Peer to Peer Protocol (CMPP).Wherein, SMPP protocol requirement SP side can only be client, upload note (such as, the note of application system is pushed to the cellphone subscriber of sms center side, at this moment the response data of sms center also issues client by same link) and transmitting short message (such as user by mobile phone and sms center, then is issued to application system through Short Message Service Gateway Transaction Information) register to SMSC with different orders respectively.SGIP protocol requirement both sides are client and service end each other, SP upload note need with ad hoc mode to SMSC registration after, just can upload note.SMSC wants transmitting short message, first must initiate connection request to SP service end, could transmitting short message after being confirmed.CMPP agreement two kinds of modes are all supported.
With reference to above-mentioned three kinds of short message protocols, note access device can be divided into following two kinds of modes: only do client, or not only do client but also do service end.
The note access device that the present embodiment provides, supports point-to-point (SMPP) agreement of note or China Mobile Peer to Peer Protocol (CMPP), is also that the note access device in the present embodiment works in client mode.
Embodiment two
Referring to Fig. 2 a, is the structural representation of a kind of note access device that the embodiment of the present invention two provides.This note access device can be configured in Short Message Service Gateway, and this device comprises: access primary module, data transmission blocks, data reception module, protocol process module, timeout treatment module, monitoring service module and at least one request processing module.The note access device that the present embodiment provides is applicable to CHINAUNICOM's SMS gateway system interface protocol (SGIP) or China Mobile point-to-point (CMPP) agreement.
Wherein, described data transmission blocks, data reception module and timeout treatment module composition client modules, all need invocation protocol processing module in the process of the data that data transmission blocks sends in the process of data to sms center and data reception module reception sms center issues; Described monitoring service module and at least one request processing module form server module.
Wherein, the partial function of access primary module is consistent with the function accessing primary module in above-described embodiment, is specially: for log-on data sending module, data reception module and timeout treatment module; And to sms center registration, and set up the first link when succeeding in registration, it is mutual that wherein said first link is used between described data transmission blocks and described sms center, mutual also between described sms center and described data reception module.In the present embodiment, the what's new of described access primary module is specially: also for starting described monitoring service module, and the second link is set up when succeeding in registration, the request that described second link is used between described sms center and described monitoring service module is mutual, and for the data interaction between described sms center and at least one request processing module described.
In other words, described first link establishment is between described sms center and described client modules, and described second link establishment is between described sms center and described server module.
Wherein, the function of data transmission blocks is consistent with the function of data transmission blocks in above-described embodiment, be specially, according to setting agreement, the data to be sent obtained are packed for invocation protocol processing module, and the packet to be sent after packing is sent to described sms center by described first link; And the wait-for-response queue original transmission data in the packet of transmission write in described Short Message Service Gateway, repeat no more.
Further, described data transmission blocks specifically may be used for: call described protocol process module and pack (see the respective description in above-described embodiment, can repeating no more) according to setting agreement to the data to be sent write by the application system be connected with described Short Message Service Gateway obtained from the short message sending queue in described Short Message Service Gateway.
Further, described data transmission blocks also can be preferred for: when not getting the data to be sent write by the application system be connected with described Short Message Service Gateway from the short message sending queue in described Short Message Service Gateway, link test bag (see the respective description in above-described embodiment, can repeating no more) is sent by sms center described in described first chain road direction.
Further, described data transmission blocks also can be preferred for: after get the data current to be sent write by the application system be connected with described Short Message Service Gateway from the short message sending queue in described Short Message Service Gateway, check in described wait-for-response queue do not receive response but the quantity of the data described to be sent sent, and send with preset flow and control window and compare, determine whether to pack according to comparative result and send the data current to be sent (see the respective description in above-described embodiment, can repeating no more) obtained.
Wherein, the function of described data reception module is only the partial function of data reception module in above-described embodiment unanimously, and in the present embodiment, described data reception module is only for receiving protocol responses data by described first link from described sms center; Call described protocol process module to unpack described protocol responses data according to setting agreement; Judge the respond style of the protocol responses data after unpacking, and according to described judged result, carry out respective handling; And the wait-for-response queue protocol responses data after unpacking write in described Short Message Service Gateway; Wherein, described protocol responses data are successfully receiving the packet to be sent of described data transmission blocks transmission and generation after responding by described sms center; And in the above-described embodiments, data reception module is also for passing through the first link and sms center interactive service request msg, and in the present embodiment, server module, can see the following introduction to monitoring service module and request processing module by the second link and sms center interactive service request msg.Also namely, client modules uploads note by the first chain road direction sms center, and sms center is by the second chain road direction server module transmitting short message, and two links are non-interference, with sms center independent communication.
In other words, in the above-described embodiments, under note access device only works in client mode, what data transmission blocks process was all uploads note, the transmitting short message that data reception module process is all; In the present embodiment, note access device works in the pattern of client and service end combination, and client modules is responsible for uploading note, and server module is responsible for transmitting short message.
Further, the respond style of described protocol responses data comprises: correct response and errored response;
Described data reception module specifically may be used for:
When the respond style determining the protocol responses data after unpacking is for correctly responding, from described wait-for-response queue, read corresponding original transmission data, and the traffic statistics module called in described Short Message Service Gateway carries out transmitted traffic statistics;
When the respond style determining the protocol responses data after unpacking is errored response, then abandoning with type is the described protocol responses data of errored response, or to obtain with type be original transmission data corresponding to the described protocol responses data of errored response, and using the original transmission data of described correspondence as data to be sent, re-write described short message sending queue, call described protocol process module to make described data transmission blocks to pack to the data to be sent write by described data reception module obtained from described short message sending queue according to setting agreement, and the packet to be sent that the data described to be sent write by described data reception module are formed after packing is resend to described sms center by described first link, and the data to be sent resend are re-write described wait-for-response queue.
In the present embodiment, described data reception module judges the respond style of the protocol responses data after unpacking, and according to described judged result, carries out respective handling, consistent with the function of data reception module in above-described embodiment, repeats no more.
Wherein, protocol process module is used for packing to the data to be sent that described data transmission blocks obtains according to setting agreement; Also for unpacking the described protocol responses data that described data reception module receives according to setting agreement.
Wherein, the function of described timeout treatment module is consistent with the function of timeout treatment module in above-described embodiment, be specially, for wait-for-response queue described in timing scan, check whether that existence has successfully sent but time-out does not receive the original transmission data of response, if, then abandon this original transmission data, maybe by this original transmission data write short message sending queue, and trigger described data transmission blocks execution retransmit operation, repeat no more.
Wherein, described monitoring service module is used for, when listening to described sms center and sending service request by described second link, starting the request processing module identical with service request quantity.
In other words, monitoring service module only just has under not only doing client but also do service end pattern, and its monitors the service request of sms center, just starts a request processing module to be responsible for and sms center carries out communication once listen to a request.According to the regulation of short message protocol, request module may only have one or have multiple.
Referring to Fig. 2 b, is a kind of in the note access device that the embodiment of the present invention two provides workflow schematic diagram of monitoring service module.This monitoring service module blocks the service request monitored described sms center and sent by described second link, when listening to a service request, start a request processing module to process, and continue to perform the operation of blocking and monitoring next service request, when not hearing service request, continue to perform the operation of blocking and monitoring next service request.
Referring to Fig. 2 c, is the workflow schematic diagram of a kind of request processing module in the note access device that the embodiment of the present invention two provides.Described request processing module is used for upon actuation, carries out certification to the identity of described sms center, and when certification is by (also namely identity is legal), the service request data issued by sms center described in described second link received over time; Call described protocol process module to unpack the service request data received according to described setting agreement, and the data after described unpacking are write the note receiving queue in described Short Message Service Gateway; Afterwards, the operation of the service request data that sms center issues described in described received over time can be returned; If time-out does not receive service request data, then can initiatively close the second link.
Described protocol process module is also for unpacking the service request data that described request processing module receives according to described setting agreement.
Further, described request processing module can also be used for when the service request data issued to described sms center by described second link received over time, generate respective response, and the response of described generation is returned described sms center by described second link.
Further, described request processing module be also used in call described protocol process module according to described setting agreement to receive service request data unpack after, the traffic statistics module called in described Short Message Service Gateway carries out reception traffic statistics.
Further, when described request processing module is also used in and does not receive by described second link time-out the service request data that described sms center issues, the operation identity of described sms center being carried out to certification is returned.
The technical scheme of the present embodiment, provides the note access device in Short Message Service Gateway, and primary responsibility Short Message Service Gateway and sms center (SMSC) exchange note data by standard short message agreement, achieve the data interaction between application system and user.
Last it is noted that above each embodiment is only for illustration of technical scheme of the present invention, but not be limited; In embodiment preferred embodiment, be not limited, to those skilled in the art, the present invention can have various change and change.All do within spirit of the present invention and principle any amendment, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a note access device, is configured in Short Message Service Gateway, it is characterized in that, this device comprises:
Access primary module, for starting following data transmission blocks, data reception module and timeout treatment module; And to sms center registration, and set up the first link when succeeding in registration, it is mutual that wherein said first link is used between described data transmission blocks and described sms center, mutual also between described sms center and described data reception module;
Data transmission blocks, packs to the data to be sent obtained according to setting agreement for calling following protocol process module, and the packet to be sent after packing is sent to described sms center by described first link; And the wait-for-response queue original transmission data in the packet of transmission write in described Short Message Service Gateway;
Data reception module, for receiving protocol responses data by described first link from described sms center; Call described protocol process module to unpack described protocol responses data according to setting agreement; Judge the respond style of the protocol responses data after unpacking, and according to described judged result, carry out respective handling; And the wait-for-response queue protocol responses data after unpacking write in described Short Message Service Gateway; Wherein, described protocol responses data are successfully receiving the packet to be sent of described data transmission blocks transmission and generation after responding by described sms center;
Protocol process module, for packing to the data to be sent that described data transmission blocks obtains according to setting agreement; Also for unpacking the described protocol responses data that described data reception module receives according to setting agreement;
Timeout treatment module, for wait-for-response queue described in timing scan, check whether that existence has successfully sent but time-out does not receive the original transmission data of response, if, then abandon this original transmission data, maybe by this original transmission data write short message sending queue, and trigger described data transmission blocks execution retransmit operation.
2. device according to claim 1, it is characterized in that, described data transmission blocks specifically for: call described protocol process module according to setting agreement the data to be sent write by the application system be connected with described Short Message Service Gateway obtained from the short message sending queue in described Short Message Service Gateway are packed.
3. device according to claim 2, it is characterized in that, described data transmission blocks also for: when not getting the data to be sent write by the application system be connected with described Short Message Service Gateway from the short message sending queue in described Short Message Service Gateway, send link test bag by sms center described in described first chain road direction.
4. device according to claim 2, it is characterized in that, described data transmission blocks also for: after get the data current to be sent write by the application system be connected with described Short Message Service Gateway from the short message sending queue in described Short Message Service Gateway, check in described wait-for-response queue do not receive response but the quantity of the data described to be sent sent, and send with preset flow and control window and compare, determine whether to pack according to comparative result and send the data current to be sent of acquisition.
5. device according to claim 1, is characterized in that, the respond style of described protocol responses data comprises: correct response and errored response;
Described data reception module specifically for:
When the respond style determining the protocol responses data after unpacking is for correctly responding, from described wait-for-response queue, read corresponding original transmission data, and the traffic statistics module called in described Short Message Service Gateway carries out transmitted traffic statistics;
When the respond style determining the protocol responses data after unpacking is errored response, then abandoning with type is the described protocol responses data of errored response, or to obtain with type be original transmission data corresponding to the described protocol responses data of errored response, and using the original transmission data of described correspondence as data to be sent, re-write described short message sending queue, call described protocol process module to make described data transmission blocks to pack to the data to be sent write by described data reception module obtained from described short message sending queue according to setting agreement, and the packet to be sent that the data described to be sent write by described data reception module are formed after packing is resend to described sms center by described first link, and the data to be sent resend are re-write described wait-for-response queue.
6. according to the arbitrary described device of claim 1-5, it is characterized in that, described data reception module is also unpacked the service request data received from described sms center by described first link according to described setting agreement for calling described protocol process module, and the data after described unpacking are write the note receiving queue in described Short Message Service Gateway;
Described protocol process module is also for unpacking the service request data that described data reception module receives according to described setting agreement.
7. according to described device according to claim 6, it is characterized in that, described data reception module also for call described protocol process module according to described setting agreement to by described first link from after the service request data that described sms center receives unpacks, the traffic statistics module called in described Short Message Service Gateway carries out reception traffic statistics.
8., according to the arbitrary described device of claim 1-5, it is characterized in that, described device also comprises: monitoring service module and at least one request processing module;
Described access primary module, also for starting described monitoring service module, and the second link is set up when succeeding in registration, the request that described second link is used between described sms center and described monitoring service module is mutual, and for the data interaction between described sms center and at least one request processing module described;
Described monitoring service module, for when listening to described sms center and sending service request by described second link, starts the request processing module identical with service request quantity;
Described request processing module, for upon actuation, carries out certification to the identity of described sms center, and when certification is passed through, the service request data issued by sms center described in described second link received over time; Call described protocol process module to unpack the service request data received according to described setting agreement, and the data after described unpacking are write the note receiving queue in described Short Message Service Gateway;
Described protocol process module is also for unpacking the service request data that described request processing module receives according to described setting agreement.
9. device according to claim 8, it is characterized in that, described request processing module is also for when the service request data issued to described sms center by described second link received over time, generate respective response, and the response of described generation is returned described sms center by described second link;
Described request processing module also for call described protocol process module according to described setting agreement to receive service request data unpack after, the traffic statistics module called in described Short Message Service Gateway carries out reception traffic statistics;
Described request processing module also for when not received the service request data that described sms center issues by described second link time-out, returns the operation identity of described sms center being carried out to certification.
CN201510057194.3A 2015-02-04 2015-02-04 Message access device Pending CN104754535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510057194.3A CN104754535A (en) 2015-02-04 2015-02-04 Message access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510057194.3A CN104754535A (en) 2015-02-04 2015-02-04 Message access device

Publications (1)

Publication Number Publication Date
CN104754535A true CN104754535A (en) 2015-07-01

Family

ID=53593514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510057194.3A Pending CN104754535A (en) 2015-02-04 2015-02-04 Message access device

Country Status (1)

Country Link
CN (1) CN104754535A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361709A (en) * 2018-12-14 2019-02-19 武汉烽火信息集成技术有限公司 The construction method and platform of the Short Message Service Gateway platform of automatic adaptation CMPP agreement
CN112218253A (en) * 2020-10-10 2021-01-12 上海博泰悦臻网络技术服务有限公司 Method, system, medium and server for receiving mobile short message data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150584A (en) * 2007-10-31 2008-03-26 中兴通讯股份有限公司 A multi-protocol conversion device and method for SMS gateway
CN101437002A (en) * 2007-11-16 2009-05-20 中国移动通信集团公司 Mobile proxy server system
US7702310B1 (en) * 2005-02-18 2010-04-20 Virgin Mobile Usa, L.P. Load balancing management of communications sessions in a communications management network
CN103428653A (en) * 2012-05-14 2013-12-04 中国移动通信集团安徽有限公司 Heterogeneous-network short message sending and receiving method, communication system and application access gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702310B1 (en) * 2005-02-18 2010-04-20 Virgin Mobile Usa, L.P. Load balancing management of communications sessions in a communications management network
CN101150584A (en) * 2007-10-31 2008-03-26 中兴通讯股份有限公司 A multi-protocol conversion device and method for SMS gateway
CN101437002A (en) * 2007-11-16 2009-05-20 中国移动通信集团公司 Mobile proxy server system
CN103428653A (en) * 2012-05-14 2013-12-04 中国移动通信集团安徽有限公司 Heterogeneous-network short message sending and receiving method, communication system and application access gateway

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361709A (en) * 2018-12-14 2019-02-19 武汉烽火信息集成技术有限公司 The construction method and platform of the Short Message Service Gateway platform of automatic adaptation CMPP agreement
CN109361709B (en) * 2018-12-14 2021-04-27 武汉烽火信息集成技术有限公司 Method and platform for constructing short message gateway platform automatically adapting to CMPP (China Mobile protocol over Polypropylene) protocol
CN112218253A (en) * 2020-10-10 2021-01-12 上海博泰悦臻网络技术服务有限公司 Method, system, medium and server for receiving mobile short message data
CN112218253B (en) * 2020-10-10 2022-06-21 上海博泰悦臻网络技术服务有限公司 Method, system, medium and server for receiving mobile short message data

Similar Documents

Publication Publication Date Title
US8817624B2 (en) Higher layer compression with lower layer signaling
US20130111572A1 (en) Ip push platform and connection protocol in a push notification framework
US20180091581A1 (en) Method of switching download mode, control method thereof and control system thereof
CN103220292A (en) Cross-safe-area data transmission method and system
Gao et al. Toward emulation-based performance assessment of constrained application protocol in dynamic networks
CN111818040A (en) Method for realizing communication by Internet of things transmission standard protocol
CN101309169A (en) Network management method and network management system, network apparatus
CN101330353B (en) Remote video wireless transmission system
CN104754535A (en) Message access device
CN104618878A (en) Short message gateway
EP3038312A1 (en) Data transmission method, user equipment and proxy equipment
CN110113771A (en) Data processing method, device, gateway and storage medium
CN114205375A (en) Electric power data acquisition system based on edge internet of things agent equipment
CN101141260A (en) Method and device for performing passway detection to remote subscriber dialing authentication system server
CN101330664B (en) Method, system and apparatus for realizing multimedia business
CN107846301B (en) End-to-end service test system and method
CN104640093A (en) Service processing device
CN103036984B (en) One-way flow detection method and network equipment
CN109067861A (en) Communication means, device, equipment and medium based on Internet of Things
WO2014015799A1 (en) Data transmission method and device
CN106161376B (en) End-to-end encrypted communication negotiation method and device
CN102857504B (en) Network optimized approach and device
CN114765805A (en) Communication method, network equipment, base station and computer readable storage medium
CN101645809B (en) Throughput testing method and system for multi-terminal network
Chen Design and Implementation of Wireless Sensor Cellular Network Based on Android Platform.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150701

RJ01 Rejection of invention patent application after publication