Communication module switching method and device, gateway, medium and product

By comparing channel quality data with standard interval values ​​to generate switching instructions, rapid switching of communication modules is achieved, which solves the problems of high packet loss rate and large bandwidth occupation in traditional methods, and is suitable for industrial scenarios with strict requirements on packet loss rate.

CN118804349APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410245140.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing communication module switching methods are prone to packet loss when link status problems are detected, and cannot meet industrial scenarios with stringent packet loss rate requirements. Moreover, traditional link detection technology requires sending a large number of detection messages to occupy bandwidth, and the response is not fast enough. .

Method used

By obtaining the transmission quality data of the uplink and downlink channels and comparing it with the preset standard interval value, a switching instruction is generated, the communication module is switched in a timely manner, the packet loss rate is reduced, and the sending of detection messages is reduced.

Benefits of technology

It realizes rapid switching of transmission schemes when channel quality deteriorates, reduces packet loss rate and bandwidth occupation, and is suitable for business scenarios with high requirements on packet loss rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118804349A_ABST
    Figure CN118804349A_ABST
Patent Text Reader

Abstract

The invention discloses a communication module switching method and device, a gateway, a medium and a product. The method comprises: if it is determined that uplink service data to be sent is obtained, first transmission quality data of a corresponding uplink channel when a first communication module is currently enabled to transmit data is obtained, and the uplink service data to be sent is service data sent from a mobile terminal gateway to a server gateway; the first transmission quality data is compared with a first standard interval value, a first switching instruction is generated based on a comparison result, and the first switching instruction is used for indicating to switch a first communication module to a second communication module; wherein the first standard interval value represents a standard transmission quality interval of a corresponding uplink channel when the first communication module is started to transmit the uplink service data to be sent. By adopting the method provided by the invention, the transmission scheme can be switched in time, and the packet loss rate is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication modules, and in particular to a switching method, device, gateway, medium and product of a communication module. Background Art

[0002] In order to ensure the communication quality between the mobile gateway and the server gateway in the industrial scenario, it is usually necessary to switch the communication module in the mobile gateway or the server gateway to switch the mode of transmitting uplink business data or downlink business data.

[0003] In the related art, the switching method of the communication module is usually based on detecting the link status of the accompanying or bypassing link to determine whether to switch the communication module. Link detection technology can realize real-time detection of link status and fault switching by sending different types of data packets. For example, two-way forwarding detection, network quality analysis and IP-link, etc. Among them, IP-link is a common link detection technology based on IP protocol, which can establish a virtual link between firewalls, routers and other devices to realize link status monitoring and fault switching. IP-link can detect the link status by sending heartbeat packets or ARP (Address Resolution Protocol) requests, and automatically switch to the backup link when the link fails.

[0004] However, when the related technology detects a problem with the link status and switches the transmission scheme, packet loss often occurs, which is not suitable for business scenarios with strict requirements on the packet loss rate. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a switching method, device, gateway, medium and product of a communication module, which can switch the transmission scheme in time and greatly reduce the packet loss rate, and is suitable for business scenarios with high requirements on packet loss rate.

[0006] In a first aspect, an embodiment of the present application provides a communication module switching method, which is applied to a mobile gateway, and the method includes:

[0007] If it is determined that the uplink service data to be sent is obtained, then obtaining the first transmission quality data of the uplink channel corresponding to the current enabling of the first communication module to transmit data, wherein the uplink service data to be sent is service data sent from the mobile terminal gateway to the server gateway;

[0008] comparing the first transmission quality data with a first standard interval value, and generating a first switching instruction based on the comparison result;

[0009] Switching the first communication module to a second communication module based on the first switching instruction;

[0010] The first standard interval value represents a standard transmission quality interval of an uplink channel corresponding to when the first communication module is enabled to transmit the uplink service data to be sent.

[0011] In the above solution, the step of generating a first switching instruction based on the comparison result includes:

[0012] If it is determined based on the comparison result that the first transmission quality data is less than the lower limit of the first standard interval value, a communication module having a transmission reliability level greater than that of the first communication module is determined as a second communication module according to a pre-stored first mapping relationship, and the first switching instruction is generated;

[0013] Alternatively, if it is determined that the first transmission quality data is greater than the upper limit value of the first standard interval value, a communication module having a transmission reliability level lower than that of the first communication module is determined as a second communication module according to the first mapping relationship, and the first switching instruction is generated;

[0014] The first mapping relationship includes the standard interval value of the uplink channel corresponding to the uplink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

[0015] In the above scheme, the method further includes:

[0016] Determining the downlink service data to be sent by the server gateway based on a pre-stored downlink service periodic table;

[0017] Acquire second transmission quality data of a downlink channel corresponding to when the server gateway currently enables the third communication module to transmit data;

[0018] Comparing the second transmission quality data with a second standard interval value, generating a second switching instruction based on the comparison result and sending the second switching instruction to the server gateway, wherein the second switching instruction is used to instruct the server gateway to switch the third communication module to a fourth communication module;

[0019] The second standard interval value represents a standard transmission quality interval of a channel corresponding to when the server gateway enables the third communication module to transmit the downlink service data to be sent.

[0020] In a second aspect, an embodiment of the present application further provides a communication module switching method, which is applied to a server gateway, and the method includes:

[0021] In response to a second switching instruction from the mobile terminal gateway or a third switching instruction generated by itself, switching the third communication module to a fourth communication module;

[0022] Among them, the second switching instruction or the third switching instruction is generated based on the comparison result of the second transmission quality data and the second standard interval value, the second transmission quality data represents the transmission quality of the downlink channel corresponding to the downlink service data to be sent by the currently enabled third communication module, and the second standard interval value represents the standard transmission quality interval of the downlink channel corresponding to the enabled third communication module to transmit the downlink service data to be sent.

[0023] In the above scheme, the method further includes:

[0024] If it is determined that the downlink service data to be sent is obtained, the second transmission quality data of the downlink channel corresponding to the current enabling of the third communication module to transmit data is obtained; the second transmission quality data is compared with the second standard interval value, and a third switching instruction is generated based on the comparison result.

[0025] In the above solution, the step of obtaining the second transmission quality data of the downlink channel corresponding to the downlink data to be sent that is currently enabled by the third communication module includes:

[0026] Acquire third transmission quality data of the uplink channel sent by the mobile gateway;

[0027] Based on the third transmission quality data, second transmission quality data of the downlink channel is obtained.

[0028] In the above solution, obtaining the third transmission quality data of the uplink channel sent by the mobile gateway includes:

[0029] The uplink service data sent by the mobile gateway is acquired, where the uplink service data carries third transmission quality data of the uplink channel.

[0030] In the above solution, the step of generating the third switching instruction based on the comparison result includes:

[0031] If it is determined based on the comparison result that the second transmission quality data is less than the lower limit of the second standard interval value, a communication module having a transmission reliability level greater than that of the third communication module is determined as a fourth communication module according to a pre-stored second mapping relationship, and the third switching instruction is generated;

[0032] Alternatively, if it is determined based on the comparison result that the second transmission quality data is greater than the upper limit value of the second standard interval value, a communication module having a transmission reliability level lower than that of the third communication module is determined as a fourth communication module according to the second mapping relationship, and the third switching instruction is generated;

[0033] The second mapping relationship includes the standard interval value of the downlink channel corresponding to the downlink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

[0034] In a third aspect, an embodiment of the present application further provides a switching device of a communication module, which is applied to a mobile gateway, and the device includes:

[0035] A data acquisition module, configured to acquire first transmission quality data of a channel corresponding to the uplink service data to be sent that is currently enabled by the first communication module if it is determined that the uplink service data to be sent is acquired, wherein the uplink service data to be sent is service data sent from the mobile terminal gateway to the server gateway;

[0036] A first instruction generating module, configured to compare the first transmission quality data with a first standard interval value, and generate a first switching instruction based on the comparison result; wherein the first standard interval value represents a standard transmission quality interval of an uplink channel corresponding to when the first communication module is enabled to transmit the uplink service data to be sent;

[0037] The first module switching module is used to switch the first communication module to a second communication module based on the first switching instruction.

[0038] In a fourth aspect, an embodiment of the present application further provides a switching device of a communication module, which is applied to a server gateway, and the device includes:

[0039] A module switching module, configured to switch the third communication module to a fourth communication module in response to a second switching instruction from a mobile terminal gateway or a third switching instruction generated by itself;

[0040] Among them, the second switching instruction or the third switching instruction is generated based on the comparison result of the second transmission quality data and the second standard interval value, the second transmission quality data represents the transmission quality of the downlink channel corresponding to the downlink service data to be sent by the currently enabled third communication module, and the second standard interval value represents the standard transmission quality interval of the downlink channel corresponding to the enabled third communication module to transmit the downlink service data to be sent.

[0041] In a fifth aspect, an embodiment of the present application further provides a mobile gateway, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps of the method described in the first aspect when running the computer program.

[0042] In a sixth aspect, an embodiment of the present application further provides a server gateway, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor, when running the computer program, executes the steps of the method described in the second aspect.

[0043] In the seventh aspect, an embodiment of the present application further provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect and / or the second aspect are implemented.

[0044] In an eighth aspect, an embodiment of the present application further provides a computer program product, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect and / or the second aspect are implemented.

[0045] The technical solution provided by the embodiment of the present application uses the quality information of the uplink channel as the basis for switching the communication module to achieve the switching of the data transmission scheme. The transmission scheme can be switched in time when the channel quality deteriorates. Compared with the traditional link detection technology, the response is faster and the packet loss caused by link interruption can be avoided. Moreover, compared with the link-based detection technology, it does not need to send a large number of detection messages and occupies less bandwidth. In addition, compared with the current dual-transmission and selective reception commonly used transmission scheme that needs to be bound to the business flow, the present application can select a suitable transmission scheme according to the real-time channel quality corresponding to the transmission scheme supported by the uplink business data to be sent. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a schematic diagram of the principle of data transmission using the dual-transmission optimization technology in the related art;

[0047] Figure 2 A schematic diagram of the architecture between a mobile terminal gateway and a server gateway in the related art;

[0048] Figure 3 A schematic diagram of a flow chart of a switching method of a communication module according to an embodiment of the present application;

[0049] Figure 4 This is a flow chart of a switching method of a communication module according to another embodiment of the present application;

[0050] Figure 5 A schematic diagram of a switching method of a communication module in an application embodiment of the present application;

[0051] Figure 6 A schematic diagram of a switching method of a communication module in another application embodiment of the present application;

[0052] Figure 7 A schematic diagram of a switching method of a communication module in yet another application embodiment of the present application;

[0053] Figure 8 A schematic diagram of a switching method of a communication module according to another embodiment of the present application;

[0054] Fig. 9 This is a structural schematic diagram of a switching device of a communication module according to an embodiment of the present application;

[0055] Fig.10 This is a structural schematic diagram of a switching device of a communication module in another embodiment of the present application;

[0056] Fig.11 This is a schematic diagram of the structure of a mobile gateway according to an embodiment of the present application;

[0057] Fig.12 This is a schematic diagram of the structure of a server gateway according to an embodiment of the present application. DETAILED DESCRIPTION

[0058] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0060] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:

[0061] Wi-Fi can usually use RSSI (Received Signal Strength Indicator) and SNR (Signal-to-Noise Ratio) to characterize the transmission quality of the channel.

[0062] RSSI: Received Signal Strength Indicator, is an indicator used to measure the strength of the received signal. It is usually measured in dBm, and the larger the value, the stronger the signal strength. RSSI does not consider the impact of signal quality, but only reflects the strength of the signal.

[0063] SNR: Signal-to-Noise Ratio is an indicator that measures the ratio between signal and noise. It is usually expressed in dB, and the larger the value, the better the signal quality. The higher the SNR, the higher the ratio of useful information in the signal to noise, and the better the communication quality.

[0064] Among the technologies related to data transmission, dual-transmit selective reception technology is a technology that sacrifices bandwidth in exchange for transmission reliability. The basic principle is as follows Figure 1 As shown, data is replicated and distributed on different paths at the sending end, the same data packet uses the same sequence number, and the receiving end receives cached data on different paths and deduplicates the data packets according to the sequence number.

[0065] Since dual-transmit selective reception technology requires multiple bandwidths, dual-transmit selective reception is generally only performed for high-priority service flows. Taking FRER (Frame Replication and Elimination for Reliability) in TSN (Time-Sensitive Networking) as an example, both the sender and the receiver need to have the ability to identify the flow, and the dual-transmit selective reception function is bound to the high-priority service flow. When a high-priority service flow arrives at the sender / receiver, it is copied and forwarded from different paths; when a low-priority service flow arrives at the sender / receiver, it is forwarded directly without being processed.

[0066] Existing transmission scheme switching and link switching methods are usually based on link detection technology. Link detection technology can achieve real-time detection of link status and fault switching by sending different types of data packets. The following are several common link detection technologies:

[0067] 1. BFD (Bidirectional Forwarding Detection)

[0068] BFD implements link detection by encapsulating detection information in UDP packets, sending them to the peer UDP port, and receiving BFD packets sent by the peer. When both devices support the BFD function, the two ends send BFD control packets to each other for link detection. The detection device can span multiple devices and detect the sum of all intermediate links. When only one device supports the BFD function, device detection is performed by sending BFD echo packets. At this time, the BFD echo packet is reflected back to the local end by the remote device. Although the requirements for the device are relatively low, only directly connected links can be detected. In order to meet the needs of rapid detection, the BFD protocol stipulates that the sending interval and receiving interval are in microseconds. In theory, BFD can achieve microsecond-level detection with high sensitivity.

[0069] 2. NQA (Network Quality Analysis)

[0070] Compared with BFD, which only performs simple link connectivity tests, NQA can test links in multiple directions. For example, NQA supports DHCP tests. The NQA client simulates a DHCP client to request an IP address from a DHCP server and completes the IP address application. After the test is completed, the NQA client will actively send a DHCP Release message to release the requested IP address. The NQA client will also provide relevant test results. Compared with BFD, the detection accuracy of NQA is slightly lower, only reaching the millisecond level.

[0071] 3. IP-link

[0072] IP-link is a common link detection technology based on IP protocol. It can establish virtual links between devices such as firewalls and routers to monitor link status and perform fault switching. IP-link can detect link status by sending heartbeat packets or ARP requests, and automatically switch to the backup link when a link fails. IP-link technology can improve network reliability and stability and ensure the normal operation of the network. IP-link is mainly used to automatically detect whether the service link is normal to ensure continuous smooth service. The IP-link detection packet interval is long and the link overhead is small.

[0073] The above-mentioned related technologies have the following technical problems:

[0074] 1. Dual-transmit selective reception technology can further improve the communication transmission quality based on the existing network conditions, but it will also occupy multiple bandwidths. Whether the existing dual-transmit selective reception technology is enabled is mostly bound to the service flow type, and it is impossible to make timely adjustments based on the real-time link quality to cope with sudden electromagnetic interference and other situations.

[0075] 2. Based on link status detection, this method needs to send link detection packets along the way or bypass the link and detect link status problems and switch the link / transmission scheme when packet loss has already occurred. Some services in industrial scenarios have strict requirements on packet loss rate. Simply switching the link / transmission scheme after detecting packet loss cannot meet the strict requirements of industrial core areas for determinism and reliability.

[0076] 3. Since the server-side 5G / 4G network cannot obtain information inside the 5G / 4G network, it is impossible to use the information inside the 5G / 4G network to assist the server-side gateway in judging the transmission quality and selecting / switching the downlink transmission scheme.

[0077] In addition, the network topology based on the client / server architecture of TAN (Time Aware Network) using 5G network for service transmission is as follows: Figure 2As shown in the figure, the mobile gateway is placed on the mobile device side, and the server gateway is placed behind the UPF N6 port to realize the protocol conversion between the industrial protocol and the 5G network. After the industrial equipment transmits the standard Ethernet frame to the TAN module, the TAN module encapsulates the TAN frame header in front of the standard Ethernet frame and replicates the frame, and sends two identical data frames to the TAN module of the server gateway on the other end through two independent links. The TAN module inside the server gateway disassembles the TAN frame header of the received TAN data frame and sends the disassembled standard Ethernet frame to the server. The TAN-based mobile / server gateway supports communication through 5G, 4G, Wi-Fi and other networks.

[0078] The present application embodiment provides a switching method of a communication module, the execution subject can be a mobile gateway, the switching method of the communication module can be independently applied to electronic devices with data processing capabilities, such as terminal devices, servers, etc., and can also be implemented by the cooperation between terminal devices and servers; wherein the terminal device can specifically be a computer, a smart phone, a personal digital assistant (PDA), etc.; the server can specifically be an application server or a Web server. In actual deployment, the server can be an independent server or a cluster server. Figure 3 As shown, the switching method of the communication module includes:

[0079] Step 101: If it is determined that the uplink service data to be sent is obtained, the first transmission quality data of the uplink channel corresponding to the current enabling of the first communication module to transmit data is obtained.

[0080] The service data uploaded by the mobile gateway to the server gateway is called uplink service data. The channel used by the mobile gateway to transmit uplink service data to the server gateway is called an uplink channel.

[0081] The first communication module is a communication module previously enabled by the mobile gateway and can be used to transmit historical uplink service data. When the first communication module is enabled to transmit historical uplink service data, the corresponding uplink channel transmission quality data is called first transmission quality data.

[0082] Before sending the uplink service data to be sent to the server gateway through the uplink channel, the first transmission quality data corresponding to the currently enabled first communication module can be obtained first. The first transmission quality data characterizes the transmission quality when the uplink channel enables the first communication module to transmit data. Then, based on the first transmission quality data, determine whether to switch the first communication module to other communication modules, so as to send the uplink service data to be sent to the server gateway through other communication modules. The switching of the communication module can be understood as the switching of the data transmission scheme. The communication module of the mobile gateway can include a 5G (2.6G band) communication module, a 5G (4.9G band) communication module, a 4G (TDD band) communication module and a Wi-Fi communication module.

[0083] Step 102, comparing the first transmission quality data with the first standard interval value, and generating a first switching instruction based on the comparison result;

[0084] Arrangement 103: Switch the first communication module to a second communication module based on the first switching instruction.

[0085] Among them, for each uplink service data stream, there can be multiple transmission schemes, that is, different communication modules are enabled, and each communication module has a corresponding standard interval value when it is enabled to transmit data. The standard interval value of the communication module represents the standard transmission quality interval of the corresponding uplink channel when the communication module is enabled to transmit the uplink service data stream. The first standard interval value represents the standard transmission quality interval of the corresponding uplink channel when the first communication module is enabled to transmit the uplink service data to be sent.

[0086] The first transmission quality data is compared with the first standard interval value to obtain a comparison result of the first transmission quality data and the first standard interval value. Based on the comparison result, a first switching instruction is generated, and the first switching instruction indicates that the first communication module is switched to the second communication module. The mobile gateway switches the first communication module to the second communication module based on the first switching instruction.

[0087] The present application uses the quality information of the uplink channel as the basis for switching the communication module to realize the switching of the data transmission scheme. The transmission scheme can be switched in time when the channel quality deteriorates. Compared with the traditional link detection technology, the response is faster and the packet loss caused by link interruption can be avoided. Moreover, compared with the link detection technology, it does not need to send a large number of detection messages, and occupies less bandwidth. In addition, compared with the current dual-transmission and selective reception transmission scheme that needs to be bound to the business flow, the present application can select a suitable transmission scheme according to the real-time channel quality corresponding to the transmission scheme supported by the uplink business data to be sent.

[0088] In one embodiment, generating a first switching instruction based on the comparison result includes:

[0089] If it is determined based on the comparison result that the first transmission quality data is less than the lower limit of the first standard interval value, a communication module having a transmission reliability level greater than that of the first communication module is determined as a second communication module according to a pre-stored first mapping relationship, and the first switching instruction is generated;

[0090] If it is determined based on the comparison result that the first transmission quality data is greater than the upper limit value of the first standard interval value, a communication module having a transmission reliability level lower than that of the first communication module is determined as a second communication module according to the first mapping relationship, and the first switching instruction is generated;

[0091] The transmission quality data may include RSRP and SNR data. The first mapping relationship includes the standard interval value of the uplink channel corresponding to the uplink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when each communication module is used to transmit data.

[0092] Here, based on the comparison result, if it is determined that the first transmission quality data is less than the lower limit of the first standard interval value, the communication module with a transmission reliability level greater than the first communication module in the first mapping relationship is determined as the second communication module. If there are multiple communication modules with a transmission reliability level greater than the first communication module, the communication module with the closest transmission reliability level is used as the second communication module. In this case, the transmission quality of the uplink channel is poor. When the transmission quality of the uplink channel is poor, it is switched to the second communication module with a higher transmission reliability level, and then the uplink service data to be sent is transmitted through the second communication module, thereby reducing the packet loss rate.

[0093] If it is determined based on the comparison result that the first transmission quality data is greater than the upper limit value of the first standard interval value, the communication module with a transmission reliability level lower than the first communication module in the first mapping relationship is determined as the second communication module. If there are multiple communication modules with transmission reliability levels lower than the first communication module, the communication module with the closest transmission reliability level is used as the second communication module. In this case, the transmission quality of the corresponding uplink channel is better, and the transmission reliability can still meet the requirements by switching to the second communication module with a lower transmission reliability level. In this case, switching to the second communication module with lower transmission reliability can reduce the occupancy of bandwidth resources while the transmission reliability meets the requirements.

[0094] In one embodiment, the uplink channel includes single-link transmission or dual-link transmission. If enabling single-link transmission can meet the reliability requirements of the uplink business data to be sent, the dual link originally enabled can be switched to a single link. The retained single link at least meets the reliability requirements of the uplink business data to be sent. For example, the uplink channel adopts dual-link transmission, one link enables the 4G communication module, and the other link enables the Wi-Fi communication module. If the reliability requirements can be met when transmitting the uplink business data to be sent, the link transmission of the Wi-Fi communication module or the 4G communication module originally enabled can continue to be used, and one of the two can be selected. If only the Wi-Fi communication module can meet the reliability requirements, the link of the Wi-Fi communication module originally enabled continues to be used.

[0095] In one embodiment, if the first transmission quality data is determined to be greater than or equal to the lower limit of the first standard interval value and less than or equal to the upper limit of the first standard interval value based on the comparison result, the uplink service data to be sent is transmitted through the first communication module.

[0096] Here, if the first transmission quality data falls within the first standard interval value, it indicates that the transmission reliability of the uplink channel when the first communication module is currently enabled to transmit data meets the requirements. In this case, the mobile terminal gateway does not need to switch the communication module.

[0097] The first transmission quality data is greater than or equal to the lower limit of the first standard interval value, and less than or equal to the upper limit of the first standard interval value, indicating that the transmission reliability when enabling the first communication module to transmit the uplink service to be sent meets the requirements. Therefore, the first communication module can continue to be enabled.

[0098] It can be understood that after generating the first switching instruction, the mobile gateway updates the currently activated communication module (i.e., the aforementioned first communication module) to the second communication module based on the first switching instruction. In this way, the uplink channel enables the second communication module to transmit uplink service data until the next communication module switching occurs.

[0099] In one embodiment, the communication module switching method further includes:

[0100] Determining the downlink service data to be sent by the server gateway based on a pre-stored downlink service periodic table;

[0101] Acquire second transmission quality data of a downlink channel corresponding to when the server gateway currently enables the third communication module to transmit data;

[0102] The second transmission quality data is compared with a second standard interval value, and a second switching instruction is generated based on the comparison result and sent to the server gateway, where the second switching instruction is used to instruct the server gateway to switch the third communication module to a fourth communication module.

[0103] The downlink service cycle table stores the communication modules and cycle information of the periodic downlink services currently enabled. According to the pre-stored downlink service cycle table and the current time, the downlink service data to be sent by the server gateway, ie, the downlink service data to be sent, can be determined.

[0104] The third communication module is a communication module previously enabled by the server gateway, and can be used to transmit historical downlink service data. When the third communication module is enabled to transmit historical downlink service data, the transmission quality data of the corresponding downlink channel is called second transmission quality data.

[0105] For each downlink service data stream, there may be multiple transmission schemes, that is, different communication modules are enabled, and each communication module has a corresponding standard interval value when it is enabled to transmit data. The standard interval value of the communication module represents the standard transmission quality interval of the corresponding downlink channel when the communication module is enabled to transmit the downlink service data stream. The second standard interval value represents the standard transmission quality interval of the corresponding channel when the server gateway enables the third communication module to transmit the downlink service data to be sent.

[0106] The second transmission quality data is compared with the second standard interval value to obtain a comparison result of the second transmission quality data and the second standard interval value. Based on the comparison result, a second switching instruction is generated and sent to the server gateway, and the second switching instruction is used to instruct the server gateway to switch the third communication module to the fourth communication module.

[0107] In this embodiment, for periodic downlink services, the mobile gateway can monitor the second transmission quality data of the downlink channel, and based on the comparison result with the second standard interval value, generate a second switching instruction and send it to the server gateway. The server gateway only needs to receive the second switching instruction to perform the switching action of the communication module and switch the third communication module to the fourth communication module.

[0108] In one embodiment, generating a second switching instruction based on the comparison result includes:

[0109] If it is determined based on the comparison result that the second transmission quality data is less than the lower limit of the second standard interval value, a communication module having a transmission reliability level greater than that of the second communication module is determined as the second communication module according to a pre-stored second mapping relationship, and the second switching instruction is generated;

[0110] Alternatively, if it is determined that the second transmission quality data is greater than the upper limit of the second standard interval value, a communication module with a transmission reliability level lower than that of the second communication module is determined as the second communication module according to the second mapping relationship, and the second switching instruction is generated.

[0111] The second mapping relationship includes the standard interval value of the downlink channel corresponding to the uplink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

[0112] The present application also provides a communication module switching method, the execution subject can be a server gateway, the communication module switching method can be independently applied to electronic devices with data processing capabilities, such as terminal devices, servers, etc., and can also be implemented by the cooperation between terminal devices and servers; wherein the terminal device can be a computer, a smart phone, a personal digital assistant (PDA), etc.; the server can be an application server or a Web server. In actual deployment, the server can be an independent server or a cluster server. Figure 4 As shown, the switching method of the communication module includes:

[0113] Step 201, in response to a second switching instruction from the mobile gateway or a third switching instruction generated by itself, the third communication module is switched to the fourth communication module; wherein the second switching instruction or the third switching instruction is generated based on a comparison result of second transmission quality data and a second standard interval value, the second transmission quality data represents the transmission quality of the downlink channel corresponding to the downlink service data to be sent by the currently enabled third communication module, and the second standard interval value represents the standard transmission quality interval of the downlink channel corresponding to the enabled third communication module to transmit the downlink service data to be sent.

[0114] It should be noted that the server gateway also has a communication module, which may include a 5G (2.6G band) communication module, a 5G (4.9G band) communication module, a 4G (TDD band) communication module, and a Wi-Fi communication module. The server gateway switches the communication module to switch the downlink channel transmission scheme, thereby improving the transmission reliability of the downlink service data to be sent.

[0115] The instruction for instructing the server gateway to switch the communication module may be generated by the mobile terminal gateway or by the server gateway itself. To make a distinction, the switching instruction generated by the mobile terminal gateway is called the second switching instruction, and the switching instruction generated by the server gateway is called the third switching instruction.

[0116] The second transmission quality data represents the transmission quality when the downlink channel enables the third communication module to transmit data.

[0117] In this embodiment, the quality information of the downlink channel is used as the basis for switching the communication module to realize the switching of the data transmission scheme. When the channel quality deteriorates, the transmission scheme can be switched in time. Compared with the traditional link detection technology, the response is faster and the packet loss caused by link interruption can be avoided. Moreover, compared with the link detection technology, it does not need to send a large number of detection messages, and occupies less bandwidth. In addition, compared with the current dual-transmission selection and reception commonly used transmission scheme that needs to be bound to the business flow, the present application can select a suitable transmission scheme according to the real-time channel quality corresponding to the transmission scheme supported by the downlink business data to be sent.

[0118] In one embodiment, the communication module switching method further includes:

[0119] If it is determined that the downlink service data to be sent is obtained, then obtaining the second transmission quality data of the downlink channel corresponding to when the third communication module is currently enabled to transmit data;

[0120] The second transmission quality data is compared with a second standard interval value, and a third switching instruction is generated based on the comparison result.

[0121] Here, the case where the server gateway itself generates the third switching instruction is similar to the process where the mobile gateway generates the first switching instruction and the mobile gateway generates the second switching instruction. When the server gateway obtains the downlink service data to be sent, it obtains the second transmission quality data of the downlink channel corresponding to the current enabling of the third communication module to transmit data, and generates the third switching instruction based on the comparison result of the second transmission quality data and the second standard interval value.

[0122] In one embodiment, the obtaining of the second transmission quality data of the downlink channel corresponding to the downlink data to be sent that is currently enabled by the third communication module includes:

[0123] Acquire third transmission quality data of the uplink channel sent by the mobile gateway;

[0124] Based on the third transmission quality data, second transmission quality data of the downlink channel is obtained.

[0125] Here, since the TDD frequency band (the aforementioned communication modules / transmission schemes all have this frequency band) has channel reciprocity, based on this principle, the third transmission quality data of the uplink channel sent by the mobile gateway can be directly used as the second transmission quality data of the downlink channel.

[0126] In one embodiment, obtaining the third transmission quality data of the uplink channel sent by the mobile gateway includes: obtaining uplink service data sent by the mobile gateway, the uplink service data carrying the third transmission quality data of the uplink channel.

[0127] Here, the uplink service data can be encapsulated using the TAN (Time Aware Network) protocol. Some bits are usually reserved in the TAN frame header, such as bits 27 to 32, and these reserved bits can be used to store the third transmission quality data of the uplink channel. In this way, the mobile gateway does not need to send a data instruction carrying the third transmission quality data of the uplink channel. The identification information of the bits corresponding to the encapsulation of the uplink service data using the TAN protocol is shown in Table 1:

[0128] Table 1

[0129] RSRP Bits 27-29 SNR 30-32 bits TAN module did not receive the corresponding information 000 TAN module did not receive the corresponding information 000 >-85dBm 001 >25 001 -85~-95dBm 010 16-25 010 -95~-105dBm 011 11-15 011 =-105~-115dBm 100 3-10 100 <-115dBm 101 <3 101

[0130] In one embodiment, generating a third switching instruction based on the comparison result includes:

[0131] If it is determined based on the comparison result that the second transmission quality data is less than the lower limit of the second standard interval value, a communication module having a transmission reliability level greater than that of the third communication module is determined as a fourth communication module according to a pre-stored second mapping relationship, and the third switching instruction is generated;

[0132] Alternatively, if it is determined based on the comparison result that the second transmission quality data is greater than the upper limit value of the second standard interval value, the communication module with a transmission reliability level lower than that of the third communication module is determined as the fourth communication module according to the second mapping relationship, and the third switching instruction is generated.

[0133] The second mapping relationship includes the standard interval value of the downlink channel corresponding to the downlink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

[0134] Here, based on the comparison result, if it is determined that the second transmission quality data is less than the lower limit of the second standard interval value, the communication module with a transmission reliability level greater than the third communication module in the second mapping relationship is determined as the fourth communication module. If there are multiple communication modules with a transmission reliability level greater than the third communication module, the communication module with the closest transmission reliability level is used as the fourth communication module. In this case, the transmission quality of the corresponding downlink channel is poor. When the transmission quality of the downlink channel is poor, it is switched to the fourth communication module with a higher transmission reliability level, and then the downlink service data to be sent is transmitted through the fourth communication module, thereby reducing the packet loss rate.

[0135] If it is determined based on the comparison result that the second transmission quality data is greater than the upper limit value of the second standard interval value, the communication module with a transmission reliability level less than the third communication module in the second mapping relationship is determined as the fourth communication module. If there are multiple communication modules with a transmission reliability level less than the third communication module, the communication module with the closest transmission reliability level is used as the fourth communication module. In this case, the transmission quality of the corresponding downlink channel is better, and the transmission reliability can still meet the requirements when switching to the fourth communication module with a lower transmission reliability level. In this case, switching to the fourth communication module with lower transmission reliability can reduce the occupation of bandwidth resources while the transmission reliability meets the requirements.

[0136] In one embodiment, if it is determined based on the comparison result that the second transmission quality data is greater than or equal to the lower limit of the second standard interval value and less than or equal to the upper limit of the second standard interval value, the downlink service data to be sent is transmitted through the third communication module.

[0137] Here, if the second transmission quality data falls within the second standard interval value, it indicates that the transmission reliability of the downlink channel when the third communication module is currently enabled to transmit data meets the requirements. In this case, the server gateway does not need to switch the communication module.

[0138] The second transmission quality data is greater than or equal to the lower limit value of the second standard interval value, and less than or equal to the upper limit value of the second standard interval value, indicating that the transmission reliability when enabling the third communication module to transmit the downlink service to be sent meets the requirements. Therefore, the third communication module can continue to be enabled.

[0139] The present application is further described in detail below in conjunction with application examples.

[0140] Application example 1: This embodiment of the present application provides a method for switching a communication module, taking the switching process of the transmission scheme of an uplink channel as an example, including the following steps:

[0141] The mobile gateway is pre-configured with a transmission scheme table corresponding to the uplink service data flow, as shown in Table 2:

[0142] Table 2

[0143]

[0144] Here, if Figure 5As shown, the mobile terminal includes a first transmission module and a first switching module. The first switching module can periodically obtain the quality information of the uplink channel monitored in real time from the first transmission module, and update the data in the uplink channel quality information table. After the mobile gateway receives the uplink service data to be sent, it sends it to the first switching module. The first switching module determines whether it is necessary to switch the uplink transmission scheme based on the data in the uplink channel quality information table. If switching is required, the switched transmission scheme is updated to the transmission scheme table. The first switching module sends the switching information of the transmission scheme to the first transmission module. The switching information of the transmission scheme is, for example, to switch the first communication module to the second communication module. The first transmission module sends the uplink service data through the second communication module.

[0145] When the mobile gateway obtains the uplink service data to be sent, the obtained first transmission quality data can be understood as the latest data of the uplink channel transmission quality.

[0146] The uplink service data to be sent is the service data sent by the UE (User Equipment) device to the mobile terminal gateway, so as to obtain the corresponding data from the server gateway through the mobile terminal gateway.

[0147] Application example 2: Figure 6 As shown, an embodiment of the present application provides a switching method for a communication module, taking the switching process of the transmission scheme of a downlink channel as an example, comprising the following steps:

[0148] The mobile gateway pre-configures a downlink service cycle table, which contains the cycle information of the downlink service flow and the corresponding current transmission scheme. The implementation of each transmission scheme depends on the activation of the corresponding communication module.

[0149] The mobile terminal gateway pre-stores a downlink service periodic table, which stores the communication modules and periodic information currently enabled by the periodic downlink service. The downlink service periodic table is shown in Table 3:

[0150] Table 3

[0151]

[0152] Before sending the downlink service to be sent, the mobile gateway sends the switching standard of the transmission scheme corresponding to the service to be sent to the first switching module in advance. The transmission modules such as the 5G module module send the channel quality information monitored in real time to the switching module. The switching module determines whether to switch the transmission scheme corresponding to the downlink service to be sent according to the channel quality information and the switching standard. If the third communication module needs to be switched to the fourth communication module, the mobile gateway sends a data frame containing the switching information of the transmission scheme to the server gateway, and updates the downlink service periodic table. The server gateway switches the transmission scheme according to the switching information sent by the mobile terminal, and sends the downlink service to be sent according to the switched transmission scheme.

[0153] The downlink service data to be sent is the service data sent by other electronic devices to the server gateway, so as to obtain corresponding data from the UE device connected to the mobile gateway through the server gateway.

[0154] Application example 3: The embodiment of the present application provides a method for switching a communication module, taking the switching process of the transmission scheme of the downlink channel as an example, including the following steps:

[0155] A downlink transmission scheme table is pre-configured in the server gateway, and the table contains transmission schemes corresponding to different downlink service flows. The mobile gateway periodically sends data frames containing uplink channel quality information to the server gateway. After the server gateway receives the uplink channel quality, the second switching module estimates the downlink channel quality based on the uplink channel quality, and updates the data in the downlink channel quality information table. The second transmission module receives the downlink service flow to be sent. The second transmission module sends the downlink service information to the switching module. The second switching module determines whether to switch the downlink transmission scheme based on the downlink service information and the downlink channel quality information. If switched, the downlink transmission scheme table is updated accordingly. The second switching module sends the switching information of the downlink transmission scheme to the second transmission module. The second transmission module switches the transmission scheme according to the switching information sent by the second switching module, and sends the downlink service data to be sent according to the switched transmission scheme.

[0156] In the above three application examples, the quality information of the channel is used as the basis for switching the communication module to realize the switching of the data transmission scheme. When the channel quality deteriorates, the transmission scheme can be switched in time. Compared with the traditional link detection technology, the response is faster and the packet loss caused by link interruption can be avoided. Moreover, compared with the link detection technology, it does not need to send a large number of detection messages, and occupies less bandwidth. In addition, compared with the current dual-transmission and selective reception transmission scheme that needs to be bound to the business flow, the present application can select a suitable transmission scheme according to the real-time channel quality corresponding to the transmission scheme supported by the business data to be sent.

[0157] In one embodiment, Figure 8As shown, the first transmission module no longer directly encapsulates the uplink channel quality information into a data frame and sends it to the server gateway, but adds the uplink channel quality information to the reserved bit position of the TAN data frame, and sends the uplink service data frame through the first TAN module while sending the uplink channel quality information to the second TAN module of the server gateway. The second TAN module parses the channel quality information and transmits it to the second switching module. The second switching module sends the switching information of the downlink transmission scheme to the second transmission module. The second transmission module switches the transmission scheme according to the switching information sent by the second switching module, and sends the downlink service data to be sent according to the switched transmission scheme.

[0158] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a switching device of a communication module, which is applied to a mobile terminal gateway, such as Fig. 9 As shown, the switching device of the communication module corresponds to the switching method of the communication module mentioned above, and each step in the switching method embodiment of the communication module mentioned above is also completely applicable to the switching device embodiment of the communication module.

[0159] The device 900 includes: a data acquisition module 901, a first instruction generation module 902 and a first module switching module 903, the data acquisition module 901 is used to obtain the first transmission quality data of the channel corresponding to the uplink service data to be sent that is currently enabled by the first communication module to be transmitted, if it is determined that the uplink service data to be sent is obtained, and the uplink service data to be sent is service data sent from the mobile terminal gateway to the server gateway; the first instruction generation module 902 is used to compare the first transmission quality data with the first standard interval value, and generate a first switching instruction based on the comparison result; the first module switching module 903 is used to switch the first communication module to the second communication module based on the first switching instruction; wherein the first standard interval value represents the standard transmission quality interval of the uplink channel corresponding to when the first communication module is enabled to transmit the uplink service data to be sent.

[0160] In one embodiment, the first instruction generation module 902 generates a first switching instruction based on the comparison result, including: if it is determined based on the comparison result that the first transmission quality data is less than the lower limit value of the first standard interval value, then according to the pre-stored first mapping relationship, the communication module with a transmission reliability level greater than the first communication module is determined as the second communication module, and the first switching instruction is generated; or, if it is determined that the first transmission quality data is greater than the upper limit value of the first standard interval value, then according to the first mapping relationship, the communication module with a transmission reliability level less than the first communication module is determined as the second communication module, and the first switching instruction is generated; wherein the first mapping relationship includes the standard interval value of the uplink channel corresponding to the uplink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

[0161] In one embodiment, the switching device 900 of the communication module also includes a second instruction generating module 904, which is used to determine the downlink business data to be sent by the server gateway based on a pre-stored downlink business periodic table; obtain the second transmission quality data of the downlink channel corresponding to the server gateway when the third communication module is currently enabled to transmit data; compare the second transmission quality data with the second standard interval value, generate a second switching instruction based on the comparison result and send it to the server gateway, and the second switching instruction is used to instruct the server gateway to switch the third communication module to a fourth communication module; wherein the second standard interval value represents the standard transmission quality interval of the channel corresponding to the server gateway when the third communication module is enabled to transmit the downlink business data to be sent.

[0162] In actual application, the data acquisition module 901, the first instruction generation module 902, the first module switching module 903 and the second instruction generation module 904 can be implemented by a processor in the communication module switching device 900. Of course, the processor needs to run the computer program in the memory to implement its function.

[0163] It should be noted that: the switching device of the communication module provided in the above embodiment only uses the division of the above program modules as an example when switching the communication module. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the switching device of the communication module provided in the above embodiment and the switching method embodiment of the communication module belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0164] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a switching device of a communication module, which is applied to a server gateway, such as Fig.10As shown, the switching device of the communication module corresponds to the switching method of the communication module mentioned above, and each step in the switching method embodiment of the communication module mentioned above is also completely applicable to the switching device embodiment of the communication module.

[0165] The device 1000 includes a module switching module 1001, which is used to switch the third communication module to the fourth communication module in response to a second switching instruction from a mobile gateway or a third switching instruction generated by itself; wherein the second switching instruction or the third switching instruction is generated based on a comparison result of second transmission quality data and a second standard interval value, the second transmission quality data represents the transmission quality of the downlink channel corresponding to the currently enabled third communication module to transmit the downlink service data to be sent, and the second standard interval value represents the standard transmission quality interval of the downlink channel corresponding to the enabled third communication module to transmit the downlink service data to be sent.

[0166] In one embodiment, the switching device 1000 of the communication module also includes a third instruction generating module 1002, which is used to obtain the second transmission quality data of the downlink channel corresponding to the current enabling of the third communication module to transmit data if it is determined that the downlink service data to be sent is obtained; compare the second transmission quality data with the second standard interval value, and generate a third switching instruction based on the comparison result.

[0167] In one embodiment, the third instruction generation module 1002 obtains the second transmission quality data of the downlink channel corresponding to the downlink data to be sent by the currently enabled third communication module, including: obtaining the third transmission quality data of the uplink channel sent by the mobile gateway; based on the third transmission quality data, obtaining the second transmission quality data of the downlink channel.

[0168] In one embodiment, the third instruction generation module 1002 obtains third transmission quality data of the uplink channel sent by the mobile gateway, including: obtaining uplink service data sent by the mobile gateway, the uplink service data carrying the third transmission quality data of the uplink channel.

[0169] In one embodiment, the third instruction generation module 1002 generates a third switching instruction based on the comparison result, including: if it is determined based on the comparison result that the second transmission quality data is less than the lower limit value of the second standard interval value, then according to the pre-stored second mapping relationship, the communication module with a transmission reliability level greater than the third communication module is determined as the fourth communication module, and the third switching instruction is generated; or, if it is determined based on the comparison result that the second transmission quality data is greater than the second standard interval value, then according to the second mapping relationship, the communication module with a transmission reliability level less than the third communication module is determined as the fourth communication module, and the third switching instruction is generated; wherein the second mapping relationship includes the standard interval value of the downlink channel corresponding to the downlink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

[0170] In actual application, the module switching module 1001 and the third instruction generating module 1002 can be implemented by a processor in the communication module switching device 1000. Of course, the processor needs to run the computer program in the memory to implement its function.

[0171] It should be noted that: the switching device of the communication module provided in the above embodiment only uses the division of the above program modules as an example when switching the communication module. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the switching device of the communication module provided in the above embodiment and the switching method embodiment of the communication module belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0172] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a mobile gateway. Fig.11 Only an exemplary structure of the mobile gateway is shown, not the entire structure, and it can be implemented as needed. Fig.11 Partial or complete structure shown.

[0173] like Fig.11 As shown, the mobile gateway 1100 provided in the embodiment of the present application includes: at least one processor 1101, a memory 1102, a user interface 1103 and at least one network interface 1104. The various components in the mobile gateway 1100 are coupled together through a bus system 1105. It can be understood that the bus system 1105 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1105 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.11Various buses are labeled as bus system 1105.

[0174] The user interface 1103 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0175] The memory 1102 in the embodiment of the present application is used to store various types of data to support the operation of the mobile gateway. Examples of such data include: any computer program used to operate on the mobile gateway.

[0176] The switching method of the communication module disclosed in the embodiment of the present application can be applied to the processor 1101, or implemented by the processor 1101. The processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the switching method of the communication module can be completed by the hardware integrated logic circuit or software instructions in the processor 1101. The above-mentioned processor 1101 can be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1101 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 1102, and the processor 1101 reads the information in the memory 1102, and completes the steps of the switching method of the communication module provided in the embodiment of the present application in combination with its hardware.

[0177] In an exemplary embodiment, the mobile gateway may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0178] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a mobile gateway. Fig.11 Only an exemplary structure of the mobile gateway is shown, not the entire structure, and it can be implemented as needed. Fig.11 Partial or complete structure shown.

[0179] like Fig.12 As shown, the mobile gateway 1200 provided in the embodiment of the present application includes: at least one processor 1201, a memory 1202, a user interface 1203 and at least one network interface 1204. The various components in the mobile gateway 1200 are coupled together through a bus system 1205. It can be understood that the bus system 1205 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1205 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.12 Various buses are labeled as bus system 1205.

[0180] The user interface 1203 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0181] The memory 1202 in the embodiment of the present application is used to store various types of data to support the operation of the mobile terminal gateway. Examples of such data include: any computer program used to operate on the mobile terminal gateway.

[0182] The switching method of the communication module disclosed in the embodiment of the present application can be applied to the processor 1201, or implemented by the processor 1201. The processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the switching method of the communication module can be completed by the hardware integrated logic circuit or software instructions in the processor 1201. The above-mentioned processor 1201 can be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1201 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 1202, and the processor 1201 reads the information in the memory 1202, and completes the steps of the switching method of the communication module provided in the embodiment of the present application in combination with its hardware.

[0183] In an exemplary embodiment, the server gateway may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0184] It can be understood that the memory 1102, 1202 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0185] In an exemplary embodiment, the embodiment of the present application further provides a computer storage medium, which may be a computer-readable storage medium, for example, a memory 1102 storing a computer program, and the computer program may be executed by a processor 1101 of a mobile gateway to complete the steps described in the method of the embodiment of the present application; for example, a memory 1202 storing a computer program, and the computer program may be executed by a processor 1201 of a server gateway to complete the steps described in the method of the embodiment of the present application.

[0186] The computer readable storage medium may be a memory such as ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0187] In an exemplary embodiment, the embodiment of the present application also provides a computer program product, including a computer program, which can be executed by the processor 1101 of the mobile gateway or the processor 1201 of the server gateway to complete the steps described in the method of the embodiment of the present application.

[0188] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0189] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0190] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A communication module switching method, applied to a mobile gateway, characterized in that: The method comprises: If it is determined that the uplink service data to be sent is obtained, then obtaining the first transmission quality data of the uplink channel corresponding to the current enabling of the first communication module to transmit data, wherein the uplink service data to be sent is service data sent from the mobile terminal gateway to the server gateway; comparing the first transmission quality data with a first standard interval value, and generating a first switching instruction based on the comparison result; Switching the first communication module to a second communication module based on the first switching instruction; The first standard interval value represents a standard transmission quality interval of an uplink channel corresponding to when the first communication module is enabled to transmit the uplink service data to be sent.

2. The method according to claim 1, characterized in that: The generating a first switching instruction based on the comparison result comprises: If it is determined based on the comparison result that the first transmission quality data is less than the lower limit of the first standard interval value, a communication module having a transmission reliability level greater than that of the first communication module is determined as a second communication module according to a pre-stored first mapping relationship, and the first switching instruction is generated; Alternatively, if it is determined that the first transmission quality data is greater than the upper limit of the first standard interval value, a communication module having a transmission reliability level lower than that of the first communication module is determined as a second communication module according to the first mapping relationship, and the first switching instruction is generated; The first mapping relationship includes the standard interval value of the uplink channel corresponding to the uplink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

3. The method according to claim 1, characterized in that The method further comprises: Determining the downlink service data to be sent by the server gateway based on a pre-stored downlink service periodic table; Acquire second transmission quality data of the downlink channel corresponding to when the server gateway currently enables the third communication module to transmit data; Comparing the second transmission quality data with a second standard interval value, generating a second switching instruction based on the comparison result and sending the second switching instruction to the server gateway, wherein the second switching instruction is used to instruct the server gateway to switch the third communication module to a fourth communication module; The second standard interval value represents a standard transmission quality interval of a channel corresponding to when the server gateway enables the third communication module to transmit the downlink service data to be sent.

4. A communication module switching method, applied to a server gateway, characterized in that: The method comprises: In response to a second switching instruction from the mobile terminal gateway or a third switching instruction generated by itself, switching the third communication module to a fourth communication module; Among them, the second switching instruction or the third switching instruction is generated based on the comparison result of the second transmission quality data and the second standard interval value, the second transmission quality data represents the transmission quality of the downlink channel corresponding to the downlink service data to be sent by the currently enabled third communication module, and the second standard interval value represents the standard transmission quality interval of the downlink channel corresponding to the enabled third communication module to transmit the downlink service data to be sent.

5. The method according to claim 4, characterized in that The method further comprises: If it is determined that the downlink service data to be sent is obtained, then obtaining the second transmission quality data of the downlink channel corresponding to when the third communication module is currently enabled to transmit data; The second transmission quality data is compared with a second standard interval value, and a third switching instruction is generated based on the comparison result.

6. The method according to claim 5, characterized in that The obtaining of second transmission quality data of a downlink channel corresponding to the downlink data to be sent that is currently enabled by the third communication module includes: Acquire third transmission quality data of the uplink channel sent by the mobile gateway; Based on the third transmission quality data, second transmission quality data of the downlink channel is obtained.

7. The method according to claim 6, characterized in that The obtaining the third transmission quality data of the uplink channel sent by the mobile gateway includes: The uplink service data sent by the mobile gateway is acquired, where the uplink service data carries third transmission quality data of the uplink channel.

8. The method according to claim 5, characterized in that The generating a third switching instruction based on the comparison result comprises: If it is determined based on the comparison result that the second transmission quality data is less than the lower limit of the second standard interval value, a communication module having a transmission reliability level greater than that of the third communication module is determined as a fourth communication module according to a pre-stored second mapping relationship, and the third switching instruction is generated; Alternatively, if it is determined based on the comparison result that the second transmission quality data is greater than the upper limit value of the second standard interval value, a communication module having a transmission reliability level lower than that of the third communication module is determined as a fourth communication module according to the second mapping relationship, and the third switching instruction is generated; The second mapping relationship includes the standard interval value of the downlink channel corresponding to the downlink service data to be sent when each communication module is enabled to transmit data, and the transmission reliability level when transmitting data through each communication module.

9. A switching device for a communication module, applied to a mobile gateway, characterized in that: The device comprises: A data acquisition module, configured to acquire first transmission quality data of a channel corresponding to the uplink service data to be sent that is currently enabled by the first communication module if it is determined that the uplink service data to be sent is acquired, wherein the uplink service data to be sent is service data sent from the mobile terminal gateway to the server gateway; A first instruction generating module, configured to compare the first transmission quality data with a first standard interval value, and generate a first switching instruction based on the comparison result; A first module switching module, configured to switch the first communication module to a second communication module based on the first switching instruction; The first standard interval value represents a standard transmission quality interval of an uplink channel corresponding to when the first communication module is enabled to transmit the uplink service data to be sent.

10. A switching device for a communication module, applied to a server gateway, characterized in that: The device comprises: A second module switching module, configured to switch the third communication module to a fourth communication module in response to a second switching instruction from the mobile terminal gateway or a third switching instruction generated by itself; Among them, the second switching instruction or the third switching instruction is generated based on the comparison result of the second transmission quality data and the second standard interval value, the second transmission quality data represents the transmission quality of the downlink channel corresponding to the downlink service data to be sent by the currently enabled third communication module, and the second standard interval value represents the standard transmission quality interval of the downlink channel corresponding to the enabled third communication module to transmit the downlink service data to be sent.

11. A mobile gateway, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 3 when running a computer program.

12. A server gateway, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 4 to 8 when running a computer program.

13. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

14. A computer program product having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.