Terminal control method and device, electronic equipment and storage medium

By obtaining network exception information in the terminal, determining the exception type, and applying preset repair methods, the user experience problems caused by terminal network exceptions are solved, and fast and non-interrupted network repair is achieved, and the user experience is improved.

CN119485413APending Publication Date: 2025-02-18BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311017344.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

After the terminal is connected to the network, it is prone to network abnormalities or network interruptions, causing users to be unable to use the network normally and reduce user experience. The existing technology requires users to report problems and wait for repair or restart the equipment, which can easily cause users to interrupt the Internet and affect their experience.

Method used

A terminal control method is provided, by obtaining network exception information when a target network connected to the terminal occurs, determining the network exception type, and repairing the network connection according to a preset repair method. The method includes obtaining network exception information, determining the exception type, and sequentially applying a preset repair method to restore the network connection.

Benefits of technology

It realizes that network abnormalities can be quickly repaired, avoid network interruptions, and improve users' online experience without affecting users' online experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485413A_ABST
    Figure CN119485413A_ABST
Patent Text Reader

Abstract

The invention relates to a terminal control method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring network anomaly information of a target network under the condition that the target network connected with a terminal is abnormal; determining a target network anomaly type of the target network according to the network anomaly information; and repairing the network connection between the terminal and the target network according to the abnormal type of the target network and a preset repairing mode, according to the embodiment of the invention, the network anomaly type is determined through the network anomaly information, and the network anomaly is actively repaired through the preset repair mode, so that the network anomaly is quickly repaired under the condition that the internet surfing experience of a user is not influenced, the network interruption condition is avoided, and the internet surfing experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of wireless communication technology, and in particular to a method, device, electronic device and storage medium for terminal control. Background Art

[0002] After the terminal is connected to the network, network anomalies or network interruptions are likely to occur, resulting in users being unable to use the network normally, reducing user experience. In related technologies, users are required to report the problem to the staff to wait for maintenance; or restart the device to try to reconnect to the network. The above methods are likely to cause user Internet interruptions and affect the user's Internet experience. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a terminal control method, device, electronic device and storage medium for quickly repairing network anomalies.

[0004] According to a first aspect of an embodiment of the present disclosure, a terminal control method is provided, which is applied to a terminal, and the method includes:

[0005] When a network anomaly occurs in a target network to which the terminal is connected, obtaining network anomaly information of the target network;

[0006] Determining a target network anomaly type of the target network according to the network anomaly information;

[0007] The network connection between the terminal and the target network is repaired according to the target network abnormality type and a preset repair method.

[0008] Optionally, determining the target network abnormality type of the target network according to the network abnormality information includes:

[0009] The target network anomaly type matching the network anomaly information is determined from a plurality of preset network anomaly types.

[0010] Optionally, the determining the target network anomaly type matching the network anomaly information from a plurality of preset network anomaly types includes:

[0011] Determining an arrangement order of the plurality of preset network anomaly types at an application level of the terminal according to the plurality of preset network anomaly types;

[0012] According to the arrangement order, the network anomaly information is matched in sequence to determine the target network anomaly type.

[0013] Optionally, determining the target network abnormality type of the target network according to the network abnormality information further includes:

[0014] Obtaining the connection status between the terminal and the network device;

[0015] The target network abnormality type of the target network is determined according to the connection status.

[0016] Optionally, determining the target network abnormality type of the target network according to the connection state includes:

[0017] When the connection status indicates that the connection between the terminal and the network device is abnormal, it is determined that the target network abnormality type of the target network is an external device connection abnormality.

[0018] Optionally, the method further comprises:

[0019] When it is determined that the target network abnormality type is the external device connection abnormality, a prompt message is issued; the prompt message is used to prompt the user to perform a repair operation.

[0020] Optionally, the preset repairing method includes multiple ones; and the repairing the network connection between the terminal and the target network according to the target network abnormality type and the preset repairing method includes:

[0021] According to the target network anomaly type, the plurality of preset repair methods are sorted to obtain a first target order of the plurality of preset repair methods;

[0022] According to the first target sequence, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

[0023] Optionally, the preset repairing method includes multiple ones; and the repairing the network connection between the terminal and the target network according to the target network abnormality type and the preset repairing method further includes:

[0024] Acquire a perception parameter corresponding to each of the preset repair methods; the perception parameter is used to represent the user's perception degree of the preset repair method;

[0025] According to the perception parameter, the plurality of preset repair methods are sorted to obtain a second target order;

[0026] According to the second target sequence, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

[0027] Optionally, the preset repair method includes one or more of the following methods:

[0028] Resetting the media access control layer MAC or the physical layer PHY of the terminal;

[0029] Switch network access point;

[0030] Set up additional Domain Name System DNS.

[0031] Optionally, determining that a network abnormality occurs in a target network to which the terminal is connected is performed in the following manner:

[0032] Acquiring connection parameters between the terminal and the target network;

[0033] When the connection parameter is greater than or equal to a preset parameter threshold, it is determined that a network abnormality occurs in the target network to which the terminal is connected.

[0034] According to a second aspect of an embodiment of the present disclosure, a terminal control device is provided, the device comprising:

[0035] An acquisition module is configured to acquire network anomaly information of a target network when a network anomaly occurs in the target network to which the terminal is connected;

[0036] A determination module, configured to determine a target network anomaly type of the target network according to the network anomaly information;

[0037] The repair module is configured to repair the network connection between the terminal and the target network according to the target network abnormality type and a preset repair method.

[0038] Optionally, the device further comprises:

[0039] The first determining module is configured to determine the target network anomaly type matching the network anomaly information from a plurality of preset network anomaly types.

[0040] Optionally, the device further comprises:

[0041] The second determination module is configured to determine the arrangement order of the plurality of preset network anomaly types at the application level of the terminal according to the plurality of preset network anomaly types; and match the network anomaly information in sequence according to the arrangement order to determine the target network anomaly type.

[0042] Optionally, the device further comprises:

[0043] The third determination module is configured to obtain the connection status between the terminal and the network device; and determine the target network abnormality type of the target network according to the connection status.

[0044] Optionally, the device further comprises:

[0045] The fourth determining module is configured to determine that the target network abnormality type of the target network is an external device connection abnormality when the connection status indicates that the connection between the terminal and the network device is abnormal.

[0046] Optionally, the device further comprises:

[0047] The prompt module is configured to issue a prompt message when it is determined that the target network abnormality type is the external device connection abnormality; the prompt message is used to prompt the user to perform a repair operation.

[0048] Optionally, the preset repairing method includes multiple ones; and the device further includes:

[0049] The first repair module is configured to sort the multiple preset repair methods according to the target network abnormality type to obtain a first target order of the multiple preset repair methods; according to the first target order, repair the network connection between the terminal and the target network in turn through each of the preset repair methods.

[0050] Optionally, the preset repairing method includes multiple ones; and the device further includes:

[0051] The second repair module is configured to obtain perception parameters corresponding to each of the preset repair methods; the perception parameters are used to characterize the user's perception of the preset repair methods; according to the perception parameters, multiple preset repair methods are sorted to obtain a second target order; according to the second target order, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

[0052] Optionally, the preset repair method includes one or more of the following methods: resetting the media access control layer MAC or physical layer PHY of the terminal; switching the network access point; setting other domain name system DNS.

[0053] Optionally, determining that a network anomaly occurs in a target network to which the terminal is connected is performed by: acquiring connection parameters between the terminal and the target network; and determining that a network anomaly occurs in the target network to which the terminal is connected when the connection parameters are greater than or equal to a preset parameter threshold.

[0054] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the steps of the terminal control method provided in the first aspect of the present disclosure.

[0055] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the terminal control method provided in the first aspect of the present disclosure are implemented.

[0056] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0057] The network anomaly type is determined through network anomaly information, and the network anomaly is actively repaired through preset repair methods, so as to quickly repair the network anomaly without affecting the user's Internet experience, avoid network interruptions, and improve the user's Internet experience.

[0058] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0060] Figure 1 The present invention is a scene diagram of a terminal control method according to an exemplary embodiment.

[0061] Figure 2 The present invention is a flowchart of a terminal control method according to an exemplary embodiment.

[0062] Figure 3 The figure is a flowchart of another terminal control method according to an exemplary embodiment.

[0063] Figure 4 The invention is a block diagram showing a terminal control device according to an exemplary embodiment.

[0064] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment.

[0065] Figure 6 is a block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0066] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0067] First, the application scenario of the present disclosure is introduced. The present disclosure is applied in the scenario where the terminal network connection is abnormal. Figure 1As shown, it is a scenario diagram of a terminal control method, which scenario may include a terminal 110, a router 120 and a switch 130; the terminal 110 is connected to the router 120; the router 120 is connected to the switch 130; the above connection method may be a wired connection or a wireless connection; for example, the terminal may access the router through a wireless connection, and the router may access the switch of the cell through a wired connection, thereby realizing the connection of the terminal to the network.

[0068] However, after the terminal is connected to the network, network anomalies or network interruptions are prone to occur, resulting in users being unable to use the network normally, reducing user experience. In related technologies, users are required to report the problem to the staff to wait for maintenance; or restart the terminal to try to reconnect to the network. The above methods are likely to cause user Internet access interruptions and affect the user's Internet experience.

[0069] In order to solve the above problems, the present disclosure provides a terminal control method, device, electronic device and storage medium; when a network anomaly occurs in a target network connected to the terminal, network anomaly information of the target network is obtained; according to the network anomaly information, a target network anomaly type of the target network is determined; according to the target network anomaly type and multiple preset repair methods, the network connection between the terminal and the target network is repaired; the network anomaly type is determined according to the network anomaly information, and the network anomaly is actively repaired according to the preset repair method, so as to realize rapid repair of the network anomaly without affecting the user's online experience, avoid network interruption, and improve the user's online experience.

[0070] Figure 2 is a flow chart of a terminal control method according to an exemplary embodiment. Figure 2 As shown, the method is applied to an electronic device and may include the following steps.

[0071] S201. When a network anomaly occurs in a target network to which a terminal is connected, obtain network anomaly information of the target network.

[0072] For example, the network anomaly may be a network connection interruption or a high network delay, etc. The network anomaly information may be network anomaly prompt information or network anomaly data.

[0073] In some embodiments, the connection parameters between the terminal and the target network can be obtained; when the connection parameters are greater than or equal to the preset parameter threshold, it is determined that the target network connected to the terminal has a network abnormality. For example, the connection parameters may include one or more of game delay time, TCP Retry Ratio, DNS Timeout, ARP No Response, WiFi Link Tx Per, WiFi Link CCA Busy, WiFi Link Beacon Lost, and WiFi Link failure. The preset parameter threshold may include a first preset parameter threshold corresponding to the game delay time, a second preset parameter threshold corresponding to the TCP Retry Ratio, a third preset parameter threshold corresponding to the DNS Timeout, a fourth preset parameter threshold corresponding to the ARP No Response, a fifth preset parameter threshold corresponding to the WiFi Link Tx Per, a sixth preset parameter threshold corresponding to the WiFi Link CCA Busy, a seventh preset parameter threshold corresponding to the WiFi Link Beacon Lost, and one or more of the eighth preset parameter threshold corresponding to the WiFi Link failure.

[0074] It can be understood that, when the connection parameter is less than the preset parameter threshold, it is determined that the terminal is normally connected to the target network and the user can use the network normally.

[0075] In other embodiments, when the network parameter is greater than or equal to the preset parameter threshold, the number of times the network parameter is greater than or equal to the preset parameter threshold within a preset time period can be determined; when it is determined that the value of the number is greater than or equal to the preset number threshold, it is determined that a network abnormality occurs in the target network connected to the terminal. In this way, when abnormal information occurs multiple times, it can be determined that the terminal's network connection is abnormal, thereby improving the accuracy of the judgment result and thus improving work efficiency.

[0076] S202: Determine a target network anomaly type of the target network according to the network anomaly information.

[0077] In some embodiments, the target network anomaly type that matches the network anomaly information can be determined from a plurality of preset network anomaly types. For example, the plurality of preset network types can belong to a preset network anomaly type set, and the target network anomaly type that matches the network anomaly information can be determined from the preset network anomaly type set. In this way, the network anomaly type can be quickly determined, thereby repairing the network anomaly as soon as possible.

[0078] In other embodiments, the arrangement order of the plurality of preset network anomaly types may be determined at the application level of the terminal according to the plurality of preset network anomaly types; and the network anomaly information may be matched in sequence according to the arrangement order to determine the target network anomaly type.

[0079] For example, the preset network anomaly type may include one or more of WiFi Link failure, WiFi Link Tx Per high, WiFi Link CCA Busy, DNS Timeout and ARP No Response. The arrangement order may be arranged from the bottom layer to the upper layer according to the application layer corresponding to the preset network anomaly type. The application layer may include one or more of the physical layer, data link layer, network layer, transport layer, session layer, presentation layer and application layer. In this way, the network anomaly information can be matched in sequence from the bottom layer to the upper layer, so as to quickly determine the target network anomaly type, avoid the influence of the time sequence of the network anomaly information on the type judgment, and improve the accuracy of the type judgment.

[0080] In some embodiments, the connection status between the terminal and the network device can be obtained; according to the connection status, the target network abnormality type of the target network is determined. For example, the network device can be a router; the connection status can include a normal connection status and an abnormal connection status.

[0081] For example, the connection status between the terminal and the network device can be determined by Ping gateway test or network DNS, HTTP or HTTPS detection. For example, the LAN or WIFI Link can be tested for abnormality by Ping gateway; or the external network can be detected for abnormality by network DNS, HTTP or HTTPS.

[0082] For example, a connection request may be sent to the network device; if a request result is received within a preset time range, the connection state is determined to be a normal connection state; if a request result is not received within the preset time range, the connection state is determined to be an abnormal connection state. The preset time range may be within the range of 150ms-250ms, for example, 150ms, 200ms or 250ms, etc., which is not limited here. In this way, it can be determined whether the terminal is normally connected to the network device according to the connection request.

[0083] In other embodiments, determining the target network abnormality type of the target network according to the connection state may include: when the connection state indicates that the terminal is abnormally connected to the network device, determining the target network abnormality type of the target network is an external device connection abnormality. In this way, it is convenient to determine the corresponding repair method to repair the network as soon as possible.

[0084] In some embodiments, when it is determined that the target network abnormality type is the external device connection abnormality, a prompt message may be issued; the prompt message is used to prompt the user to perform a repair operation. For example, the prompt message may be a text message; the prompt message may include prompting the user to switch the network hotspot or prompting the user to reset the control chip, etc. Through the above prompt message, the user may be prompted to perform a network repair operation, thereby repairing the network abnormality as soon as possible.

[0085] It should be noted that network diagnosis can be performed first through network anomaly information, and when the target network anomaly type cannot be determined, network diagnosis can be performed through the connection status between the terminal and the network device. Alternatively, network diagnosis can be performed first through the connection status between the terminal and the network device, and when the target network anomaly type cannot be determined, network diagnosis can be performed through network anomaly information. Alternatively, network diagnosis can be performed simultaneously through network anomaly information and the connection status between the terminal and the network device. In this way, network diagnosis can be performed in different ways to quickly determine the type of network anomaly and improve the efficiency of network repair.

[0086] S203: Repair the network connection between the terminal and the target network according to the target network anomaly type and a preset repair method.

[0087] In some embodiments, the preset repair method may include one or more of the following methods: resetting the media access control layer MAC or physical layer PHY of the terminal; switching the network access point; setting other domain name systems DNS. For example, each preset network abnormality type may correspond to one or more preset repair methods, for example, the TCP Retry Ratio abnormality, the corresponding repair method may be resetting the media access control layer MAC or physical layer PHY of the terminal, and switching the network access point AP (Access Point).

[0088] In other embodiments, the preset repair method may include multiple ones, and the multiple preset repair methods can be sorted according to the target network abnormality type to obtain a first target order of the multiple preset repair methods; according to the first target order, the network connection between the terminal and the target network is repaired in turn through each preset repair method.

[0089] For example, in a scenario where a user needs a stable network connection, the network connection between the terminal and the target network can be repaired in turn by each of the preset repair methods according to the first target order, so that the network can be repaired as soon as possible to maintain network stability.

[0090] For example, each preset repair method can be sorted from high to low according to the matching degree between each preset repair method and the target network abnormality type to obtain the first target sequence. In this way, the network repair can be determined in sequence according to the matching degree, thereby quickly determining the target repair method and improving work efficiency.

[0091] In some embodiments, the preset repair method may include multiple ones, and a perception parameter corresponding to each of the preset repair methods can be obtained; the perception parameter is used to characterize the user's perception level of the preset repair method; according to the perception parameter, the multiple preset repair methods are sorted to obtain a second target order; according to the second target order, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

[0092] For example, in a scenario where the user needs an immersive experience, the network connection between the terminal and the target network can be repaired in turn by each of the preset repair methods according to the second target order. For example, in a scenario where the user is playing games. This can reduce the user's perception of the repair process and improve the user experience.

[0093] For example, the second target order can be obtained by sorting the preset repair methods from low to high according to the user's perception of each preset repair method. In this way, the network repair can be performed in sequence according to the perception degree, which can reduce the impact on users and improve user experience.

[0094] It is understandable that the user's usage scenario can be determined based on the user's usage of the terminal device and / or the application in the terminal, so that the network connection between the terminal and the target network can be repaired in turn through each of the preset repair methods according to the target sequence corresponding to the usage scenario. In this way, the flexibility of using the repair method can be improved, and the user experience can be improved.

[0095] In other embodiments, the preset repair method may include multiple preset repair methods, and the multiple preset repair methods can be sorted according to the target network abnormality type to obtain a first target order of the multiple preset repair methods; a perception parameter corresponding to each of the preset repair methods is obtained; the perception parameter is used to characterize the user's perception degree of the preset repair method; according to the perception parameter, the multiple preset repair methods of the first target order are sorted to obtain a second target order; according to the second target order, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

[0096] For example, each preset repair method can be sorted from high to low according to the degree of matching between each preset repair method and the target network anomaly type; and then sorted from low to high according to the user's perception of each preset repair method to obtain a second target order. In this way, the target repair method can be quickly determined and the impact on the user can be reduced, thereby improving work efficiency and user experience.

[0097] It should be noted that repairing the network connection between the terminal and the target network by each of the preset repair methods in sequence according to the second target sequence is the same as the above-mentioned steps of performing network repair according to the first target sequence, and will not be repeated here.

[0098] In some embodiments, the first target sequence may include a first preset repair method and a second preset repair method; the above-mentioned repairing the network connection between the terminal and the target network in turn through each of the preset repair methods according to the first target sequence may include the following steps: repairing the network connection between the terminal and the target network in accordance with the first preset repair method; and obtaining a repair result; the repair result includes a successful repair and a failed repair; in the case where it is determined that the repair result is a successful repair, completing the network repair; in the case where it is determined that the repair result is a failed repair, repairing the network connection between the terminal and the target network in accordance with the second preset repair method, and repeating the above steps until the repair is successful. In this way, the network repair can be performed in turn through each preset repair method, thereby increasing the possibility of successful repair and thus improving work efficiency.

[0099] According to the above scheme, the type of network anomaly is determined through network anomaly information, and the network anomaly is actively repaired through a preset repair method, thereby achieving rapid repair of network anomalies without affecting the user's Internet experience, avoiding network interruptions, and improving the user's Internet experience.

[0100] Figure 3 FIG. 1 is a flow chart of another terminal control method according to an exemplary embodiment. Figure 3 As shown, the method is described as follows, wherein the network diagnosis is first performed through network anomaly information, and when the target network anomaly type cannot be determined, the network diagnosis is then performed through the connection status between the terminal and the network device; and multiple preset network anomaly types are sorted by the target network anomaly type and the perception parameter; the method may include the following steps:

[0101] S301: Acquire connection parameters between the terminal and the target network.

[0102] S302: Determine, based on the network connection parameters, that a network anomaly occurs in the target network to which the terminal is connected, and issue network anomaly information.

[0103] S303: Obtain network anomaly information of the target network.

[0104] S304: Determine, according to the network anomaly information, whether the target network anomaly type matching the network anomaly information can be determined from a plurality of preset network anomaly types.

[0105] If it is determined that the target network anomaly type can be determined from multiple preset network anomaly types, executing step S307;

[0106] If it is determined that the target network abnormality type cannot be determined from the plurality of preset network abnormality types, steps S305 - S306 are executed.

[0107] S305: Obtain the connection status between the terminal and the network device.

[0108] The connection status includes a normal connection status and an abnormal connection status.

[0109] S306: When the connection status indicates that the connection between the terminal and the network device is abnormal, determine that the target network abnormality type of the target network is an external device connection abnormality, and issue a prompt message.

[0110] The prompt information is used to prompt the user to perform a repair operation.

[0111] S307. According to the target network anomaly type, sort the multiple preset repair methods to obtain a first target order of the multiple preset repair methods; obtain a perception parameter corresponding to each of the preset repair methods; the perception parameter is used to characterize the user's perception degree of the preset repair method; according to the perception parameter, sort the multiple preset repair methods of the first target order to obtain a second target order; according to the second target order, repair the network connection between the terminal and the target network through each of the preset repair methods in turn.

[0112] According to the above scheme, the type of network anomaly is determined through network anomaly information, and the network anomaly is actively repaired through a preset repair method, thereby achieving rapid repair of network anomalies without affecting the user's Internet experience, avoiding network interruptions, and improving the user's Internet experience.

[0113] Figure 4 is a block diagram of a terminal control device according to an exemplary embodiment. Figure 4 , the device includes an acquisition module 410, a determination module 420 and a repair module 430;

[0114] The acquisition module 410 is configured to acquire network anomaly information of the target network when a network anomaly occurs in the target network to which the terminal is connected;

[0115] The determination module 420 is configured to determine a target network anomaly type of the target network according to the network anomaly information;

[0116] The repair module 430 is configured to repair the network connection between the terminal and the target network according to the target network anomaly type and a preset repair method.

[0117] According to the above scheme, the type of network anomaly is determined through network anomaly information, and the network anomaly is actively repaired through a preset repair method, thereby achieving rapid repair of network anomalies without affecting the user's Internet experience, avoiding network interruptions, and improving the user's Internet experience.

[0118] Optionally, the device further comprises:

[0119] The first determining module is configured to determine the target network anomaly type matching the network anomaly information from a plurality of preset network anomaly types.

[0120] Optionally, the device further comprises:

[0121] The second determination module is configured to determine the arrangement order of the plurality of preset network anomaly types at the application level of the terminal according to the plurality of preset network anomaly types; and match the network anomaly information in sequence according to the arrangement order to determine the target network anomaly type.

[0122] Optionally, the device further comprises:

[0123] The third determination module is configured to obtain a connection status between the terminal and the network device; and determine a target network abnormality type of the target network according to the connection status.

[0124] Optionally, the device further comprises:

[0125] The fourth determining module is configured to determine that the target network abnormality type of the target network is an external device connection abnormality when the connection state indicates that the connection between the terminal and the network device is abnormal.

[0126] Optionally, the device further comprises:

[0127] The prompt module is configured to issue a prompt message when it is determined that the target network abnormality type is the external device connection abnormality; the prompt message is used to prompt the user to perform a repair operation.

[0128] Optionally, the preset repair method may include multiple ones; the device further includes:

[0129] The first repair module is configured to sort the multiple preset repair methods according to the target network abnormality type to obtain a first target order of the multiple preset repair methods; according to the first target order, repair the network connection between the terminal and the target network in turn through each of the preset repair methods.

[0130] Optionally, the preset repair method may include multiple ones; the device further includes:

[0131] The second repair module is configured to obtain a perception parameter corresponding to each of the preset repair methods; the perception parameter is used to characterize the user's perception level of the preset repair method; according to the perception parameter, multiple preset repair methods are sorted to obtain a second target order; according to the second target order, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

[0132] Optionally, the preset repair method includes one or more of the following methods: resetting the media access control layer MAC or physical layer PHY of the terminal; switching the network access point; setting other domain name system DNS.

[0133] Optionally, determining that a network anomaly occurs in a target network to which the terminal is connected is performed in the following manner: obtaining connection parameters between the terminal and the target network; and determining that a network anomaly occurs in the target network to which the terminal is connected when the connection parameters are greater than or equal to a preset parameter threshold.

[0134] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0135] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the terminal control method provided by the present disclosure are implemented.

[0136] Figure 5 1 is a block diagram of an electronic device 500 according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0137] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output interface 512 , a sensor component 514 , and a communication component 516 .

[0138] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned terminal control method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0139] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0140] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0141] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0142] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0143] The input / output interface 512 provides an interface between the processing component 502 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0144] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0145] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0146] In an exemplary embodiment, the electronic device 500 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned terminal control method.

[0147] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to complete the terminal control method described above. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0148] Figure 6 6 is a block diagram of another electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be provided as a server. Figure 6 , the electronic device 600 includes a processing component 622, which further includes one or more processors, and a memory resource represented by a memory 632 for storing instructions executable by the processing component 622, such as an application. The application stored in the memory 632 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 622 is configured to execute instructions to perform the above-mentioned terminal control method.

[0149] The electronic device 600 may also include a power supply component 626 configured to perform power management of the electronic device 600, a wired or wireless network interface 650 configured to connect the electronic device 600 to a network, and an input / output interface 658. The electronic device 600 may operate based on an operating system stored in the memory 632, such as Windows Server 2000. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or similar.

[0150] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0151] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A terminal control method, characterized in that: Applied to a terminal, the method comprises: When a network anomaly occurs in a target network to which the terminal is connected, obtaining network anomaly information of the target network; Determining a target network anomaly type of the target network according to the network anomaly information; The network connection between the terminal and the target network is repaired according to the target network abnormality type and a preset repair method.

2. The method according to claim 1, characterized in that The determining, according to the network abnormality information, a target network abnormality type of the target network comprises: The target network anomaly type matching the network anomaly information is determined from a plurality of preset network anomaly types.

3. The method according to claim 2, characterized in that The determining the target network anomaly type matching the network anomaly information from a plurality of preset network anomaly types comprises: Determining an arrangement order of the plurality of preset network anomaly types at an application level of the terminal according to the plurality of preset network anomaly types; According to the arrangement order, the network anomaly information is matched in sequence to determine the target network anomaly type.

4. The method according to claim 1, characterized in that: The determining, according to the network abnormality information, a target network abnormality type of the target network further comprises: Obtaining the connection status between the terminal and the network device; The target network abnormality type of the target network is determined according to the connection status.

5. The method according to claim 4, characterized in that Determining the target network abnormality type of the target network according to the connection state includes: When the connection status indicates that the connection between the terminal and the network device is abnormal, it is determined that the target network abnormality type of the target network is an external device connection abnormality.

6. The method according to claim 5, characterized in that The method further comprises: When it is determined that the target network abnormality type is the external device connection abnormality, a prompt message is issued; the prompt message is used to prompt the user to perform a repair operation.

7. The method according to claim 1, characterized in that The preset repairing methods include multiple ones; and the repairing of the network connection between the terminal and the target network according to the target network abnormality type and the preset repairing method includes: According to the target network anomaly type, the plurality of preset repair methods are sorted to obtain a first target order of the plurality of preset repair methods; According to the first target sequence, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

8. The method according to claim 1, characterized in that The preset repairing methods include multiple ones; and the repairing the network connection between the terminal and the target network according to the target network abnormality type and the preset repairing method also includes: Acquire a perception parameter corresponding to each of the preset repair methods; the perception parameter is used to represent the user's perception degree of the preset repair method; According to the perception parameter, the plurality of preset repair methods are sorted to obtain a second target order; According to the second target sequence, the network connection between the terminal and the target network is repaired in turn through each of the preset repair methods.

9. The method according to claim 1, characterized in that: The preset repair method includes one or more of the following methods: Resetting the media access control layer MAC or the physical layer PHY of the terminal; Switch network access point; Set up additional Domain Name System DNS.

10. The method according to any one of claims 1 to 9, characterized in that Determine that a network anomaly occurs in the target network to which the terminal is connected by the following methods: Acquiring connection parameters between the terminal and the target network; When the connection parameter is greater than or equal to a preset parameter threshold, it is determined that a network abnormality occurs in the target network to which the terminal is connected.

11. A terminal control device, characterized in that: The device comprises: An acquisition module is configured to acquire network anomaly information of a target network when a network anomaly occurs in the target network to which the terminal is connected; A determination module, configured to determine a target network anomaly type of the target network according to the network anomaly information; The repair module is configured to repair the network connection between the terminal and the target network according to the target network abnormality type and a preset repair method.

12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the steps of the method described in any one of claims 1 to 9.

13. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.