Dynamic network switching method based on Android system

By dynamically adjusting the priority of network devices and monitoring communication status in the Android system, the problem that the Android system cannot automatically switch networks is solved, fast and seamless network connection is achieved, and network switching efficiency and business continuity are improved.

CN120358562APending Publication Date: 2025-07-22索诺克(苏州)光电有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510635375.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

The Android system only allows one network device to communicate with the Internet at the same time, and cannot automatically switch to other network devices, resulting in more manual intervention, affecting the network connection stability and business continuity of IoT devices.

Method used

By presetting the default priority order of multiple network devices, automatically adjust the priority and monitor the communication status, dynamically switch to the highest priority and normal communication network devices to achieve seamless network connection.

Benefits of technology

Improve network switching response speed, reduce manual intervention, ensure that the equipment always selects the best available network, and improves network recovery efficiency and business continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120358562A_ABST
    Figure CN120358562A_ABST
Patent Text Reader

Abstract

The invention discloses a network dynamic switching method based on an Android system. The method comprises the following steps: S1, presetting a default priority sequence of various network devices; s2, selecting the network equipment with the highest priority according to a default priority sequence to be in communication connection with the Internet, if the network equipment with the highest priority cannot communicate or the communication quality is unstable, adjusting the priority of the network equipment to be the lowest, and if the communication quality is not stable, adjusting the priority of the network equipment to be the lowest; adjusting the secondary priority network equipment to the highest priority, and sequentially adjusting the priorities of the remaining network equipment to form a new priority sequence; s3, traversing the network devices according to the new priority sequence, and selecting the network device with the highest priority and normal communication for communication; and S4, if it is monitored that the communication of the network equipment with the high priority in the default priority sequence is recovered to be normal, adjusting the priority of the network equipment with the communication recovered to be normal to be the highest, and switching the network equipment to be in communication connection with the Internet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technologies, and particularly relates to a method for dynamic network switching based on the Android system. Background Art

[0002] Due to its open source, customizable, and widely compatible nature, the Android system has become one of the most widely used Internet of Things operating systems. During the use of Internet of Things devices, they are often in different network environments. To ensure that the device always has a good network connection to meet the requirements of various network applications such as real-time communication on cloud platforms, file transfer, and online audio and video playback, the function of dynamically switching networks becomes crucial. Since the Android system only allows one network device to communicate with the Internet at the same time, and when the network device used by the system cannot access the Internet, it cannot actively switch to other network devices and can only be manually selected, which has a greater impact on the maintenance of Internet of Things devices. Summary of the Invention

[0003] The purpose of the present invention is to provide a method for dynamic network switching based on the Android system to solve the above problems.

[0004] To achieve the above purpose, the present invention adopts the following technical solutions:

[0005] A method for dynamic network switching based on the Android system, comprising the following steps:

[0006] S1. Preset the default priority order of multiple network devices;

[0007] S2. Select the network device with the highest priority according to the default priority order to communicate with the Internet. If the network device with the highest priority cannot communicate or the communication quality is unstable, then adjust the priority of this network device to the lowest, adjust the second-priority network device to the highest priority, and sequentially adjust the priorities of the remaining network devices to form a new priority order;

[0008] S3. Traverse each network device according to the new priority order, and select the network device with the highest priority and normal communication for communication;

[0009] S4. If it is detected that the communication of the network device with a high priority in the default priority order resumes normal, then adjust the priority of the network device with normal communication restored to the highest, and switch this network device to communicate with the Internet.

[0010] Preferably, step S1 further includes monitoring the communication status of multiple networks and configuring an intelligent monitoring frequency adjustment strategy to adjust the monitoring frequency in real time.

[0011] Preferably, the evaluation indicators of the communication quality include signal strength, transmission rate, and packet loss rate.

[0012] Preferably, the network devices include Ethernet, WiFi network, and mobile data network.

[0013] After adopting the above technical solution, compared with the background technology, the present invention has the following advantages:

[0014] The present invention provides a method for network dynamic switching based on the Android system. By establishing a recyclable and adjustable priority queue, when a high-priority network communication anomaly is detected, the network is automatically downgraded and the priority order is reorganized to ensure that the device always selects the currently optimal available network. Compared with the traditional fixed-priority scheme, the network switching response speed is improved; when it is monitored that the original high-priority network returns to normal, the system automatically restores its highest priority and performs seamless switching without manual intervention, improving the network recovery efficiency and effectively ensuring service continuity. Description of the Drawings

[0015] Figure 1 It is a network switching block diagram of the present invention. Detailed Embodiments

[0016] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0017] Embodiment

[0018] Please refer to Figure 1 As shown, the present invention discloses a method for network dynamic switching based on the Android system, including the following steps:

[0019] S1. Preset the default priority order of multiple network devices;

[0020] S2. Select the highest-priority network device according to the default priority order to communicate with the Internet. If the highest-priority network device cannot communicate or the communication quality is unstable, the priority of this network device is adjusted to the lowest, the second-priority network device is adjusted to the highest priority, and the priorities of the remaining network devices are adjusted in turn to form a new priority order;

[0021] S3. Traverse each network device according to the new priority order, and select the highest-priority and normally communicating network device for communication;

[0022] S4. If it is detected that the communication of the network device with a high priority in the default priority order has returned to normal, adjust the priority of the network device with normal communication to the highest, and switch this network device to communicate with the Internet.

[0023] Step S1 also includes monitoring the communication status of multiple networks and adjusting the monitoring frequency in real time according to the configured intelligent monitoring frequency adjustment strategy. When the network environment is stable, the detection frequency is reduced (the minimum can be set to 30 seconds / time), and when the network fluctuates, the detection frequency is automatically increased (up to 1 second / time), reducing the system resource consumption by about 25% while ensuring real-time performance.

[0024] The evaluation indicators of communication quality include multi-dimensional evaluations such as signal strength, transmission rate, and packet loss rate. By comprehensively evaluating the communication quality to trigger priority adjustment, the accuracy of network selection is improved.

[0025] The network devices include Ethernet, WiFi network, and mobile data network (4G, 5G). The collaborative management ability of Ethernet, WiFi, and mobile data is optimized, supporting three-network intelligent switching and load balancing. In a complex network environment, network latency can be reduced, and the data transmission success rate can be increased to.

[0026] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for network dynamic switching based on the Android system, characterized in that: It includes the following steps: S1. Preset the default priority order of multiple network devices; S2. Select the network device with the highest priority according to the default priority order to communicate with the Internet, and evaluate the communication quality during the communication process. If the network device with the highest priority cannot communicate or the communication quality is unstable, then adjust the priority of this network device to the lowest, adjust the network device with the second highest priority to the highest priority, and adjust the priorities of the remaining network devices in turn to form a new priority order; S3. Traverse each network device according to the new priority order, and select the network device with the highest priority and normal communication for communication; S4. If it is detected that the communication of the network device with a high priority in the default priority order resumes normal, then adjust the priority of the network device with normal communication restored to the highest, and switch this network device to communicate with the Internet.

2. The method for network dynamic switching based on the Android system according to claim 1, characterized in that: Step S1 also includes monitoring the communication status of multiple networks, and adjusting the monitoring frequency in real time according to the configured intelligent monitoring frequency adjustment strategy.

3. The method for network dynamic switching based on the Android system according to claim 1, wherein: The evaluation indexes of the communication quality include signal strength, transmission rate, and packet loss rate.

4. The method for network dynamic switching based on the Android system according to claim 1, wherein: The network devices include Ethernet, WiFi network, and mobile data network.