Dynamic adaptive network processing method and device, electronic equipment and storage medium

By deploying monitoring system services on the client, regularly monitoring network status and dynamically adaptively adjusting network configuration, the communication interruption problem caused by changes in the client network is solved, and stable communication between the client and the server is achieved.

CN119815462APending Publication Date: 2025-04-11SHANGHAI JIEKA ROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411842374.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

In the air download system, when the client network changes, communication with the server cannot be restored normally, resulting in communication interruption.

Method used

By deploying monitoring system services on the client, regularly monitoring the network status, determining whether the first network is enabled, if not enabled, dial-up online, deciding whether to enable other networks based on the dial-up results, and determining and enabling target network and dedicated host routing based on the preset routing line and the network to be selected.

Benefits of technology

It realizes active monitoring and dynamic adaptation of the client network, ensures the communication stability between the client and the server, and avoids communication interruptions caused by network changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815462A_ABST
    Figure CN119815462A_ABST
Patent Text Reader

Abstract

The invention provides a dynamic self-adaptive network processing method and device, electronic equipment and a storage medium, and is applied to monitoring system service deployed on a client, and the method comprises the steps: monitoring a client network according to a preset time interval, and determining whether a first network of the client is started or not for the current monitoring; if not, controlling a communication module of the first network to perform dial-up networking, and obtaining a dial-up result of the communication module; determining whether other networks are started or not according to the dialing result; and if yes, determining and starting a target network and a target dedicated host route according to each preset routing line and each to-be-selected network. According to the method, the client network can be monitored, and when the first network is unstable, whether other routing lines and other networks are available or not can be actively detected, so that the client can communicate with the server through the target network and the target special host routing, and the stability of communication between the client and the server is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a dynamic adaptive network processing method, device, electronic device and storage medium. Background Art

[0002] When the client of the Over-The-Air (OTA) system communicates with the server, a message queue (MQ) is used for message transmission. However, when the client network changes, the client cannot normally restore communication with the server.

[0003] Therefore, there is an urgent need for a method that can monitor the client network and respond to changes in the client network. Summary of the invention

[0004] The purpose of the present application is to provide a dynamic adaptive network processing method, device, electronic device and storage medium to improve the accuracy of dynamic adaptive network processing in view of the deficiencies in the above-mentioned prior art.

[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, an embodiment of the present application provides a dynamic adaptive network processing method, which is applied to a monitoring system service deployed on a client, and the method includes:

[0007] Monitoring the client network at a preset time interval, and determining whether the first network of the client is enabled for the current monitoring;

[0008] If it is not enabled, controlling the communication module of the first network to dial up to the Internet, and obtaining the dial-up result of the communication module;

[0009] Determine whether to enable other networks according to the dialing result;

[0010] If so, the target network and the target dedicated host route are determined and enabled according to each preset routing line and each candidate network.

[0011] Optionally, determining whether the first network of the client is enabled includes:

[0012] Monitoring whether the client is running a preset communication process;

[0013] If so, determine that the first network is enabled, and determine whether the network has changed based on the previous network and the first network; if not, determine that the first network is not enabled, wherein the previous network is the network used by the client when performing the last monitoring of the current time.

[0014] Optionally, the determining whether a network has changed according to a previous network and the first network includes:

[0015] If the previous network is the same as the first network, determining that the network has not changed;

[0016] If the previous network is different from the first network, it is determined that the network has changed, and the over-the-air download service in the client is restarted.

[0017] Optionally, determining whether to enable other networks according to the dialing result includes:

[0018] If the dialing result is a failure, it is determined to enable other networks; if the dialing result is a success, it is determined not to switch to other networks, and a dedicated host route corresponding to the first network is created, and the over-the-air download service in the client is restarted.

[0019] Optionally, after creating the dedicated host route corresponding to the first network, the step includes:

[0020] Delete the default gateway in the client.

[0021] Optionally, the determining and enabling the target network and the target dedicated host routing according to each preset routing line and each network to be selected includes:

[0022] Determine a target routing line from each of the preset routing lines, determine a target network from each of the candidate networks, and enable the target network;

[0023] According to the target routing line and the target network, the target dedicated host route is created and enabled, and according to the target network and the previous network, it is determined whether to restart the over-the-air download service in the client, and the target dedicated host route is used to indicate that information is transmitted in the target network through the target dedicated host route.

[0024] Optionally, it also includes:

[0025] If the target network is not determined from the other networks, the network is determined to be unavailable, and the communication module of the first network is controlled again to dial up the Internet until the number of times the network is determined to be unavailable reaches a preset number, and the control of the communication module of the first network to dial up the Internet is stopped.

[0026] In a second aspect, an embodiment of the present application further provides a dynamic adaptive network processing device, the device comprising:

[0027] A monitoring module, configured to monitor the client network at a preset time interval, and determine whether the first network of the client is enabled for the current monitoring;

[0028] an acquisition module, for controlling the communication module of the first network to dial up to the Internet if it is not enabled, and acquiring the dial-up result of the communication module;

[0029] A determination module, used to determine whether to enable other networks according to the dialing result;

[0030] The determination module is used to determine and enable the target network and the target dedicated host routing according to each preset routing line and each candidate network.

[0031] Optionally, the determining module is specifically used to:

[0032] Monitoring whether the client is running a preset communication process;

[0033] If so, determine that the first network is enabled, and determine whether the network has changed based on the previous network and the first network; if not, determine that the first network is not enabled, wherein the previous network is the network used by the client when performing the last monitoring of the current time.

[0034] Optionally, the determining module is specifically used to:

[0035] If the previous network is the same as the first network, determining that the network has not changed;

[0036] If the previous network is different from the first network, it is determined that the network has changed, and the over-the-air download service in the client is restarted.

[0037] Optionally, the determining module is specifically used to:

[0038] If the dialing result is a failure, it is determined to enable other networks; if the dialing result is a success, it is determined not to switch to other networks, and a dedicated host route corresponding to the first network is created, and the over-the-air download service in the client is restarted.

[0039] Optionally, the determining module is specifically used to:

[0040] Delete the default gateway in the client.

[0041] Optionally, the determining module is specifically used to:

[0042] Determine a target routing line from each of the preset routing lines, determine a target network from each of the candidate networks, and enable the target network;

[0043] According to the target routing line and the target network, the target dedicated host route is created and enabled, and according to the target network and the previous network, it is determined whether to restart the over-the-air download service in the client, and the target dedicated host route is used to indicate that information is transmitted in the target network through the target dedicated host route.

[0044] Optionally, the determining module is specifically used to:

[0045] If the target network is not determined from the other networks, the network is determined to be unavailable, and the communication module of the first network is controlled again to dial up the Internet until the number of times the network is determined to be unavailable reaches a preset number, and the control of the communication module of the first network to dial up the Internet is stopped.

[0046] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when an application is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to execute the steps of the dynamic adaptive network processing method described in the first aspect above.

[0047] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is read and executes the steps of the dynamic adaptive network processing method described in the first aspect above.

[0048] The beneficial effects of this application are:

[0049] The present application provides a dynamic adaptive network processing method, device, electronic device and storage medium. The method monitors the client network at preset time intervals. During the current monitoring, it is first determined whether the first network of the client is enabled. If not, the communication module of the first network is controlled to dial up to the Internet, and the dial-up result of the communication module is obtained, so as to determine whether other networks are enabled according to the dial-up result. If it is determined that other networks are enabled, it is necessary to determine and enable the target network and the target dedicated host route according to each preset routing line and each candidate network. Active monitoring of the client network can be achieved, and when it is determined during the monitoring process that the first network is not enabled, the communication module of the first network can be actively controlled to dial up the Internet, and whether to enable other networks can be determined based on the dial-up results. If other networks need to be started, the target network and the target dedicated host route can be determined and enabled according to each preset routing line and each selected network. Active detection of other routing lines and other networks can be achieved to determine whether they are available, and when the target network and the target dedicated host route are determined, the target network and the target dedicated host route can be automatically started, so that the client can communicate with the server through the target network and the target dedicated host route, thereby ensuring the stability of communication between the client and the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A schematic diagram of a flow chart of a dynamic adaptive network processing method provided in an embodiment of the present application;

[0052] Figure 2 A flowchart of another dynamic adaptive network processing method provided in an embodiment of the present application;

[0053] Figure 3 A schematic diagram of a device for a dynamic adaptive network processing method provided in an embodiment of the present application;

[0054] Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0056] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0057] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0058] Optionally, the dynamic adaptive network processing method provided in the embodiment of the present application is applied to a monitoring system service deployed on a client, which may be, for example, a mobile phone, tablet computer, laptop computer, PDA, desktop computer, or other terminal device with computing and display capabilities.

[0059] The specific implementation process of the dynamic adaptive network processing provided in the embodiments of the present application is explained in detail below.

[0060] Figure 1 The present invention provides a flow chart of a dynamic adaptive network processing method, the execution subject of the method is the monitoring system service deployed on the client as mentioned above. Figure 1 As shown, the method includes:

[0061] S101. Monitor the client network at preset time intervals.

[0062] Optionally, when the client and the server are communicating, the monitoring system service may monitor the client network at a preset time, wherein the preset time may be set according to actual conditions, and the preset time may be, for example, 50ms, 60ms, 70ms, 80ms, etc. Then the monitoring system service may monitor the client network once every 50ms, once every 70ms, once every 60ms, or once every 80ms.

[0063] S102: for the current monitoring, determine whether the first network of the client is enabled.

[0064] Optionally, if not enabled, execute the following step S103; if enabled, execute the following step S107.

[0065] The first network may be a fourth generation mobile communication technology (4G) network. The network status of the 4G network may be determined by checking whether the 4G network of the client is enabled.

[0066] Optionally, at the beginning of each monitoring, the monitoring system service needs to first determine whether the client's first network is enabled, that is, determine whether the client's 4G network is enabled. If the 4G network is enabled during the current monitoring, it means that the status of the 4G network is normal and is being used normally; if the 4G network is not enabled when the current monitoring starts, it means that the network status of the 4G network is unstable and the 4G network is not being used at this time.

[0067] S103: Control the communication module of the first network to dial up to the Internet, and obtain the dial-up result of the communication module.

[0068] Optionally, when the monitoring system service determines that the 4G network is not enabled, it can first control the communication module of the 4G network to dial up the Internet, wherein the communication module of the 4G network is a 4G module, specifically, it can control the start of the Qualcomm MSM Interface (QMI) dial-up service to implement the dial-up Internet access of the 4G module, and monitor and obtain the dial-up result of the 4G module after the 4G module dials up the Internet. The dial-up result may include: dial-up success and dial-up failure.

[0069] S104: Determine whether to enable other networks according to the dialing result.

[0070] Optionally, the monitoring system service may use a preset method to determine whether other networks need to be enabled based on the dial-up results obtained. Other networks may refer to other networks connected to the client, such as wired networks and wireless networks, wherein wired networks may include Ethernet, wired LAN, wired WAN, optical fiber network, and cable network, etc. Wireless networks may include, for example, wifi networks, wireless LANs, wireless WANs, wireless personal area networks, etc.

[0071] Optionally, if it is determined that other networks are enabled, the following step S105 is executed; if it is determined that other networks are not enabled, the following step S106 is executed.

[0072] S105: Determine and enable the target network and the target dedicated host routing according to each preset routing line and each candidate network.

[0073] Among them, each candidate network refers to other networks connected to the client, and each preset routing line refers to the routing line in the client. The monitoring system service can use the preset method according to each preset routing line and each candidate network to determine and enable the target network and the target dedicated host routing. After enabling the target network and the target dedicated host routing, the client can communicate with the server through the target network and the target dedicated host routing.

[0074] S106: Determine to use the first network.

[0075] That is, using 4G network.

[0076] S107: Determine whether the network has changed, and determine whether to restart the OTA service based on whether the network has changed.

[0077] Determining whether the network has changed refers to determining whether the currently monitored network has changed from the previous network monitored last time before the current network has changed, and determining whether to restart the OTA service based on whether the network has changed.

[0078] In this embodiment, by monitoring the client network at a preset time interval, during the current monitoring, it is first determined whether the first network of the client is enabled. If it is not enabled, the communication module of the first network is controlled to dial up the Internet, and the dialing result of the communication module is obtained, so as to determine whether to enable other networks according to the dialing result. If it is determined that other networks are enabled, it is necessary to determine and enable the target network and the target dedicated host route according to each preset routing line and each network to be selected. Active monitoring of the client network can be achieved, and when it is determined that the first network is not enabled during the monitoring process, the communication module of the first network can be actively controlled to dial up the Internet, and it is determined whether to enable other networks according to the dialing result. If it is necessary to start other networks, the target network and the target dedicated host route can be determined and enabled according to each preset routing line and each network to be selected. It can be realized to actively detect whether other routing lines and other networks are available, and when the target network and the target dedicated host route are determined, the target network and the target dedicated host route can be automatically started, so that the client can communicate with the server through the target network and the target dedicated host route, and the stability of the communication between the client and the server is guaranteed.

[0079] Optionally, determining whether the first network of the client is enabled in S102 may include:

[0080] Optionally, it may be monitored whether a preset communication process is running in the client, wherein the preset communication process refers to a Qualcomm Messaging Interface (QMI) communication process.

[0081] Specifically, if the monitoring system service detects the existence of a QMI process in the client, it determines that the 4G network is enabled, and determines whether the network has changed based on the previous network and the first network, wherein the previous network refers to the network used by the client when the previous monitoring was performed. If the monitoring system service does not detect the existence of a QMI process in the client, it determines that the 4G network is not enabled, and at this time, the 4G module is controlled to dial up to the Internet, and the dial-up result of the 4G module is obtained. Among them, the 4G module is controlled to dial up to the Internet, and the 4G module dials up to the Internet by starting the QMI dial-up service when dialing up to the Internet.

[0082] In this embodiment, compared with the existing 4G module using the point-to-point Protocol over Ethernet (PPPoE) dial-up service, the stability of using the QMI dial-up service is better.

[0083] Optionally, the determining whether the network has changed according to the previous network and the first network may include:

[0084] Optionally, if the previous network is the same as the first network, it is determined that the network has not changed, and the first network continues to be used; if the previous network is different from the first network, it is determined that the network has changed, and the client's Over-the-Air (OTA) service needs to be restarted.

[0085] For example, if the 4G network is enabled when the current monitoring starts, and the network used by the client during the last monitoring is also the 4G network, then it is determined that the network has not changed, and the 4G network continues to be used. If the 4G network is enabled when the current monitoring starts, and the network used by the client during the last monitoring is also the wifi network, then it is determined that the network has changed, and the OTA service needs to be restarted.

[0086] In this embodiment, when the network currently monitored changes from the network last monitored before the current time, it is necessary to restart the OTA service, which can make the current network more stable.

[0087] Optionally, determining whether to enable other networks according to the dialing result in S104 may include:

[0088] Optionally, if the dialing result is a failure, it is determined to enable other networks, that is, when the monitoring system service controls the 4G module to dial and the dialing fails, it means that the 4G network cannot be used. At this time, it is necessary to select an available network from other networks and enable it. If the dialing result is successful, it is determined not to switch to other networks, and create a dedicated host route corresponding to the first network, and restart the over-the-air download service in the client. When the 4G module dials successfully, it means that the 4G network can be used. At this time, the monitoring system service can create a dedicated host route for the first network, that is, the 4G network, so that the client can communicate with the server based on the 4G network through the dedicated host route.

[0089] When creating a dedicated host route corresponding to the first network, the IP of the server communicating with the client can be pointed to an available host route, and the communication between the client and the server needs to be carried out through the dedicated host route corresponding to the created first network.

[0090] Optionally, after creating the dedicated host route corresponding to the first network, the following steps may be included:

[0091] Since the dedicated host route corresponding to the created first network is the routing line used by the default gateway in the client, when the first network is enabled, the first network is used as the gateway and the default gateway in the client is deleted. At this time, the server IP is pointed to the routing line used by the default gateway, and the dedicated host route corresponding to the first network is created.

[0092] Figure 2 A flow chart of another dynamic adaptive network processing method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the above S105 determines and enables the target network and the target dedicated host route according to each preset routing line and each candidate network, which may include:

[0093] S201, determining a target routing line from each preset routing line, determining a target network from each candidate network, and activating the target network.

[0094] Among them, each preset routing line refers to each routing line pre-stored in the client. The ping command can be used to detect whether each preset routing line is available. If an available routing line is detected, a route can be randomly selected from the available routes as the target routing line. At the same time, the available networks in each candidate network can be detected, and a network can be selected from the available networks as the target network, and the target network can be enabled, that is, the client's communication network is switched to the target network, so that the client can communicate with the server based on the target network.

[0095] Among them, the ping command is a network tool used to test the network connectivity between hosts.

[0096] S202: Create and enable a target dedicated host route according to the target route and the target network, and restart the over-the-air download service in the client.

[0097] The target dedicated host route refers to transmitting information in the target network through the target dedicated host route.

[0098] Optionally, you can set the target route to the target network and point the server's IP to the target route, that is, create a target dedicated host route, so that the client can communicate with the server under the target network through the target dedicated host route, that is, the messages between the client and the server are based on the target network and transmitted through the target dedicated host route.

[0099] Optionally, after creating the target dedicated host route, it is also necessary to determine whether to restart the client's OTA service based on the target network and the previous network. After the restart, the client can enable the target dedicated host route, and the current monitoring is completed.

[0100] Specifically, if the target network is the same as the previous network, it is determined that the network has not changed, and there is no need to restart the client's OTA service, and the target dedicated host route and target network continue to be used for communication; if the target network is different from the previous network, it is determined that the network has changed, and the client's OTA service needs to be restarted.

[0101] In this embodiment, the monitoring system service gives priority to using the first network for communication. When the first network is unstable, it will actively monitor whether there are other routing lines and whether other networks are available, and automatically switch to the available network, and restart the OTA service in the client, thereby ensuring the stability of client communications to the greatest extent.

[0102] Optionally, the above method may further include:

[0103] Optionally, if the target network is not determined from the other networks, the network is determined to be unavailable, and the communication module of the first network is controlled again to dial up the Internet until the number of times the network is determined to be unavailable reaches a preset number, then the control of the communication module of the first network to dial up the Internet is stopped.

[0104] The preset number of times may be, for example, 5 times, 6 times, 7 times, 8 times, etc., and may be set according to actual conditions.

[0105] In order to more clearly illustrate the complete process of the monitoring system service in each monitoring process, a complete example is used below to illustrate.

[0106] For example, during the current monitoring, if the monitoring system service determines that the 4G network is not enabled, the monitoring system service can control the 4G communication module to dial up to the Internet.

[0107] Among them, if the dial-up is successful, a dedicated host route corresponding to the 4G network is created, and if the current 4G network is different from the previous network monitored last time, the OTA service is controlled to restart and the current monitoring is exited; if the current 4G network is the same as the previous network monitored last time, there is no need to restart the OTA service and the current monitoring is exited.

[0108] If the 4G communication module fails to dial, monitor whether there are other available networks and other available routing lines. If there is an available network, determine the target network and the target dedicated host route, and determine whether the target network has changed from the previous network. If there is a change, restart the client's OTA service and exit the current monitoring; if there is no change, restart the client's OTA service; if there is no available network, that is, the network is unavailable, re-control the 4G module to dial up the Internet until it is determined that the number of times the network is unavailable reaches the preset number, then stop controlling the 4G module to dial up the Internet.

[0109] In this embodiment, the 4G network status can be monitored through the monitoring system service. When the 4G network is not enabled, the dial-up Internet access of the 4G module can be controlled first, so that the 4G network can re-establish a connection. When the 4G module dial-up fails, that is, the 4G network is unavailable, the monitoring system service can detect other available host routes and other networks, determine and enable the target network and the target dedicated host route. This enables the client network to achieve dynamic adaptive network communication.

[0110] In this embodiment, a Linux Shell script is used to implement the function of monitoring the system service in the above specific embodiment. Other development languages ​​can also be used, which is not limited here.

[0111] Figure 3 A schematic diagram of a device for a dynamic adaptive network processing method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the device comprises:

[0112] The monitoring module 301 is used to monitor the client network at a preset time interval, and determine whether the first network of the client is enabled for the current monitoring;

[0113] The acquisition module 302 is used to control the communication module of the first network to dial up to the Internet if it is not enabled, and to obtain the dial-up result of the communication module;

[0114] A determination module 303, configured to determine whether to enable other networks according to the dialing result;

[0115] The determination module 303 is used to determine and enable the target network and the target dedicated host route according to each preset routing line and each candidate network.

[0116] Optionally, the determining module 303 is specifically configured to:

[0117] Monitoring whether the client is running a preset communication process;

[0118] If so, determine that the first network is enabled, and determine whether the network has changed based on the previous network and the first network; if not, determine that the first network is not enabled, wherein the previous network is the network used by the client when performing the last monitoring of the current time.

[0119] Optionally, the determining module 303 is specifically configured to:

[0120] If the previous network is the same as the first network, determining that the network has not changed;

[0121] If the previous network is different from the first network, it is determined that the network has changed, and the over-the-air download service in the client is restarted.

[0122] Optionally, the determining module 303 is specifically configured to:

[0123] If the dialing result is a failure, it is determined to enable other networks; if the dialing result is a success, it is determined not to switch to other networks, and a dedicated host route corresponding to the first network is created, and the over-the-air download service in the client is restarted.

[0124] Optionally, the determining module 303 is specifically configured to:

[0125] Delete the default gateway in the client.

[0126] Optionally, the determining module 303 is specifically configured to:

[0127] Determine a target routing line from each of the preset routing lines, determine a target network from each of the candidate networks, and enable the target network;

[0128] According to the target routing line and the target network, the target dedicated host route is created and enabled, and according to the target network and the previous network, it is determined whether to restart the over-the-air download service in the client, and the target dedicated host route is used to indicate that information is transmitted in the target network through the target dedicated host route.

[0129] Optionally, the determining module 303 is specifically configured to:

[0130] If the target network is not determined from the other networks, the network is determined to be unavailable, and the communication module of the first network is controlled again to dial up the Internet until the number of times the network is determined to be unavailable reaches a preset number, and the control of the communication module of the first network to dial up the Internet is stopped.

[0131] Figure 4 4 is a structural block diagram of an electronic device 400 provided in an embodiment of the present application, and the electronic device may be, for example, a client in the aforementioned embodiment. Figure 4 As shown, the electronic device may include: a processor 401 and a memory 402 .

[0132] Optionally, a bus 403 may also be included, wherein the memory 402 is used to store machine-readable instructions executable by the processor 401 (for example, Figure 3 The monitoring module, the acquisition module, the execution instructions corresponding to the determination module in the device, etc.), when the electronic device 400 is running, the processor 401 communicates with the memory 402 through the bus 403, and the method steps in the above method embodiment are executed by the processor 401.

[0133] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the embodiment of the above-mentioned dynamic adaptive network processing method are executed.

[0134] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0135] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.

[0136] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A dynamic adaptive network processing method, characterized in that: Applied to a monitoring system service deployed on a client, the method comprises: Monitor the client network at a preset time interval, and determine whether the first network of the client is enabled for the current monitoring; If it is not enabled, controlling the communication module of the first network to dial up to the Internet, and obtaining the dial-up result of the communication module; Determining whether to enable other networks according to the dialing result; If so, the target network and the target dedicated host route are determined and enabled according to each preset routing line and each candidate network.

2. The dynamic adaptive network processing method according to claim 1, characterized in that: The determining whether the first network of the client is enabled includes: Monitoring whether the client is running a preset communication process; If so, determine that the first network is enabled, and determine whether the network has changed based on the previous network and the first network; if not, determine that the first network is not enabled, wherein the previous network is the network used by the client when performing the last monitoring of the current time.

3. The dynamic adaptive network processing method according to claim 2, characterized in that: The determining, according to the previous network and the first network, whether the network has changed includes: If the previous network is the same as the first network, determining that the network has not changed; If the previous network is different from the first network, it is determined that the network has changed, and the over-the-air download service in the client is restarted.

4. The dynamic adaptive network processing method according to claim 1, characterized in that: The step of determining whether to enable other networks according to the dialing result includes: If the dialing result is a failure, it is determined to enable other networks; if the dialing result is a success, it is determined not to switch to other networks, and a dedicated host route corresponding to the first network is created, and the over-the-air download service in the client is restarted.

5. The method according to claim 4, characterized in that After the dedicated host route corresponding to the first network is created, the method includes: Delete the default gateway in the client.

6. The dynamic adaptive network processing method according to claim 1, characterized in that: The step of determining and enabling the target network and the target dedicated host routing according to each preset routing line and each candidate network includes: Determine a target routing line from each of the preset routing lines, determine a target network from each of the candidate networks, and enable the target network; According to the target routing line and the target network, the target dedicated host route is created and enabled, and according to the target network and the previous network, it is determined whether to restart the over-the-air download service in the client, and the target dedicated host route is used to indicate that information is transmitted in the target network through the target dedicated host route.

7. The dynamic adaptive network processing method according to claim 1, characterized in that: Also includes: If the target network is not determined from the other networks, the network is determined to be unavailable, and the communication module of the first network is controlled again to dial up the Internet until the number of times the network is determined to be unavailable reaches a preset number, and the control of the communication module of the first network to dial up the Internet is stopped.

8. A dynamic adaptive network processing device, characterized in that: include: A monitoring module, configured to monitor the client network at a preset time interval, and determine whether the first network of the client is enabled for the current monitoring; an acquisition module, for controlling the communication module of the first network to dial up to the Internet if it is not enabled, and acquiring the dial-up result of the communication module; A determination module, used to determine whether to enable other networks according to the dialing result; The determination module is used to determine and enable the target network and the target dedicated host routing according to each preset routing line and each candidate network.

9. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor implements the steps of the dynamic adaptive network processing method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the dynamic adaptive network processing method according to any one of claims 1 to 7 are executed.