A communication system and method capable of supporting multiple short message gateways
By obtaining and verifying SMS gateway information, building and managing interface protocols, the problem of API incompatibility of SMS communication systems on different operators is solved, and the compatibility of multiple SMS gateways and system performance improvement are achieved.
Patent Information
- Application Number
- CN202211591477.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-12-12
AI Technical Summary
In the existing SMS communication system, when the SP is connected to different operators at the same time, API incompatibility leads to low system performance and efficiency.
Obtain SMS gateway related information through the communication information module, transmit it to the communication configuration module, build a data gateway channel, build an interface protocol through the gateway channel protocol creation unit, perform interface protocol verification and testing, and use the gateway account management unit to create available account service packages , achieving compatibility with multiple SMS gateways.
It realizes the compatibility of multiple SMS gateways, improves the practicality of the system, meets the needs of users for direct connection to the SMS center and the merger or independent operation of multiple gateways, and optimizes the data asynchronous communication and multi-thread scheduling operation mechanism of the CMPP protocol.
Smart Images

Figure CN115955735B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network communication, and in particular to a communication system and method capable of supporting multiple short message gateways. Background Art
[0002] The SMS gateway is designed to solve the problem of SMS intercommunication between various networks and operators and access to SPs. Through the interface software of the system, the SMS platform can be seamlessly and efficiently connected with various systems and software, and the dynamic information generated by the application unit's system at any time can be converted into mobile phone text messages. Through the Dream Network platform, the SMS centers of China Mobile and China Unicom are connected to send and receive real-time SMS messages with special port numbers, and a fast two-way (or one-way) SMS channel is established for various systems, so that mobile phone users can communicate with SPs in two-way manner using SMS and receive information services provided by SPs. However, the following problems still exist in the use of the SMS communication system: in the prior art, the API provided by existing operators is only for the purpose of realizing simple connection and data transmission functions, and cannot be closely integrated with the SP's own system. When the SP is connected to different operators at the same time, the APIs of the two operators are incompatible, which makes the system performance and efficiency defects exist in actual use. Summary of the invention
[0003] The object of the present invention is to provide a communication system and method that can support multiple SMS gateways, obtain SMS gateway related information through a communication information module and transmit it to a communication configuration module, use a communication configuration unit to build a data gateway channel, use a gateway channel protocol creation unit to build a corresponding interface protocol for each third-party SMS gateway channel, use an interface protocol identification unit to verify and test the interface protocol in the gateway channel, create an available account service package through a gateway account management unit, store the gateway account and interface protocol that have passed the verification and test in the corresponding available account service package, and identify and classify the obtained SMS through the gateway channel protocol creation unit, so as to allocate it to the applicable interface protocol, so as to solve the problems raised in the above-mentioned background technology.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A communication system and method capable of supporting multiple SMS gateways, the communication system comprising: a communication information module, a communication configuration module, a gateway channel protocol creation unit, an interface protocol identification unit, a gateway account management unit and a cloud;
[0006] The communication information module is used to obtain relevant information of the SMS gateway and transmit the SMS gateway to the communication configuration module;
[0007] The communication configuration unit is used to configure the relevant information of the SMS gateway and transmit it to the gateway channel protocol creation unit;
[0008] The gateway channel protocol creation unit creates a corresponding interface protocol based on the channel type of the SMS gateway;
[0009] The interface protocol identification unit is used to verify and test the interface protocol in the gateway channel;
[0010] The gateway account management unit is used to manage the gateway accounts and interface protocols that have passed verification and testing;
[0011] The cloud is used to track and record all the above operations and processes, save the recorded data into text information, and transmit it to the display terminal.
[0012] Furthermore, the communication information module also includes: a terminal connection module;
[0013] The terminal connection module is used to establish a communication connection between the communication information module and an external SMS terminal.
[0014] Further, the communication configuration unit includes: a routing module, a backup module and an object access protocol module;
[0015] The routing module is used to build a data gateway channel and establish a connection relationship between it and the channel information, and receive text messages from the communication information module based on the connection relationship;
[0016] The backup module is used to create an encrypted configuration file and save the received SMS gateway to the encrypted configuration file for backup;
[0017] The object access protocol module is used to find the object access protocol address of the destination SMS gateway and send the SMS of the communication information module to the destination SMS gateway.
[0018] Further, the gateway channel protocol creation unit includes: a classification module and a creation module;
[0019] The classification module is used to identify and classify the channel types of the received SMS gateway, so as to obtain different channel types of the SMS gateway;
[0020] A creation module creates corresponding interface protocols based on different channel types of the SMS gateway, and the number of created interface protocols is consistent with the number of SMS gateway channel types, so as to build a corresponding interface protocol for each third-party SMS gateway channel.
[0021] Further, the interface protocol identification unit includes: a service request module;
[0022] The service request module is used to verify and test the interface protocol in the gateway channel. If the service request module under the gateway channel passes the test, the service request module is marked as qualified; if the service request modules of all functions under the gateway channel pass the test, the gateway channel is marked as qualified.
[0023] Furthermore, the interface protocol identification unit also includes:
[0024] A quantity extraction module is used to extract the request quantity of the service request modules that have not passed the test if not all the service request modules of the functions under the gateway channel have passed the test;
[0025] A function calling module, used to call the functions corresponding to the service request modules that failed the test, and sort and serialize the functions corresponding to each failed service request module;
[0026] A parameter acquisition module, used to extract the function attribute parameters of the function corresponding to the failed service request module in sequence according to the sequence number identifier; wherein the function attribute parameters include the minimum number of service requests occurring per unit time and the maximum number of service requests occurring per unit time;
[0027] The first time interval setting module is used to set the first service request module re-inspection time interval according to the function attribute parameter; wherein the first service request module re-inspection time interval is obtained by the following formula:
[0028]
[0029] in, T 1 indicates the first service request module re-inspection time interval; M Indicates the number of functions corresponding to the service request module that failed the test; q maxi It represents the maximum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; q mini It represents the minimum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; T 0 means the benchmark interval, T The value range of 0 is 3min-5min;
[0030] A first re-inspection module, configured to obtain a first re-inspection result when the service request modules corresponding to all functions of the gateway channel perform a first re-inspection at a time corresponding to the first service request module re-inspection time interval;
[0031] A retest qualified marking module is used to mark the gateway channel as qualified if the first retest result shows that the service request modules of all functions under the current gateway channel have passed the test;
[0032] A retest failure marking module is used to mark the gateway channel as unqualified if the first retest result shows that not all service request modules of the functions under the current gateway channel have passed the test;
[0033] The unqualified module quantity extraction module is used to extract the number of service request modules that have not passed the test in the unqualified gateway channel, and use the number of the service request modules that have not passed the test of the re-inspection time interval setting model set to set the next service request module re-inspection time interval; wherein the re-inspection time interval setting model includes:
[0034]
[0035] in, T Indicates the next service request module re-test time interval; N j-1 N represents the number of service request modules that failed the test during the j-1th retest; j represents the number of the service request modules that failed the test during the jth retest; Q maxi represents the maximum number of service requests of the i-th qualified gateway channel within the preset unit time; Q mini represents the minimum number of service requests that occur within a preset unit time for the i-th qualified gateway channel; Q pi It represents the average number of service requests of the i-th qualified gateway channel within the preset unit time; n Indicates the number of qualified gateway channels;
[0036] The repeated re-inspection module is used to re-inspect all service request modules in the unqualified gateway channels at the time corresponding to the next service request module re-inspection time interval, and set the time interval for each re-inspection in the subsequent re-inspection process according to the re-inspection result and the re-inspection time interval setting model until all gateway channels pass the test and are marked as qualified.
[0037] Further, the gateway account management unit includes: an account creation module;
[0038] The account creation module is used to create an available account service package, store the gateway account and interface protocol that have passed verification and testing in the corresponding available account service package, mark it as a gateway resource, and add it to the gateway resource library of the SMS platform.
[0039] Furthermore, the method comprises the following steps:
[0040] Step 1: Establish a communication connection with the external SMS gateway through the terminal connection module to obtain relevant information of the SMS gateway;
[0041] Step 2: Create a data gateway channel through the routing module, receive SMS gateway based on this channel, and save the received SMS gateway to the encrypted configuration file created in advance, so as to back up the SMS gateway to prevent data loss;
[0042] Step 4: Identify the channel type of the SMS gateway, create corresponding interface protocols based on different channel types, use the service request module to verify and test the interface protocol, and mark the gateway channel that passes the test as qualified;
[0043] Step 5: Create an available account service package through the account creation module, store the gateway account and interface protocol that have passed verification and testing in the available account service package, and add it to the gateway resource library of the SMS platform;
[0044] Step 6: Use the object access protocol module to find the object access protocol address of the destination SMS gateway, and send it to the destination SMS gateway, thereby realizing the function of supporting communication with multiple SMS gateways;
[0045] Step 7: All the above operations are tracked and recorded through the cloud, and the recorded data is saved as text information, and sent to the display terminal so that the operator can check the process operation status at any time.
[0046] Furthermore, the relevant information of the SMS gateway in step one includes: operator name, channel type, access requirements, general API documentation, general SDK and other related document information. When saving in step two, the operator type of the SMS gateway, gateway account name, gateway password and identification code of the account holder need to be classified and set.
[0047] Further, the service request module is used to verify and test the interface protocol, and the gateway channel that passes the test is marked as qualified, including;
[0048] Step 401: Verify and test the interface protocol in the gateway channel. If the service request module under the gateway channel passes the test, the service request module is marked as qualified. If the service request modules of all functions under the gateway channel pass the test, the gateway channel is marked as qualified.
[0049] Step 402: retrieve the functions corresponding to the service request modules that failed the test, and sort and number the functions corresponding to each service request module that failed the test;
[0050] Step 403: extracting the function attribute parameters of the function corresponding to the failed service request module in sequence according to the sequence number identifier; wherein the function attribute parameters include the minimum number of service request occurrences per unit time and the maximum number of service request occurrences per unit time;
[0051] Step 404: Set the first service request module re-inspection time interval according to the function attribute parameters; wherein the first service request module re-inspection time interval is obtained by the following formula:
[0052]
[0053] in, T 1 indicates the first service request module re-inspection time interval; M Indicates the number of functions corresponding to the service request module that failed the test; q maxi It represents the maximum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; q mini It represents the minimum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; T 0 means the benchmark interval, T The value range of 0 is 3min-5min;
[0054] Step 405: when the service request modules corresponding to all functions of the gateway channel perform the first re-inspection at the time corresponding to the first service request module re-inspection time interval, obtain the first re-inspection result;
[0055] Step 406: If the first re-test result indicates that all service request modules of the functions under the current gateway channel have passed the test, the gateway channel is marked as qualified;
[0056] Step 407: If the first re-test result indicates that not all service request modules of the functions under the current gateway channel have passed the test, the gateway channel is marked as unqualified;
[0057] Step 408: extract the number of service request modules that failed the test in the unqualified gateway channel, and use the number of the service request modules that failed the test set by the re-test time interval setting model to set the next service request module re-test time interval; wherein the re-test time interval setting model includes:
[0058]
[0059] in, TIndicates the next service request module re-test time interval; N j-1 N represents the number of service request modules that failed the test during the j-1th retest; j represents the number of the service request modules that failed the test during the jth retest; Q maxi represents the maximum number of service requests of the i-th qualified gateway channel within the preset unit time; Q mini represents the minimum number of service requests that occur within a preset unit time for the i-th qualified gateway channel; Q pi It represents the average number of service requests of the i-th qualified gateway channel within the preset unit time; n Indicates the number of qualified gateway channels;
[0060] Step 409: re-inspect all service request modules in the unqualified gateway channels at the time corresponding to the next service request module re-inspection time interval, and set the time interval for each subsequent re-inspection process according to the re-inspection result and the re-inspection time interval setting model until all gateway channels pass the test and are marked as qualified.
[0061] Compared with the prior art, the beneficial effects of the present invention are as follows: obtaining the SMS gateway related information through the communication information module and transmitting it to the communication configuration module; using the communication configuration unit to build a data gateway channel, and establishing a connection relationship with the channel information, encrypting and storing the received related information, and transmitting it to the gateway channel protocol creation unit; building a corresponding interface protocol for each third-party SMS gateway channel through the gateway channel protocol creation unit, and verifying and testing the interface protocol in the gateway channel through the interface protocol identification unit; creating an available account service package through the gateway account management unit, storing the gateway account and interface protocol that have passed the verification and test in the corresponding available account service package, and adding them to the gateway resource library of the SMS platform; and the SMS obtained by the communication information module is authenticated by the gateway channel protocol creation unit. They are classified into different categories and assigned to the applicable interface protocols, so that when the SP accesses different operators at the same time, the disadvantage that the APIs of the two operators are incompatible is avoided; finally, all the above operations and processes are tracked and recorded through the cloud, and the recorded data is converted into text information for storage and transmission to the display terminal, so that the operator can check the process operation status at any time; after the above operations, the communication system can be compatible with the SMS gateways of all mobile companies and China Unicom SMS gateways in the country, meet the needs of users to directly connect to the SMS center, and meet the various needs of multiple gateways running together or multiple gateways running independently; secondly, the CMPP protocol is fully optimized, and asynchronous data communication with the SMS gateway is realized externally, and a multi-threaded scheduling operation mechanism is realized internally, thereby effectively improving the practicability of the communication system. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a composition diagram of the communication system of the present invention that can support multiple SMS gateways;
[0063] Figure 2 The present invention is a flow chart of a communication method that can support multiple SMS gateways. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] In order to solve the problem that the API provided by existing operators is only for simple connection and data transmission functions, and cannot be closely integrated with the SP's own system, when the SP connects to different operators at the same time, the APIs of the two operators are incompatible, resulting in poor system performance and efficiency in actual use. Figure 1-2 , this embodiment provides the following technical solutions:
[0066] A communication system and method capable of supporting multiple SMS gateways, the communication system comprising: a communication information module, a communication configuration module, a gateway channel protocol creation unit, an interface protocol identification unit, a gateway account management unit and a cloud. The communication information module is an important part of the whole system, and is responsible for data communication with China Mobile, China Unicom or a short message center. Currently, the communication information module (XMLenter) can support: CMPP 2.0, SGIP, SMPP (China Mobile, China Unicom) and SMIAS, wherein the short message peer-to-peer protocol (SMPP) is a protocol suitable for message transmission between wireless data applications and wireless networks, and is also one of the standard protocols for external access interfaces of short message service center systems. Each connection can currently reach 25,000 packets / second (tested using a simulator), and this speed has far exceeded the speed limit of the interface that can be provided by mobile operators. The export part of the communication information module will adopt different protocols for different gateways, so that the communication system can be compatible with the SMS gateways of all mobile companies and Unicom SMS gateways in the country, meet the needs of users to directly connect to the SMS center, meet the various needs of multiple gateways running together or running independently, thereby realizing the function of supporting multiple SMS gateway communications.
[0067] In a preferred embodiment, the communication information module, the communication configuration module, the gateway channel protocol creation unit, the interface protocol identification unit, the gateway account management unit and the cloud are configured to perform the following operations:
[0068] The communication information module is used to obtain relevant information of the SMS gateway and transmit the SMS gateway to the communication configuration module; wherein the communication information module also includes: a terminal connection module;
[0069] The terminal connection module establishes a communication connection between the communication information module and the external SMS terminal based on the terminal connection module; it should be noted that the relevant information of the SMS gateway includes: operator name, channel type, access requirements, general API documentation, general SDK and other related document information.
[0070] The communication configuration unit is used to configure the relevant information of the SMS gateway and transmit it to the gateway channel protocol creation unit; wherein the communication configuration unit includes: a routing module, a backup module and an object access protocol module;
[0071] The routing module is used to build a data gateway channel and establish a connection relationship between it and the channel information, and receive text messages from the communication information module based on the connection relationship;
[0072] The backup module is used to create an encrypted configuration file and save the received SMS gateway to the encrypted configuration file for backup; when saving, the basic data's operator type, gateway account name, gateway password and the account holder's identification code need to be classified and set;
[0073] The object access protocol module is used to find the object access protocol address of the destination SMS gateway and send the SMS of the communication information module to the destination SMS gateway; for example: when the communication information module obtains a group of SMS gateways, it receives them through the routing module, and uses the classification module to identify and classify the channel types of the received SMS gateways. After classification, it finds the appropriate interface protocol based on the object access protocol module, and transmits the obtained SMS gateway to the destination SMS gateway based on the corresponding interface protocol.
[0074] The gateway channel protocol creation unit creates a corresponding interface protocol based on the channel type of the SMS gateway; wherein the gateway channel protocol creation unit includes: a classification module and a creation module;
[0075] The classification module is used to identify and classify the channel types of the received SMS gateway, so as to obtain different channel types of the SMS gateway;
[0076] A creation module is used to create corresponding interface protocols based on different channel types of the SMS gateway, and the number of the created interface protocols is consistent with the number of SMS gateway channel types, so as to build a corresponding interface protocol for each third-party SMS gateway channel; it should be noted that the creation module is to build a gateway channel basic information pool, and the pre-built gateway channel basic information pool must include the gateway channel basic information pools of China Mobile, China Unicom, China Telecom and third-party operator channels, so as to ensure that the communication information module can normally obtain the operator's SMS network; for example: when the communication information module obtains a group of SMS gateways, it can find the corresponding channel type in the gateway channel basic information pool according to the operator type of the gateway account information, and establish an association between the gateway account and the channel information.
[0077] The interface protocol identification unit is used to verify and test the interface protocol in the gateway channel; wherein the interface protocol identification unit includes: a service request module;
[0078] The service request module is used to verify and test the interface protocol in the gateway channel. If the service request module under the gateway channel passes the test, the service request module is marked as qualified; if the service request modules of all functions under the gateway channel pass the test, the gateway channel is marked as qualified; at the same time, a test service package must be set up corresponding to the service request module, and each service request module is tested through the test service package. The test content includes: whether each service request module can initiate a normal request link and whether it can get the expected response; if the service request toolkit under the gateway account passes the test, the service request toolkit is marked as activated, and if the service request toolkits of all functions under the gateway account pass the test, the gateway account is marked as activated. For each service request module that passes the test, it is necessary to modify the implementation method or process of each service request module again until each service request module passes the verification and the expected results are fully obtained.
[0079] At the same time, the interface protocol identification unit also includes:
[0080] A quantity extraction module is used to extract the request quantity of the service request modules that have not passed the test if not all the service request modules of the functions under the gateway channel have passed the test;
[0081] A function calling module, used to call the functions corresponding to the service request modules that failed the test, and sort and serialize the functions corresponding to each failed service request module;
[0082] A parameter acquisition module, used to extract the function attribute parameters of the function corresponding to the failed service request module in sequence according to the sequence number identifier; wherein the function attribute parameters include the minimum number of service requests occurring per unit time and the maximum number of service requests occurring per unit time;
[0083] The first time interval setting module is used to set the first service request module re-inspection time interval according to the function attribute parameter; wherein the first service request module re-inspection time interval is obtained by the following formula:
[0084]
[0085] in, T 1 indicates the first service request module re-inspection time interval; M Indicates the number of functions corresponding to the service request module that failed the test; q maxi It represents the maximum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; q mini It represents the minimum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; T 0 means the benchmark interval, T The value range of 0 is 3min-5min;
[0086] A first re-inspection module, configured to obtain a first re-inspection result when the service request modules corresponding to all functions of the gateway channel perform a first re-inspection at a time corresponding to the first service request module re-inspection time interval;
[0087] A retest qualified marking module is used to mark the gateway channel as qualified if the first retest result shows that the service request modules of all functions under the current gateway channel have passed the test;
[0088] A retest failure marking module is used to mark the gateway channel as unqualified if the first retest result shows that not all service request modules of the functions under the current gateway channel have passed the test;
[0089] The unqualified module quantity extraction module is used to extract the number of service request modules that have not passed the test in the unqualified gateway channel, and use the number of the service request modules that have not passed the test of the re-inspection time interval setting model set to set the next service request module re-inspection time interval; wherein the re-inspection time interval setting model includes:
[0090]
[0091] in,T Indicates the next service request module re-test time interval; N j-1 N represents the number of service request modules that failed the test during the j-1th retest; j represents the number of the service request modules that failed the test during the jth retest; Q maxi represents the maximum number of service requests of the i-th qualified gateway channel within the preset unit time; Q mini represents the minimum number of service requests that occur within a preset unit time for the i-th qualified gateway channel; Q pi It represents the average number of service requests of the i-th qualified gateway channel within the preset unit time; n Indicates the number of qualified gateway channels;
[0092] The repeated re-inspection module is used to re-inspect all service request modules in the unqualified gateway channels at the time corresponding to the next service request module re-inspection time interval, and set the time interval for each re-inspection in the subsequent re-inspection process according to the re-inspection result and the re-inspection time interval setting model until all gateway channels pass the test and are marked as qualified.
[0093] The above method can effectively improve the verification efficiency of unqualified service request modules, thereby effectively improving the efficiency of all service request modules completing qualified tests. On the other hand, the re-inspection time interval set by the above method can not only conduct targeted re-inspections on service request modules with different functions according to the actual number of function activations, improve the rationality of the re-inspection time interval setting, and prevent the problem of reduced re-inspection efficiency due to the re-inspection time interval being set too long, but also prevent the problem of increased unqualified rate of the service request module due to insufficient time for automatic adjustment caused by the re-inspection time interval being set too short.
[0094] The gateway account management unit is used to manage the gateway accounts and interface protocols that have passed verification and testing; wherein the gateway account management unit includes: an account creation module;
[0095] The account creation module is used to create an available account service package, store the gateway account and interface protocol that have passed verification and testing in the corresponding available account service package, mark it as a gateway resource, and add it to the gateway resource library of the SMS platform; it should be noted that by creating an available account service package and saving qualified gateway accounts and interface protocols, the pre-built gateway channel basic information pool is made more compatible, and the communication information module uses different interface protocols for the acquired SMS gateways, so that the communication system can be compatible with the SMS gateways of all mobile companies and China Unicom SMS gateways across the country, meeting the needs of users to directly connect to the SMS center, and meeting various needs of multiple gateways running together or multiple gateways running independently, thereby realizing the function of supporting communications with multiple SMS gateways.
[0096] The cloud is used to track and record all the above operations and processes, save the recorded data into text information, and transmit it to the display terminal so that the operator can check the process operation status at any time.
[0097] The method comprises the following steps:
[0098] Step 1: Establish a communication connection with the external SMS gateway through the terminal connection module to obtain relevant information of the SMS gateway;
[0099] Step 2: Create a data gateway channel through the routing module, receive SMS gateway based on this channel, and save the received SMS gateway to the encrypted configuration file created in advance to back up the SMS gateway to prevent data loss; the basic data related to the SMS gateway includes: operator type, gateway account name, gateway password, and the identification code of the account holder
[0100] Step 4: Identify the channel type of the SMS gateway, create corresponding interface protocols based on different channel types, use the service request module to verify and test the interface protocol, and mark the gateway channel that passes the test as qualified;
[0101] Step 5: Create an available account service package through the account creation module, store the gateway account and interface protocol that have passed verification and testing in the available account service package, and add it to the gateway resource library of the SMS platform;
[0102] Step 6: Use the object access protocol module to find the object access protocol address of the destination SMS gateway, and send it to the destination SMS gateway, thereby realizing the function of supporting communication with multiple SMS gateways;
[0103] Step 7: All the above operations are tracked and recorded through the cloud, and the recorded data is saved as text information, and sent to the display terminal so that the operator can check the process operation status at any time.
[0104] Specifically, the SMS gateway related information is obtained through the communication information module and transmitted to the communication configuration module; the data gateway channel is constructed by using the communication configuration unit, and a connection relationship is established with the channel information, the received related information is encrypted and stored, and transmitted to the gateway channel protocol creation unit; the gateway channel protocol creation unit constructs a corresponding interface protocol for each third-party SMS gateway channel, and the interface protocol identification unit verifies and tests the interface protocol in the gateway channel; the gateway account management unit creates an available account service package, and the gateway account and interface protocol that pass the verification and test are stored in the corresponding available account service package, and added to the gateway resource library of the SMS platform; and the SMS obtained by the communication information module is identified and classified by the gateway channel protocol creation unit, so as to be assigned to the applicable interface protocol. Finally, all the above operations and processes are tracked and recorded through the cloud, and the recorded data is converted into text information for storage and transmission to the display terminal, so that the operator can check the process operation status at any time, thereby effectively improving the practicality of the communication system; after the above operations, the communication system can be compatible with the SMS gateways of all mobile companies and China Unicom SMS gateways in the country, meeting the needs of users to directly connect to the SMS center, and meeting various needs of multiple gateways running together or multiple gateways running independently; secondly, the CMPP protocol is fully optimized, and asynchronous data communication with the SMS gateway is realized externally, and a multi-threaded scheduling operation mechanism is realized internally, thereby effectively improving the practicality of the communication system.
[0105] At the same time, the service request module is used to verify and test the interface protocol, and the gateway channel that passes the test is marked as qualified, including;
[0106] Step 401: Verify and test the interface protocol in the gateway channel. If the service request module under the gateway channel passes the test, the service request module is marked as qualified. If the service request modules of all functions under the gateway channel pass the test, the gateway channel is marked as qualified.
[0107] Step 402: retrieve the functions corresponding to the service request modules that failed the test, and sort and number the functions corresponding to each service request module that failed the test;
[0108] Step 403: extracting the function attribute parameters of the function corresponding to the failed service request module in sequence according to the sequence number identifier; wherein the function attribute parameters include the minimum number of service request occurrences per unit time and the maximum number of service request occurrences per unit time;
[0109] Step 404: Set the first service request module re-inspection time interval according to the function attribute parameters; wherein the first service request module re-inspection time interval is obtained by the following formula:
[0110]
[0111] in, T 1 indicates the first service request module re-inspection time interval; M Indicates the number of functions corresponding to the service request module that failed the test; q maxi It represents the maximum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; q mini It represents the minimum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; T 0 means the benchmark interval, T The value range of 0 is 3min-5min;
[0112] Step 405: when the service request modules corresponding to all functions of the gateway channel perform the first re-inspection at the time corresponding to the first service request module re-inspection time interval, obtain the first re-inspection result;
[0113] Step 406: If the first re-test result indicates that all service request modules of the functions under the current gateway channel have passed the test, the gateway channel is marked as qualified;
[0114] Step 407: If the first re-test result indicates that not all service request modules of the functions under the current gateway channel have passed the test, the gateway channel is marked as unqualified;
[0115] Step 408: extract the number of service request modules that failed the test in the unqualified gateway channel, and use the number of the service request modules that failed the test set by the re-test time interval setting model to set the next service request module re-test time interval; wherein the re-test time interval setting model includes:
[0116]
[0117] in, T Indicates the next service request module re-test time interval; N j-1 N represents the number of service request modules that failed the test during the j-1th retest; j represents the number of the service request modules that failed the test during the jth retest; Q maxirepresents the maximum number of service requests of the i-th qualified gateway channel within the preset unit time; Q mini represents the minimum number of service requests that occur within a preset unit time for the i-th qualified gateway channel; Q pi It represents the average number of service requests of the i-th qualified gateway channel within the preset unit time; n Indicates the number of qualified gateway channels;
[0118] Step 409: re-inspect all service request modules in the unqualified gateway channels at the time corresponding to the next service request module re-inspection time interval, and set the time interval for each subsequent re-inspection process according to the re-inspection result and the re-inspection time interval setting model until all gateway channels pass the test and are marked as qualified.
[0119] The above method can effectively improve the verification efficiency of unqualified service request modules, thereby effectively improving the efficiency of all service request modules completing qualified tests. On the other hand, the re-inspection time interval set by the above method can not only conduct targeted re-inspections on service request modules with different functions according to the actual number of function activations, improve the rationality of the re-inspection time interval setting, and prevent the problem of reduced re-inspection efficiency due to the re-inspection time interval being set too long, but also prevent the problem of increased unqualified rate of the service request module due to insufficient time for automatic adjustment caused by the re-inspection time interval being set too short.
[0120] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A communication system that can support multiple SMS gateways, characterized by: The communication system includes: a communication information module, a communication configuration module, a gateway channel protocol creation unit, an interface protocol identification unit, a gateway account management unit and a cloud; The communication information module is used to obtain relevant information of the SMS gateway and transmit the SMS gateway to the communication configuration module; The communication configuration module is used to configure the relevant information of the SMS gateway and transmit it to the gateway channel protocol creation unit; The gateway channel protocol creation unit creates a corresponding interface protocol based on the channel type of the SMS gateway; The interface protocol identification unit is used to verify and test the interface protocol in the gateway channel; The gateway account management unit is used to manage the gateway accounts and interface protocols that have passed verification and testing; The cloud is used to track and record all the above operations and processes, save the recorded data into text information, and transmit it to the display terminal; The interface protocol identification unit further comprises: The service request module is used to verify and test the interface protocol in the gateway channel. If the service request module under the gateway channel passes the test, the service request module is marked as qualified; if the service request modules of all functions under the gateway channel pass the test, the gateway channel is marked as qualified; A quantity extraction module is used to extract the request quantity of the service request modules that have not passed the test if not all the service request modules of the functions under the gateway channel have passed the test; A function calling module, used to call the functions corresponding to the service request modules that failed the test, and sort and serialize the functions corresponding to each failed service request module; A parameter acquisition module, used to extract the function attribute parameters of the function corresponding to the failed service request module in sequence according to the sequence number identifier; wherein the function attribute parameters include the minimum number of service requests occurring per unit time and the maximum number of service requests occurring per unit time; The first time interval setting module is used to set the first service request module re-inspection time interval according to the function attribute parameter; wherein the first service request module re-inspection time interval is obtained by the following formula: in, T 1 indicates the first service request module re-inspection time interval; M Indicates the number of functions corresponding to the service request module that failed the test; q maxi It represents the maximum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; q mini It represents the minimum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; T 0 means the benchmark interval, T The value range of 0 is 3min-5min; A first re-inspection module, configured to obtain a first re-inspection result when the service request modules corresponding to all functions of the gateway channel perform a first re-inspection at a time corresponding to the first service request module re-inspection time interval; A retest qualified marking module is used to mark the gateway channel as qualified if the first retest result shows that the service request modules of all functions under the current gateway channel have passed the test; A retest failure marking module is used to mark the gateway channel as unqualified if the first retest result shows that not all service request modules of the functions under the current gateway channel have passed the test; The unqualified module quantity extraction module is used to extract the number of service request modules that have not passed the test in the unqualified gateway channel, and use the number of the service request modules that have not passed the test of the re-inspection time interval setting model set to set the next service request module re-inspection time interval; wherein the re-inspection time interval setting model includes: in, T Indicates the next service request module re-inspection time interval; N j-1 N represents the number of service request modules that failed the test during the j-1th retest; j represents the number of the service request modules that failed the test during the jth retest; Q maxi represents the maximum number of service requests of the i-th qualified gateway channel within the preset unit time; Q mini represents the minimum number of service requests that occur within a preset unit time for the i-th qualified gateway channel; Q pi It represents the average number of service requests of the i-th qualified gateway channel within the preset unit time; n Indicates the number of qualified gateway channels; The repeated re-inspection module is used to re-inspect all service request modules in the unqualified gateway channels at the time corresponding to the next service request module re-inspection time interval, and set the time interval for each re-inspection in the subsequent re-inspection process according to the re-inspection result and the re-inspection time interval setting model until all gateway channels pass the test and are marked as qualified.
2. A communication system capable of supporting multiple SMS gateways as claimed in claim 1, characterized in that: The communication information module also includes: a terminal connection module; The terminal connection module is used to establish a communication connection between the communication information module and an external SMS terminal.
3. A communication system capable of supporting multiple SMS gateways as claimed in claim 1, characterized in that: The communication configuration module includes: a routing module, a backup module and an object access protocol module; The routing module is used to build a data gateway channel and establish a connection relationship between it and the channel information, and receive text messages from the communication information module based on the connection relationship; The backup module is used to create an encrypted configuration file and save the received SMS gateway to the encrypted configuration file for backup; The object access protocol module is used to find the object access protocol address of the destination SMS gateway and send the SMS of the communication information module to the destination SMS gateway.
4. A communication system capable of supporting multiple SMS gateways as claimed in claim 1, characterized in that: The gateway channel protocol creation unit includes: a classification module and a creation module; The classification module is used to identify and classify the channel types of the received SMS gateway, so as to obtain different channel types of the SMS gateway; A creation module creates corresponding interface protocols based on different channel types of the SMS gateway, and the number of created interface protocols is consistent with the number of SMS gateway channel types, so as to build a corresponding interface protocol for each third-party SMS gateway channel.
5. A communication system capable of supporting multiple SMS gateways as claimed in claim 1, characterized in that: The gateway account management unit includes: an account creation module; The account creation module is used to create an available account service package, store the gateway account and interface protocol that have passed verification and testing in the corresponding available account service package, mark it as a gateway resource, and add it to the gateway resource library of the SMS platform.
6. A method for using the communication system capable of supporting multiple SMS gateways as claimed in any one of claims 1 to 5, characterized in that: The method comprises the following steps: Step 1: Establish a communication connection with the external SMS gateway through the terminal connection module to obtain relevant information of the SMS gateway; Step 2: Create a data gateway channel through the routing module, receive SMS gateway based on this channel, and save the received SMS gateway to the encrypted configuration file created in advance, so as to back up the SMS gateway to prevent data loss; Step 4: Identify the channel type of the SMS gateway, create corresponding interface protocols based on different channel types, use the service request module to verify and test the interface protocol, and mark the gateway channel that passes the test as qualified; Step 5: Create an available account service package through the account creation module, store the gateway account and interface protocol that have passed verification and testing in the available account service package, and add it to the gateway resource library of the SMS platform; Step 6: Use the object access protocol module to find the object access protocol address of the destination SMS gateway, and send it to the destination SMS gateway, so as to realize the function of supporting communication with multiple SMS gateways; Step 7: All the above operations are tracked and recorded through the cloud, and the recorded data is saved as text information, and sent to the display terminal so that the operator can check the process operation status at any time.
7. The method for using a communication system capable of supporting multiple SMS gateways as claimed in claim 6, characterized in that: The relevant information of the SMS gateway in step one includes: operator name, channel type, access requirements, general API documents, general SDK and other related document information. When saving in step two, the operator type, gateway account name, gateway password and identification code of the SMS gateway need to be classified and set.
8. The method for using a communication system capable of supporting multiple SMS gateways as claimed in claim 6, characterized in that: Use the service request module to verify and test the interface protocol, and mark the gateway channel that passes the test as qualified, including; Step 401: Verify and test the interface protocol in the gateway channel. If the service request module under the gateway channel passes the test, mark the service request module as qualified. If all service request modules of the functions under the gateway channel have passed the test, the gateway channel will be marked as qualified. Step 402: retrieve the functions corresponding to the service request modules that failed the test, and sort and number the functions corresponding to each service request module that failed the test; Step 403: extracting the function attribute parameters of the function corresponding to the failed service request module in sequence according to the sequence number identifier; wherein the function attribute parameters include the minimum number of service request occurrences per unit time and the maximum number of service request occurrences per unit time; Step 404: Set the first service request module re-inspection time interval according to the function attribute parameters; wherein the first service request module re-inspection time interval is obtained by the following formula: in, T 1 indicates the first service request module re-inspection time interval; M Indicates the number of functions corresponding to the service request module that failed the test; q maxi It represents the maximum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; q mini It represents the minimum number of startup times per unit time of the function corresponding to the i-th unqualified service request module in all gateway channels; T 0 means the benchmark interval, T The value range of 0 is 3min-5min; Step 405: when the service request modules corresponding to all functions of the gateway channel perform the first re-inspection at the time corresponding to the first service request module re-inspection time interval, obtain the first re-inspection result; Step 406: If the first re-test result indicates that all service request modules of the functions under the current gateway channel have passed the test, the gateway channel is marked as qualified; Step 407: If the first re-test result indicates that not all service request modules of the functions under the current gateway channel have passed the test, the gateway channel is marked as unqualified; Step 408: extract the number of service request modules that failed the test in the unqualified gateway channel, and use the number of the service request modules that failed the test set by the re-test time interval setting model to set the next service request module re-test time interval; wherein the re-test time interval setting model includes: in, T Indicates the next service request module re-inspection time interval; N j-1 N represents the number of service request modules that failed the test during the j-1th retest; j represents the number of the service request modules that failed the test during the jth retest; Q maxi represents the maximum number of service requests of the i-th qualified gateway channel within the preset unit time; Q mini represents the minimum number of service requests that occur within a preset unit time for the i-th qualified gateway channel; Q pi It represents the average number of service requests of the i-th qualified gateway channel within the preset unit time; n Indicates the number of qualified gateway channels; Step 409: re-inspect all service request modules in the unqualified gateway channels at the time corresponding to the next service request module re-inspection time interval, and set the time interval for each subsequent re-inspection process according to the re-inspection result and the re-inspection time interval setting model until all gateway channels pass the test and are marked as qualified.
