Communication method and apparatus

By detecting and optimizing the communication parameters between the electronic equipment and the data communication server, the data communication abnormality problem that electronic equipment encounters after accessing the communication network is solved, and the communication quality is improved.

CN115412955BActive Publication Date: 2025-07-22LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211056664.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-07-22
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

After electronic devices are connected to the communication network, data communication may occur, affecting normal communication.

Method used

By detecting the communication parameters between the electronic equipment, data communication server and the electronic equipment and the data communication server, obtain the detection results, and optimize the data communication quality based on the results, including switching the communication network or adjusting the communication parameters to resolve abnormalities.

Benefits of technology

Effectively reduce the abnormal time of data communication and improve the data communication quality of electronic equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412955B_ABST
    Figure CN115412955B_ABST
Patent Text Reader

Abstract

The present application provides a communication method and apparatus. The method includes: when it is determined that there is an abnormal data communication in an electronic device, detecting communication parameters corresponding to at least one of the electronic device, a data communication server, and a data communication service between the electronic device and the data communication server, so as to obtain at least one detection result; optimizing the data communication quality of the electronic device in a corresponding processing manner based on the detection result; wherein the data communication server can directly provide a data communication service for the electronic device, or the data communication server depends on a communication device capable of providing a data communication service for it to provide a data communication service for the electronic device. The solution of the present application can reduce the time when the electronic device has an abnormal data communication and improve the data communication quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a communication method and apparatus. Background Art

[0002] With the development of network communication technologies, there can be multiple communication networks that an electronic device can choose to access. For example, taking a mobile phone as an example, the mobile phone can access a fifth-generation mobile communication (5G) network or a fourth-generation mobile communication (4G) network, etc.

[0003] After the electronic device accesses a certain communication network, data communication anomalies often occur due to various reasons, which may affect the normal data communication of the electronic device. Summary of the Invention

[0004] This application provides a communication method and apparatus.

[0005] Among them, a communication method includes:

[0006] When it is determined that there is a data communication anomaly in the electronic device, detecting at least one of the communication parameters corresponding to the electronic device, the data communication server, and the data communication service between the electronic device and the data communication server to obtain at least one detection result;

[0007] Based on the detection result, optimizing the data communication quality of the electronic device in a corresponding processing manner;

[0008] Among them, the data communication server can directly provide data communication services to the electronic device, or the data communication server relies on a communication device that can provide data communication services to it to provide data communication services to the electronic device.

[0009] In a possible implementation manner, detecting the communication parameters corresponding to the data communication service between the electronic device and the data communication server includes at least one of the following:

[0010] Detecting at least one physical layer parameter of the communication network between the electronic device and the data communication server;

[0011] Detecting the encoding and decoding parameters corresponding to the data encoding and decoding service between the electronic device and the data communication server;

[0012] Detecting the compression parameters corresponding to the data compression service between the electronic device and the data communication server.

[0013] In another possible implementation manner, detecting the physical layer parameters corresponding to the communication network between the electronic device and the data communication server to obtain at least one detection result includes:

[0014] Obtain a single parameter value of each physical layer parameter of the communication network within a preset time period;

[0015] If the single parameter value exceeds the respective first threshold, determine that the access layer of the communication network is abnormal; and / or,

[0016] If the single parameter value does not exceed the respective first threshold, determine that the access layer of the communication network is normal;

[0017] Wherein, the physical layer parameter includes at least one of a signal quality related parameter, an error rate related parameter, and a cell stability related parameter.

[0018] In another possible implementation, detect the physical layer parameters corresponding to the communication network between the electronic device and the data communication server to obtain at least one detection result, including:

[0019] Obtain a comprehensive parameter value obtained based on the parameter values of each physical layer parameter of the communication network and the weights corresponding to the physical layer parameters within a preset time period;

[0020] If the comprehensive parameter value exceeds the second threshold, determine that the access layer of the communication network is abnormal; and / or,

[0021] If the comprehensive parameter value does not exceed the second threshold, determine that the access layer of the communication network is normal;

[0022] Wherein, the physical layer parameter includes at least one of a signal quality related parameter, an error rate related parameter, and a cell stability related parameter.

[0023] In another possible implementation, optimize the data communication quality of the electronic device based on the detection result in a corresponding processing manner, including at least one of the following:

[0024] If the detection result indicates that the access layer of the communication network is abnormal, switch the communication network between the electronic device and the data communication server from the current first communication network to a second communication network, and the second communication network is different from the first communication network at least in terms of network mode;

[0025] If the detection result indicates that the access layer of the communication network is normal, control the electronic device to re-register the current first communication network.

[0026] In another possible implementation, switching the communication network between the electronic device and the data communication server from the current first communication network to a second communication network includes:

[0027] Obtain the network feature information of the communication network searched by the electronic device, and access the second communication network based on the network feature information to switch the first communication network to the second communication network.

[0028] In another possible implementation, detect the communication parameters of the electronic device to obtain at least one detection result, including at least one of the following:

[0029] Detect the initialization parameters of the first communication module of the electronic device, and determine the detection result of whether the electronic device itself has normal communication or abnormal communication based on the initialization parameters. The first communication module is the module currently performing the communication task;

[0030] Detect the communication network quality between the electronic device and other data communication servers to obtain the detection result of whether the electronic device itself has normal communication or abnormal communication.

[0031] In another possible implementation, detect the communication parameters of the data communication server to obtain at least one detection result, including at least one of the following:

[0032] Detect the initialization parameters of the second communication module of the data communication server, and determine the detection result of whether the data communication server itself has normal communication or abnormal communication based on the initialization parameters. The second communication module is the module currently performing the communication task;

[0033] Detect the communication network quality between the data communication server and the communication device to obtain the detection result of whether the data communication server itself has normal communication or abnormal communication.

[0034] In another possible implementation, determine that the electronic device has abnormal data communication, including at least one of the following:

[0035] It is detected that the electronic device has abnormal packet sending and receiving;

[0036] Determine that the electronic device has packet sending and receiving delays;

[0037] Determine that the communication data update between the electronic device and the data communication server is abnormal.

[0038] Wherein, a communication device includes:

[0039] A parameter detection unit, configured to detect communication parameters corresponding to at least one of the electronic device, the data communication server, and the data communication service between the electronic device and the data communication server when it is determined that there is an abnormal data communication in the electronic device, so as to obtain at least one detection result, wherein the data communication server can directly provide data communication services to the electronic device, or the data communication server relies on a communication device capable of providing data communication services to it to provide data communication services to the electronic device;

[0040] A communication optimization unit, configured to optimize the data communication quality of the electronic device in a corresponding processing manner based on the detection result.

[0041] As can be seen from the above, in the embodiment of the present application, if it is determined that there is an abnormal data communication in the electronic device, the communication parameters of the electronic device, the communication parameters of the data communication server that directly or indirectly provides data communication services for the electronic device, and at least one of the communication parameters of the data communication service between the electronic device and the data communication server will be detected, and the data communication quality of the electronic device will be optimized according to the appropriate processing method of the detection result, so that the time of abnormal data communication existing in the electronic device can be effectively reduced, and the data communication quality of the electronic device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0043] Figure 1 FIG. shows a schematic flowchart of a communication method provided by an embodiment of the present application;

[0044] Figure 2 FIG. shows another schematic flowchart of a communication method provided by an embodiment of the present application;

[0045] Figure 3 FIG. shows another schematic flowchart of a communication method provided by an embodiment of the present application;

[0046] Figure 4 FIG. shows another schematic flowchart of a communication method provided by an embodiment of the present application;

[0047] Figure 5 FIG. shows a schematic structural diagram of a communication device provided by an embodiment of the present application;

[0048] Figure 6 FIG. shows a schematic architecture diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0050] As Figure 1 shown, it shows a schematic flowchart of a communication method provided by an embodiment of the present application. The method of this embodiment is applied to an electronic device, and the electronic device can be an electronic device such as a mobile phone or a tablet computer that can access different types of communication networks.

[0051] The method of this embodiment may include:

[0052] S101, when it is determined that there is an abnormal data communication in the electronic device, detect at least one of the communication parameters corresponding to the electronic device, the data communication server, and the data communication service between the electronic device and the data communication server, so as to obtain at least one detection result.

[0053] Among them, the situation that there is an abnormal data communication in the electronic device may be a data communication situation that does not conform to normal communication in the electronic device.

[0054] For example, determining that there is an abnormal data communication in the electronic device may be at least one of the following situations:

[0055] It is detected that there is an abnormal packet reception or transmission in the electronic device;

[0056] It is determined that there is a packet reception or transmission delay in the electronic device;

[0057] It is determined that there is an abnormal update of the communication data between the electronic device and the data communication server.

[0058] Among them, the abnormal packet reception or transmission means that there is an abnormal packet reception or transmission. For example, it is detected that there is an abnormal reception or transmission of Transmission Control Protocol (TCP) / Internet Protocol (IP) packets. For example, there is a loss of TCP / IP packets (similarly for other protocol packets). For example, there is only an uplink TCP / IP packet between the electronic device and the data communication server, but no downlink TCP / IP packet is transmitted.

[0059] The packet reception or transmission delay means that although packets can be normally received and sent, there is a delay in packet reception or transmission, resulting in a delay in data access and other situations.

[0060] The communication data update anomaly may be an anomaly such as a deviation in the update frequency, update duration, or update date of relevant data that needs to be updated regularly between the electronic device and the data communication server.

[0061] Among them, the data communication server can directly provide data communication services to the electronic device; alternatively, the data communication server relies on a communication device that can provide data communication services to the data communication server to provide data communication services to the electronic device.

[0062] For example, the data communication server can be a base station that provides various types of mobile communication networks. For example, a base station in a communication network based on the 5th Generation Mobile Communication Technology (5G) or the 4th Generation mobile communication technology (4G). In this case, the base station can directly provide data communication services of the 5G or 4G communication network to the electronic device.

[0063] Another example is that the data communication server can be a router or an edge server, etc. In this case, the data communication server needs to rely on communication devices such as base stations accessed by the router or edge server to provide data communication services to the electronic device, so that the electronic device can access the communication network corresponding to the communication device.

[0064] In this application, the communication parameters of the electronic device can be relevant parameters that affect the communication quality of the electronic device. Similarly, the communication parameters of the data communication server are also relevant parameters that can affect the communication quality of the electronic device.

[0065] The communication parameters corresponding to the data communication service between the electronic device and the data communication server can include relevant parameters that can affect the communication quality between the electronic device and the data communication server. For example, physical layer related parameters, etc., will be described in combination with possible situations later and will not be elaborated here.

[0066] Among them, the detection result can represent the parameter value of at least one of the above several communication parameters obtained.

[0067] S102. Optimize the data communication quality of the electronic device in a corresponding processing manner based on the detection result.

[0068] It can be understood that since the detection results can reflect the main reasons affecting abnormal data communication, based on the types and values of the communication parameters in the detection results, the optimization methods will also be different, which can be specifically set according to actual needs.

[0069] As can be seen from the above, in the embodiments of the present application, if it is determined that there is abnormal data communication in the electronic device, the communication parameters of the electronic device, the communication parameters of the data communication server that directly or indirectly provides data communication services for the electronic device, and at least one of the communication parameters of the data communication service between the electronic device and the data communication server will be detected, and the data communication quality of the electronic device will be optimized according to the appropriate processing method of the detection results, thereby effectively reducing the abnormal data communication existing in the electronic device and improving the data communication quality of the electronic device.

[0070] For the sake of easy understanding, some possible situations of the detected communication parameters in the case where there is abnormal data communication in the electronic device will be described below.

[0071] First, the communication parameters corresponding to the data communication service between the electronic device and the data communication server will be described.

[0072] The communication parameters corresponding to the data communication service between the electronic device and the data communication server can be communication parameters in response to the communication network connection status and data transmission situation between the electronic device and the data communication server.

[0073] For example, the detected communication parameters corresponding to the data communication service between the electronic device and the data communication server can include at least one of the following:

[0074] Detect at least one physical layer parameter of the communication network between the electronic device and the data communication server;

[0075] Detect the encoding and decoding parameters corresponding to the data encoding and decoding service between the electronic device and the data communication server;

[0076] Detect the compression parameters corresponding to the data compression service between the electronic device and the data communication server.

[0077] Among them, the physical layer parameters of the communication network between the electronic device and the data communication server are parameters related to the physical layer of the communication network.

[0078] For example, the physical layer parameters can include at least one of the following: parameters related to the signal quality of the communication network, parameters related to the bit error rate, and parameters related to the cell stability.

[0079] Among them, the parameters related to the signal quality of the communication network can be parameters characterizing the signal strength. For example, the parameters related to the signal quality can include at least one of parameters such as the Reference Signal Receiving Power (RSRP) and the Reference Signal Receiving Quality (RSRQ).

[0080] The parameters related to the bit error rate can include the uplink and downlink block error rate (BLER), etc.

[0081] The parameters related to the cell stability can be one or more of parameters such as the cell signal-to-noise ratio and the number of Radio Resource Control (RRC) establishments.

[0082] Among them, the coding and decoding parameters can include the coding and decoding methods and the coding and decoding rates.

[0083] The compression parameters can include the compression method of data compression and the compression ratio, etc.

[0084] It can be understood that based on the physical layer parameters corresponding to the data communication service between the electronic device and the data communication server, it can be analyzed whether there is a network anomaly in the communication network between the electronic device and the data communication server. For example, it can be analyzed whether the anomaly of the communication network is an access layer anomaly or a temporary anomaly other than the access layer anomaly.

[0085] In this case, if there is an access layer anomaly in the communication network, then it is necessary to reconnect to other communication networks outside this communication network. If the anomaly of this communication network is not an access layer anomaly, then it can be re-attempted to register to this communication network to solve the data communication anomaly caused by the interruption of the communication network.

[0086] Similarly, based on the compression parameters or coding parameters corresponding to the data communication service between the electronic device and the data communication server, it can be analyzed whether there are data compression and coding and decoding anomalies between the electronic device and the data communication server.

[0087] If there is a data compression anomaly, then the data compression method or compression algorithm, etc. can be changed to optimize the data coding and reduce the data communication anomaly. Similarly, if there is a data coding and decoding anomaly, then one of the encoder and / or decoder can be changed, or the coding and decoding algorithm, etc. can be adjusted to reduce the data communication anomaly caused by the coding and decoding anomaly.

[0088] For the sake of easy understanding, a possible implementation manner of optimizing the data communication quality of the electronic device based on the physical layer parameters is taken as an example for illustration below.

[0089] Such asFigure 2 As shown, it shows another schematic flowchart of the communication method provided by the embodiment of the present application. The method of this embodiment may include:

[0090] S201, when it is determined that there is an abnormal data communication in the electronic device, detect at least one physical layer parameter of the first communication network between the electronic device and the data communication server to obtain a detection result.

[0091] In this embodiment, there may be various possibilities for the situation of abnormal data communication, which can be specifically as introduced in the relevant previous embodiments.

[0092] In a possible implementation manner, considering that the physical layer parameters can mainly reflect whether there is an abnormality in the network status of the current communication network between the electronic device and the data communication server. Therefore, in the present application, the existence of abnormal data communication in the electronic device can be the existence of abnormal packet reception and transmission in the electronic device. For example, when the communication network between the electronic device and the data communication server is a mobile communication network, it can be that the electronic device has an abnormal TCP / IP packet.

[0093] In the present application, the physical layer parameter may be at least one of parameters such as signal quality related parameters, bit error rate related parameters, cell stability related parameters, etc., which are specifically as introduced before and will not be elaborated here.

[0094] In the present application, for the convenience of distinction, the current communication network between the electronic device and the data communication server is referred to as the first communication network, and other communication networks outside the subsequent first communication network are referred to as the second communication network.

[0095] The data communication server can directly provide data communication services to the electronic device; or, the data communication server relies on a communication device that can provide data communication services to the data communication server to provide data communication services to the electronic device. For example, if the first communication network is a cellular mobile communication network, the data communication server can be a base station. For other situations, reference can be made to the foregoing, which will not be elaborated here.

[0096] In the present application, according to different specific communication scenarios, the first communication network may also have various possibilities, which are not limited thereto. For example, the first communication network may be a cellular mobile network, such as 3G, 4G or 5G network, etc. Another example is that the first communication network may also be a wireless communication network other than the cellular mobile network, such as a short-range wireless communication network, for example, a Wireless Fidelity (WiFi) network, etc.

[0097] Among them, the detection result may be the detection result of the physical layer parameter, or the network status result of the communication network analyzed based on the physical layer parameter.

[0098] For example, in one possible implementation, the detection result may be the parameter values of at least one physical layer parameter. In this case, based on the parameter values of at least one physical layer parameter, it can be determined whether there is an abnormality in the access stratum of the first communication network, so as to perform subsequent step S202 or S203.

[0099] In another possible implementation, the detection result may be the result of whether the access stratum of the first communication network is abnormal. Specifically, the detection result may be the result of determining whether the access stratum of the first communication network is abnormal based on the parameter values of at least one detected physical layer parameter. Correspondingly, the detection result may include one of two situations: the determined access stratum is abnormal and the access stratum is normal.

[0100] Among them, there may also be various possible situations for the specific implementation of analyzing whether the access stratum is abnormal based on the parameter values of at least one detected physical layer parameter. The following will illustrate with two situations:

[0101] In one possible situation, a single parameter value of each physical layer parameter of the first communication network within a preset time period can be obtained, that is, the corresponding value of each physical layer parameter. Correspondingly, if the single parameter values of each physical layer parameter exceed their respective first thresholds, it is determined that the access stratum of the communication network is abnormal. If the single parameter values of each physical layer parameter do not exceed their respective first thresholds, it is determined that the access stratum of the communication network is normal. Of course, this application can focus on one or both of the two detection results of access stratum abnormality and access stratum normality, and there is no restriction on this.

[0102] It can be understood that in the above possible situation, when the number of physical layer parameters is large, it may be that the single parameter values of all physical layer parameters exceed their respective first thresholds, then it is determined that the access stratum is abnormal; it may also be that the single parameter values of more than a set number of physical layer parameters exceed their respective first thresholds, and then it is determined that the access stratum is abnormal, and there is no restriction on this.

[0103] In another possible situation, a comprehensive parameter value obtained based on the parameter values of each physical layer parameter of the first communication network and the weights corresponding to the physical layer parameters within a preset time period is obtained.

[0104] Among them, the weights corresponding to different physical layer parameters can be preset. For example, according to the influence degree of the physical layer parameters on causing access stratum abnormality, the weights of the physical layer parameters are set.

[0105] In an alternative manner, considering that the parameter value ranges and evaluation metrics of different physical layer parameters vary, for each physical layer parameter, based on the obtained parameter value of the physical layer parameter, a score for the physical layer parameter can be determined, and this score can represent the degree of abnormality of the physical layer parameter. Correspondingly, after weighting the scores corresponding to the parameter values of each physical layer parameter, the weighted scores can be determined as the comprehensive parameter value.

[0106] For example, for each type of physical layer parameter, set the respective reference scores corresponding to different value ranges of the physical layer parameter. On this basis, combined with the parameter value of the physical layer parameter, the value range to which the parameter value belongs can be determined, and the reference score corresponding to this value range can be determined as the parameter value of the physical layer parameter.

[0107] Illustrating with an example, assume that the detected physical layer parameters can include: the parameter value of the RSRP parameter, the small uplink and downlink error rates, and the number of RRC establishments. Then, based on the reference scores corresponding to different value ranges of these three physical layer parameters respectively, the scores corresponding to the values of these three physical layer parameters can be determined respectively. Then, based on the respective weights of these three physical layer parameters, calculate the weighted sum of the scores of these three physical layer parameters to obtain the comprehensive parameter value.

[0108] Of course, the above is an example of a way to determine the comprehensive parameter value. In practical applications, it is also applicable to determine the comprehensive parameter value through other methods.

[0109] Correspondingly, if the comprehensive parameter value exceeds the second threshold, it is determined that the access layer of the first communication network is abnormal. If the comprehensive parameter value does not exceed the second threshold, it is determined that the access layer of the first communication network is normal.

[0110] S202, if the detection result indicates that the access layer of the first communication network is abnormal, switch the communication network between the electronic device and the data communication server from the first communication network to the second communication network.

[0111] As mentioned above, if the detection result is the result of the access layer being normal or abnormal, then according to the detection result, it can be directly determined whether the access layer is abnormal. If the detection result is only the parameter values of each physical layer parameter, then in the way mentioned above, based on the parameter values of each physical layer parameter, it can also be determined whether the access layer is abnormal.

[0112] It can be understood that if there is an abnormality in the access layer of the current communication network (i.e., the first communication network) between the electronic device and the data communication server, then after the electronic device has data transmission and reception abnormalities, by frequently reconnecting to this communication network multiple times, it cannot solve the data communication abnormalities such as data transmission and reception abnormalities caused by network abnormalities, and thus a situation of long-term network disconnection may occur.

[0113] Based on this, after determining that there is an access layer anomaly in the communication network, in order to restore the network communication of the electronic device, the present application will select to access a communication network other than the first communication network, that is, the second communication network.

[0114] Among them, the second communication network is at least different from the first communication network in terms of network mode. Different network modes correspond to different communication standards. Correspondingly, there will be one or more differences in network characteristics such as bandwidth, network communication speed, and covered frequency bands between communication networks with different network modes.

[0115] For example, the second communication network and the first communication network are two communication networks of the same network type but using different communication standards. For example, both the first communication network and the second communication network belong to the cellular mobile communication network, but the first communication network is a 5G communication network using the 5G communication standard, while the second communication network is a 4G communication network using the 4G communication standard.

[0116] Another example is that the second communication network and the first communication network are communication networks of different network types. Of course, the communication standards adopted by these two communication networks will naturally not be the same. For example, the first communication network is a 5G or other cellular mobile communication network, while the second communication network is a WiFi network.

[0117] Of course, only several possible situations are exemplified here. As long as the first communication network and the second communication network are different communication networks, the present application places no restrictions on this.

[0118] Among them, in order to switch the first communication network to the second communication network, the present application can obtain the network characteristic information of the communication networks searched by the electronic device, and access the second communication network based on this network characteristic information, so as to switch the electronic device from the first communication network to the second communication network.

[0119] For example, in the case of determining an access layer anomaly in the first communication network, the electronic device can search for the network characteristic information of each communication network that can cover or register, and select a communication network from the searched communication networks as the second communication network based on the network characteristic information, and register to the second communication network.

[0120] Among them, the network characteristic information of the searched communication networks can include at least one of the following information: the network type, name, signal strength, etc. of the communication network. On this basis, the present application can select a second communication network with better communication performance based on the network characteristic information.

[0121] In an alternative manner, when determining the second communication network, a communication network of the same type as the first communication network but with a different communication standard may also be preferentially selected based on the network feature information of the searched communication networks. For example, if the first communication network is a cellular mobile communication network and belongs to the 5G network, then a communication network of another communication standard belonging to the cellular mobile communication network may be selected based on the network feature information.

[0122] It can be understood that, in order to be able to access a second communication network with better network communication performance, the status information of the communication modules in the electronic device that support different communication networks may also be obtained. This status information may include usage conditions such as the load of the communication network. On this basis, the suitable second communication network may be comprehensively determined by combining the network feature information of the communication network and the status information of the communication modules that support different communication networks.

[0123] S203, if the detection result indicates that the access layer of the first communication network is normal, control the electronic device to re-register to the first communication network.

[0124] It can be understood that if the access layer of the first communication network where the electronic device is currently located is normal, but there are data communication anomalies such as abnormal packet sending and receiving in the electronic device, then it indicates that there is a temporary anomaly in the first communication network. In this case, in order to avoid affecting the communication speed or user experience by switching the communication network, the electronic device may re-attempt to initiate registration to the first communication network to re-access the first communication network.

[0125] For example, assume that on the premise that the electronic device is accessing the 5G network, if an abnormal TCP / IP packet is detected, then the parameter values of the physical layer parameters of the 5G network between the electronic device and the accessed 5G base station can be obtained. Combining the parameter values of the respective physical layer parameters, the above-mentioned method can be used to analyze whether the access layer of the 5G network is abnormal.

[0126] If the access layer of the 5G network is abnormal, then in order to avoid mobile communication interruption, the electronic device can search for 4G or 3G networks that can be covered by the electronic device. If a 4G network is searched, the electronic device can be registered to the 4G network to switch from the 5G network to the 4G network, so as to reduce the network interruption time and avoid resource consumption and time waste caused by multiple attempts to access the 5G network, which is an ineffective operation. If the access layer of the 5G network is normal, in order to keep the electronic device still accessing the 5G network with a relatively high communication speed instead of accessing other communication networks with relatively low communication speeds such as 4G, the electronic device can re-register to the 5G network.

[0127] In the embodiments of the present application, if there is an abnormal data communication in the electronic device, the physical layer parameters of the communication network currently accessed by the electronic device will be used to determine whether there is an access layer abnormality in the communication network. If there is an access layer abnormality in the currently accessed communication network, in order to reduce the time and resources consumed by repeatedly registering the communication network, the present application will re-determine another communication network and enter the determined communication network to reduce the network interruption time and quickly restore normal data communication. If there is no access layer abnormality in the currently accessed communication network, it can be determined that the communication network only has an abnormality temporarily. Therefore, in order to reduce the resources consumed by network switching and quickly restore data communication, the present application will re-register with the communication network.

[0128] It can be understood that communication abnormalities may also be caused by reasons within the electronic device itself.

[0129] The following takes the case where there is an abnormal data communication in the electronic device and optimizes the data communication quality through the detection results of the communication parameters of the electronic device as an example for illustration.

[0130] As Figure 3 shown, it shows another schematic flowchart of the communication method provided by the embodiments of the present application. The method of this embodiment may include:

[0131] S301, when it is determined that there is an abnormal data communication in the electronic device, detect the initialization parameters of the first communication module of the electronic device, and determine the detection result of whether the communication of the electronic device itself is normal or abnormal based on the initialization parameters.

[0132] Among them, the first communication module is the module currently performing the communication task, that is, the communication module required for the electronic device to obtain the communication service corresponding to the currently accessed communication network. For example, the first communication module can be responsible for functions and operations related to communication such as sending and receiving data or signals between the electronic device and the currently accessed communication network of the electronic device, and network registration.

[0133] For example, the first communication module may include at least one of radio frequency modules and communication antennas and other communication-related sub-modules that support the network standards corresponding to the communication network accessed by the electronic device. For example, if the electronic device accesses a cellular mobile communication network, then the first communication module can be a radio frequency module and an antenna that support the corresponding standards (such as 4G or 5G, etc.) in cellular mobile communication.

[0134] An electronic device can obtain the data communication service of the first communication network where the electronic device is currently located through a data communication server. The data communication server can directly provide the data communication service to the electronic device; or, the data communication server relies on a communication device that can provide the data communication service to the data communication server to provide the data communication service to the electronic device. As described above, it will not be elaborated here.

[0135] The initialization parameters of the first communication module refer to the parameters configured after the initialization of the first communication module. For example, parameters required for communication such as frequency band, antenna radiation angle, and communication frequency, etc.

[0136] Among them, there can be multiple possibilities for determining whether the communication of the electronic device is normal based on the initialization parameters of the first communication module.

[0137] For example, it can be combined with the reference range values of each parameter corresponding to the first communication module stored, and it is detected whether each parameter value in the initialization parameters is within its corresponding reference range. If there are initialization parameters that are not within the reference range, it indicates that the data communication anomaly is caused by the communication anomaly of the electronic device itself.

[0138] Another example is that it can also be based on the initialization parameters of the first communication module to detect whether the communication parameters of the electronic device itself are abnormal. For example, in the case of the antenna angle set in the initialization parameters, it is detected whether the antenna transmission power is normal, etc. If there are abnormalities in the communication parameters of the electronic device locally, it is determined that there is a communication anomaly in the electronic device itself; conversely, if the communication parameters of the electronic device itself are normal, there is no communication anomaly in the electronic device itself.

[0139] It can be understood that step S301 is only one implementation manner for determining whether the communication of the electronic device itself is normal or abnormal. In actual applications, it is also possible to obtain the detection result of whether the communication of the electronic device itself is normal or abnormal by detecting the communication network quality between the electronic device and other data communication servers.

[0140] Among them, other data communication servers refer to data communication servers other than those corresponding to the communication networks with data communication anomalies.

[0141] For example, when an electronic device is equipped with multiple Subscriber Identity Module (SIM) cards, the electronic device has the possibility of accessing cellular mobile communication networks under different operators. In this case, if the first base station corresponding to the communication network with abnormal data communication belongs to the first operator, the electronic device can detect the communication network quality corresponding to the second base station of the second operator. If the communication network quality under the second base station meets the requirements, it indicates that there is no communication anomaly in the electronic device itself; if the communication network quality under the second base station also does not meet the requirements, it indicates that the data communication anomaly is caused by the communication anomaly of the electronic device itself.

[0142] In practical applications, the initialization parameters of the first communication module of the electronic device and the communication network quality between the electronic device and other data communication servers can also be combined to comprehensively determine the detection result of whether the electronic device itself has normal communication or communication anomalies.

[0143] S302, optimize the data communication quality of the electronic device in a corresponding processing manner based on the detection result.

[0144] Among them, if the initialization parameters of the first communication module of the electronic device corresponding to the detection result indicate that the communication of the electronic device itself is abnormal, the data communication quality of the electronic device can be optimized by adjusting the initialization parameters of the first communication module or switching to other communication modules in the electronic device to access another communication network. For example, in combination with the reasonable value range corresponding to the initialization parameters, the set initialization parameters can be adjusted, or, without limitation, the initialization parameters can be adjusted according to specific rules or continuously.

[0145] For the situation where the communication anomaly of the electronic device itself is determined based on the communication network quality between the electronic device and other data servers, the optimization can also be achieved by switching the first communication network where the electronic device is currently located to a second communication network. For example, on the premise of currently accessing the first communication network of the first operator through the first communication module, it can be switched to accessing the second communication network of the second operator through other communication modules of the electronic device.

[0146] Among them, the method for determining the second communication network can be as described above, without limitation.

[0147] Next, taking the case where the electronic device has abnormal data communication and optimizing the data communication quality by analyzing whether the communication of the data communication server is abnormal as an example for illustration.

[0148] For example Figure 4 As shown, it shows another flowchart of the communication method provided by the embodiment of the present application. The method of this embodiment may include:

[0149] S401. When it is determined that there is an abnormal data communication in the electronic device, detect the initialization parameters of the second communication module of the data communication server, and determine the detection result of whether the data communication server itself has normal communication or abnormal communication based on the initialization parameters.

[0150] For the specific possible situations of the abnormal data communication, reference can be made to the relevant introductions in the previous embodiments, which will not be elaborated here.

[0151] The data communication server can directly provide data communication services to the electronic device; or, the data communication server relies on a communication device that can provide data communication services to the data communication server to provide data communication services to the electronic device.

[0152] Among them, the second communication module is the module currently performing the communication task. To distinguish it from the first communication module of the previous electronic device, the communication module of the data communication server is called the second communication module.

[0153] The second communication module may include relevant modules required for the data communication server to implement the communication function. For example, taking the data communication server as a base station, the second communication module may include wireless transmitting and receiving devices in the transceiver station, and the corresponding initialization parameters are the initialized parameters related to wireless transmission and reception. If the data communication server is a router or other access point device, the second communication module may include various modules for signal transmission, and the initialization parameters of the second communication module may be parameters related to routing protocols, signaling configurations, and routing table configurations.

[0154] The initialization parameters of the second communication module are the parameters initialized by the data communication server for the second communication module.

[0155] In practical applications, the electronic device may send a detection request to the data communication server, and the detection request is used to request the data communication server to detect the initialization parameters of the second communication module. Correspondingly, the data communication server will feedback the detection result determined based on the initialization parameters to the electronic device.

[0156] It can be understood that based on the initialization parameters of the second communication module, it can be determined whether there is abnormal communication in the data communication server. It can be based on the parameter reference range of each parameter configured in advance for initialization to detect whether there is a configuration abnormality in the initialization parameters of the second communication module. If so, it is determined that there is abnormal communication in the data communication server. It can also be that the data communication server obtains the communication status parameters of the data communication server based on the initialization parameters of the second communication module, and analyzes whether there is abnormal communication in the data communication server itself based on the communication status parameters.

[0157] It can be understood that, in addition to determining the detection result of whether there is a communication anomaly in the data communication server itself by the method of step S401, when the data communication server needs to rely on a communication device to provide data communication services for an electronic device, it can also be to detect the communication network quality between the data communication server and the communication device to obtain the detection result of whether the data communication server itself has normal communication or communication anomalies.

[0158] Among them, the data communication server can also execute detecting the communication network quality between it and the communication device after receiving the detection request of the electronic device, and feedback the obtained detection result to the electronic device.

[0159] S402, optimize the data communication quality of the electronic device in a corresponding processing manner based on the detection result.

[0160] In this embodiment, the detection result can indicate whether there is an anomaly in the data communication server. If there is a communication anomaly on the data communication server side, it can indicate that the data communication server side optimizes its communication quality, or alternatively, switches to the communication network corresponding to another data communication server to optimize the data communication quality of the electronic device.

[0161] If the detection result indicates that the data communication server itself has normal communication, then it may indicate that the data communication anomaly is caused by the communication anomaly of the electronic device itself. Then, a prompt can be output or the first communication module that currently provides network services of the electronic device can be switched to other communication modules of the electronic device, etc.

[0162] It can be understood that, in practical applications, the above several methods of detecting communication parameters and obtaining detection results can be combined and applied in two or more ways. For example, combine the methods of the above three embodiments to obtain multiple different detection results. On this basis, comprehensively determine the reason for the communication anomaly of the electronic device based on these multiple detection results. For example, whether it is the communication network anomaly of the electronic device itself or the access layer anomaly of the first communication network, etc. Correspondingly, a processing method corresponding to the specific reason for the data communication anomaly can be adopted to optimize the data communication quality of the electronic device.

[0163] Corresponding to a communication method of the present application, the present application also provides a communication device.

[0164] As Figure 5 shown, it shows a schematic structural diagram of a composition of a communication device provided by an embodiment of the present application. The device of this embodiment may include:

[0165] A parameter detection unit 501, configured to detect communication parameters corresponding to at least one of the electronic device, the data communication server, and the data communication service between the electronic device and the data communication server when it is determined that there is an abnormal data communication in the electronic device, so as to obtain at least one detection result, where the data communication server can directly provide data communication services to the electronic device, or the data communication server depends on a communication device that can provide data communication services to it to provide data communication services to the electronic device.

[0166] A communication optimization unit 502, configured to optimize the data communication quality of the electronic device in a corresponding processing manner based on the detection result.

[0167] In a possible implementation manner, the parameter detection unit includes at least one of the following:

[0168] A first parameter detection unit, configured to detect at least one physical layer parameter of the communication network between the electronic device and the data communication server, so as to obtain at least one detection result;

[0169] A second parameter detection unit, configured to detect encoding and decoding parameters corresponding to the data encoding and decoding service between the electronic device and the data communication server, so as to obtain at least one detection result;

[0170] A third parameter detection unit, configured to detect compression parameters corresponding to the data compression service between the electronic device and the data communication server, so as to obtain at least one detection result.

[0171] In another possible implementation manner, the first parameter detection unit includes:

[0172] A first parameter obtaining unit, configured to obtain a single parameter value of each physical layer parameter of the communication network within a preset time period, where the physical layer parameters include at least one of signal quality related parameters, error rate related parameters, and cell stability related parameters;

[0173] A first result determination unit, configured to determine that the access layer of the communication network is abnormal if the single parameter value exceeds its corresponding first threshold; and / or,

[0174] A second result determination unit, configured to determine that the access layer of the communication network is normal if the single parameter value does not exceed its corresponding first threshold.

[0175] In another possible implementation manner, the first parameter detection unit includes:

[0176] A second parameter obtaining unit, configured to obtain a comprehensive parameter value obtained based on parameter values of each physical layer parameter of the communication network and weights corresponding to the physical layer parameters within a preset time period, where the physical layer parameters include at least one of signal quality related parameters, error rate related parameters, and cell stability related parameters;

[0177] A third result determining unit, configured to determine that the access layer of the communication network is abnormal if the comprehensive parameter value exceeds a second threshold; and / or,

[0178] A fourth result determining unit, configured to determine that the access layer of the communication network is normal if the comprehensive parameter value does not exceed the second threshold.

[0179] In another possible implementation manner, based on the above first parameter detection unit, the communication optimization unit includes at least one of the following:

[0180] A first optimization control unit, configured to, if the detection result indicates that the access layer of the communication network is abnormal, switch the communication network between the electronic device and the data communication server from the current first communication network to a second communication network, where the second communication network is different from the first communication network at least in terms of network mode;

[0181] A second optimization control unit, configured to, if the detection result indicates that the access layer of the communication network is normal, control the electronic device to re-register the current first communication network.

[0182] In another possible implementation manner, when the first optimization control unit switches the communication network between the electronic device and the data communication server from the current first communication network to the second communication network, it is specifically configured to: obtain network feature information of the communication network searched by the electronic device, and access the second communication network based on the network feature information, so as to switch the first communication network to the second communication network.

[0183] In another possible implementation manner, the parameter detection unit includes at least one of the following:

[0184] A fourth parameter detection unit, configured to detect initialization parameters of a first communication module of the electronic device, and determine a detection result of whether the communication of the electronic device itself is normal or abnormal based on the initialization parameters, where the first communication module is the module currently performing a communication task;

[0185] A fifth parameter detection unit, configured to detect the communication network quality between the electronic device and other data communication servers, and obtain a detection result of whether the communication of the electronic device itself is normal or abnormal.

[0186] In yet another possible implementation, the parameter detection unit includes at least one of the following:

[0187] A sixth parameter detection unit, configured to detect initialization parameters of a second communication module of the data communication server, and determine a detection result of whether the data communication server has normal or abnormal communication based on the initialization parameters, where the second communication module is the module currently performing a communication task;

[0188] A seventh parameter detection unit, configured to detect the communication network quality between the data communication server and the communication device, and obtain a detection result of whether the data communication server has normal or abnormal communication.

[0189] In yet another possible implementation, when the parameter detection unit determines that there is abnormal data communication in the electronic device, it may specifically include at least one of the following:

[0190] It is detected that there is abnormal packet sending and receiving in the electronic device;

[0191] It is determined that there is packet sending and receiving delay in the electronic device;

[0192] It is determined that there is abnormal communication data update between the electronic device and the data communication server.

[0193] On the other hand, the present application further provides an electronic device, as Figure 6 shown, which shows a schematic structural diagram of the composition of the electronic device. The electronic device can be any type of electronic device, and the electronic device includes at least a processor 601 and a memory 602;

[0194] Wherein, the processor 601 is configured to execute the communication method in any one of the above embodiments.

[0195] The memory 602 is configured to store a program required for the processor to perform operations.

[0196] It can be understood that the electronic device may further include a display unit 603 and an input unit 604.

[0197] Of course, the electronic device may also have Figure 6 more or fewer components, and this is not limited.

[0198] On the other hand, the present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the communication method in any one of the above embodiments.

[0199] The present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium. When the computer program runs on an electronic device, it is used to execute the communication method in any of the above embodiments.

[0200] It should be noted that the embodiments in this specification are all described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. At the same time, the features described in the embodiments of this specification can be replaced or combined with each other, enabling those skilled in the art to implement or use the present application. For device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiments.

[0201] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including an..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

[0202] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0203] The above are only the preferred embodiments of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A communication method, comprising: When it is determined that there is an abnormal data communication in the electronic device, detecting communication parameters corresponding to at least one of the electronic device, the data communication server, and the data communication service between the electronic device and the data communication server, so as to obtain at least one detection result; Optimizing the data communication quality of the electronic device based on the detection result in a corresponding processing manner; Wherein, the data communication server can directly provide data communication services to the electronic device, or, the data communication server relies on a communication device that can provide data communication services to it to provide data communication services to the electronic device; Wherein, optimizing the data communication quality of the electronic device based on the detection result in a corresponding processing manner includes: If the detection result indicates that the access layer of the communication network is abnormal, switching the communication network between the electronic device and the data communication server from the current first communication network to a second communication network, and the second communication network is different from the first communication network at least in terms of network mode; If the detection result indicates that the access layer of the communication network is normal, controlling the electronic device to re-register the current first communication network.

2. The method according to claim 1, wherein Detecting the communication parameters corresponding to the data communication service between the electronic device and the data communication server includes at least one of the following: Detecting at least one physical layer parameter of the communication network between the electronic device and the data communication server; Detecting the encoding and decoding parameters corresponding to the data encoding and decoding service between the electronic device and the data communication server; Detecting the compression parameters corresponding to the data compression service between the electronic device and the data communication server.

3. The method according to claim 2, wherein, Detecting the physical layer parameters corresponding to the communication network between the electronic device and the data communication server to obtain at least one detection result, including: Obtaining a single parameter value of each physical layer parameter of the communication network within a preset time period; If the single parameter value exceeds its corresponding first threshold, determining that the access layer of the communication network is abnormal; and / or, If the single parameter value does not exceed its corresponding first threshold, determining that the access layer of the communication network is normal; Wherein, the physical layer parameters include at least one of signal quality related parameters, bit error rate related parameters, and cell stability related parameters.

4. The method according to claim 2, wherein, Detecting the physical layer parameters corresponding to the communication network between the electronic device and the data communication server to obtain at least one detection result, including: Obtaining a comprehensive parameter value obtained based on the parameter values of each physical layer parameter of the communication network and the weights corresponding to the physical layer parameters within a preset time period; If the comprehensive parameter value exceeds the second threshold, determining that the access layer of the communication network is abnormal; and / or, If the comprehensive parameter value does not exceed the second threshold, determining that the access layer of the communication network is normal; Wherein, the physical layer parameters include at least one of signal quality related parameters, bit error rate related parameters, and cell stability related parameters.

5. The method according to claim 1, wherein Switching the communication network between the electronic device and the data communication server from the current first communication network to a second communication network includes: Obtain the network feature information of the communication network searched by the electronic device, and access the second communication network based on the network feature information to switch the first communication network to the second communication network.

6. The method according to claim 1, wherein, Detect the communication parameters of the electronic device to obtain at least one detection result, including at least one of the following: Detect the initialization parameters of the first communication module of the electronic device, and determine the detection result of whether the communication of the electronic device itself is normal or abnormal based on the initialization parameters. The first communication module is the module currently performing the communication task; Detect the communication network quality between the electronic device and other data communication servers to obtain the detection result of whether the communication of the electronic device itself is normal or abnormal.

7. The method according to claim 1, wherein, Detect the communication parameters of the data communication server to obtain at least one detection result, including at least one of the following: Detect the initialization parameters of the second communication module of the data communication server, and determine the detection result of whether the communication of the data communication server itself is normal or abnormal based on the initialization parameters. The second communication module is the module currently performing the communication task; Detect the communication network quality between the data communication server and the communication device to obtain the detection result of whether the communication of the data communication server itself is normal or abnormal.

8. The method according to claim 1, wherein Determine that there is data communication abnormality in the electronic device, including at least one of the following: Detect that there is abnormal packet reception and transmission in the electronic device; Determine that there is packet reception and transmission delay in the electronic device; Determine that the communication data update between the electronic device and the data communication server is abnormal.

9. A communication device, comprising: A parameter detection unit, configured to detect the communication parameters corresponding to at least one of the electronic device, the data communication server, and the data communication service between the electronic device and the data communication server when it is determined that there is data communication abnormality in the electronic device, so as to obtain at least one detection result, wherein the data communication server can directly provide data communication services to the electronic device, or the data communication server depends on a communication device capable of providing data communication services to it to provide data communication services to the electronic device; A communication optimization unit, configured to optimize the data communication quality of the electronic device in a corresponding processing manner based on the detection result; Wherein, the communication optimization unit is configured to optimize the data communication quality of the electronic device in a corresponding processing manner based on the detection result, specifically including: If the detection result indicates that the access layer of the communication network is abnormal, switch the communication network between the electronic device and the data communication server from the current first communication network to the second communication network, and the second communication network is different from the first communication network at least in terms of network mode; If the detection result indicates that the access layer of the communication network is normal, control the electronic device to re-register the current first communication network.

Citation Information

Patent Citations

  • Node failure diagnosis method and node failure diagnosis device

    CN104539464A

  • Cell switching method and device and electronic equipment

    CN111770540A