Network setting method and device
A network and cellular network technology, applied in the field of communication, can solve problems such as loading driver failure, poor compatibility, and complicated operation steps, and achieve the effects of reducing adaptation work, stable performance, and simple operation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] An embodiment of the present invention provides a network setting method, such as figure 1 As shown, the method may include:
[0039] Step 101. When the first network is started, the network setting device obtains DNS information of the first network according to a preset command, and saves the DNS information.
[0040] Wherein, the first network is a cellular network. Cellular network is a kind of mobile communication hardware architecture, which divides the service area of mobile phones into small regular hexagonal sub-areas, and each cell has a base station, forming a structure that resembles a "beehive". Therefore, this mobile communication method Called cellular mobile communication. In the embodiment of the present invention, the cellular network may be a 3G / 4G network, or may be a cellular network of various standards such as 5G in the future.
[0041] Specifically, the preset command is an adb shell command. When the cellular network is enabled, the networ...
Embodiment 2
[0053] An embodiment of the present invention provides a network setting method, such as figure 2 As shown, the method may include:
[0054] Step 201, the network setting device determines whether the second network is enabled.
[0055] Specifically, the second network is a wireless WiFi network. The network setting device judges whether the WiFi is turned on, and the judging method can be realized through an adb shell command, that is, the network setting device judges whether the WiFi is turned on through the adb shell command.
[0056] Step 202, when the second network is turned on, the network setting device turns off the second network according to the preset command.
[0057] Specifically, if the WiFi is enabled, the network setting device uses the adb command to disable the WiFi.
[0058] Step 203, the network setting device determines whether the first network is enabled.
[0059] Specifically, the first network is a cellular network, and the network setting devic...
Embodiment 3
[0079] An embodiment of the present invention provides a network setting device 1, such as image 3 As shown, the device 1 may include: an acquisition unit 10, a storage unit 11, and a processing unit 12, wherein,
[0080] The acquiring unit 10 is configured to acquire Domain Name System (DNS) information of the first network according to a preset command when the first network is turned on;
[0081] The storage unit 11 is configured to save the DNS information;
[0082] The processing unit 12 is configured to open the second network according to the preset command, and is also used to set DNS according to the saved DNS information; and is also used to call an application programming interface API every preset time to open the second network. a network, and set routing information according to the first network.
[0083] Further, the preset command is an adb shell command.
[0084] Further, the processing unit 12 is configured to invoke the startUsingNetworkFeature() method...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


