Network connection control method and apparatus, and storage medium
By preventing automatic switching to a low-performance network when a mobile device cannot connect to the primary network and displaying a prompt message, the issue of mobile devices failing to connect within the wireless network coverage area is resolved, improving user experience and avoiding additional charges.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2021-02-09
- Publication Date
- 2026-04-10
AI Technical Summary
When a mobile device is within the coverage area of a wireless network but cannot connect, it automatically switches to a network with lower performance, resulting in additional charges and a degraded user experience.
When a mobile device cannot connect to the first network, it should prevent automatic switching to the second network with lower performance and output a prompt message to help users identify and resolve connection problems.
This effectively avoids unnecessary charges and improves users' network connection success rate and user experience.
Smart Images

Figure CN114915984B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of mobile communication, and in particular, to a network connection control method and device, and a storage medium. BACKGROUND
[0002] Wireless network is a function frequently used by various electronic devices, maintains data exchange between electronic devices, and is used very frequently, and is one of the bridges connecting all things. However, in the process of using the wireless network by the electronic device, various conditions often occur, which cause the electronic device to fail to connect to the wireless network. In this case, the user often ignores the problem, or believes that the electronic device has connected to the wireless network, but in fact, the electronic device still uses the traffic of the electronic device, which causes additional charges. SUMMARY
[0003] The present disclosure provides a network connection control method and device, and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a network connection control method is provided, applied to a mobile device, comprising:
[0005] When the mobile device is in the coverage range of a first network, determining whether the mobile device successfully connects to the first network;
[0006] If the first network fails to be connected, the mobile device is prohibited from automatically switching from connecting the first network to connecting a second network, and prompt information is output; wherein the network performance of the second network is lower than that of the first network.
[0007] Optionally, the output prompt information comprises:
[0008] When it is determined that the mobile device does not start the connection function of the first network, prompt information prompting to start the connection function of the first network is output;
[0009] Alternatively,
[0010] When it is determined that the mobile device has started the connection function of the first network, prompt information prompting the connection error of the first network is output or prompt information prompting to restart the first network is output.
[0011] Optionally, the method further comprises:
[0012] Obtaining network connection information of the mobile device;
[0013] When it is determined that the mobile device has started the connection function of the first network, the prompt information prompting the connection error of the first network is output, comprising:
[0014] determining that the mobile device has started the connection function of the first network, and determining that the mobile device is in the coverage of the first network according to the network connection information, and the connection state of the first network is changed from connection success to connection failure, outputting prompt information prompting the first network connection error.
[0015] Optionally, the outputting prompt information prompting to restart the first network when it is determined that the mobile device has started the connection function of the first network comprises:
[0016] re-establishing the connection with the first network when it is determined that the mobile device has started the connection function of the first network.
[0017] outputting prompt information prompting to restart the first network when the number of re-establishing the connection with the first network exceeds a preset threshold.
[0018] Optionally, the method further comprises:
[0019] obtaining the movement information of the mobile device.
[0020] determining whether the mobile device is in the coverage of the first network according to the movement information.
[0021] Optionally, the method further comprises:
[0022] obtaining the positioning information corresponding to the network signal of the first network when the network signal of the first network is detected.
[0023] determining the coverage of the first network based on the positioning information.
[0024] The determining whether the mobile device is in the coverage of the first network according to the movement information comprises:
[0025] determining the movement track of the mobile device according to the movement information.
[0026] obtaining the target movement position of the mobile device according to the movement track.
[0027] determining whether the mobile device is in the coverage of the first network according to the target movement position and the coverage of the first network.
[0028] Optionally, the movement information comprises acceleration information detected by an acceleration sensor, or speed information detected by a speed sensor.
[0029] The determining the movement track of the mobile device according to the movement information comprises:
[0030] integrate the acceleration information or the speed information to determine a displacement of the mobile device;
[0031] determine a movement track of the mobile device according to the displacement and positioning information of the mobile device at a starting time of the acceleration sensor or the speed sensor.
[0032] According to a second aspect of the embodiments of the present disclosure, a network connection control apparatus is provided, applied to a mobile device, and comprising:
[0033] a first determining module configured to determine whether the mobile device successfully connects to a first network when the mobile device is in a coverage range of the first network;
[0034] a processing module configured to, if the mobile device fails to connect to the first network, prohibit the mobile device from automatically switching from connecting to the first network to connecting to a second network, and output a prompt information; wherein the second network has a lower network performance than the first network.
[0035] Optionally, the processing module comprises:
[0036] a first type of output module configured to, when it is determined that the mobile device does not start a connection function of the first network, output a prompt information prompting to start the connection function of the first network;
[0037] or,
[0038] a second type of output module configured to, when it is determined that the mobile device starts the connection function of the first network, output a prompt information prompting a connection error of the first network or output a prompt information prompting to restart the first network.
[0039] Optionally, the apparatus further comprises:
[0040] a network connection obtaining module configured to obtain network connection information of the mobile device;
[0041] the second type of output module is further configured to:
[0042] when it is determined that the mobile device starts the connection function of the first network, and according to the network connection information, it is determined that the mobile device is in the coverage range of the first network, and the connection state of the first network changes from successful connection to failed connection, output the prompt information prompting the connection error of the first network.
[0043] Optionally, the second type of output module is further configured to:
[0044] when it is determined that the mobile device starts the connection function of the first network, re-establish a connection with the first network;
[0045] output prompt information prompting to restart the first network when the number of connection reestablishments with the first network exceeds a preset threshold.
[0046] Optionally, the apparatus further includes:
[0047] a mobile information acquisition module configured to acquire mobile information of the mobile device;
[0048] a position determination module configured to determine whether the mobile device is within a coverage range of the first network according to the mobile information.
[0049] Optionally, the apparatus further includes:
[0050] a positioning information acquisition module configured to acquire corresponding positioning information when detecting a network signal of the first network;
[0051] a range determination module configured to determine the coverage range of the first network based on the positioning information;
[0052] the position determination module includes:
[0053] a trajectory determination module configured to determine a moving trajectory of the mobile device according to the mobile information;
[0054] a target moving position determination module configured to acquire a target moving position of the mobile device according to the moving trajectory;
[0055] a position determination sub-module configured to determine whether the mobile device is within the coverage range of the first network according to the target moving position and the coverage range of the first network.
[0056] Optionally, the mobile information includes acceleration information detected by an acceleration sensor or speed information detected by a speed sensor.
[0057] the trajectory determination module is further configured to:
[0058] integrate the acceleration information or the speed information to determine a displacement of the mobile device;
[0059] determine the moving trajectory of the mobile device according to the displacement and positioning information of the mobile device at a starting time of the acceleration sensor or the speed sensor.
[0060] According to a third aspect of the embodiments of the present disclosure, a network connection control apparatus is provided, including:
[0061] a processor;
[0062] a memory for storing processor-executable instructions;
[0063] The processor is configured to implement the method of any one of the first aspect when executing the executable instructions stored in the memory.
[0064] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, and the computer-readable storage medium stores computer executable instructions. The computer executable instructions are executed by a processor to implement the steps in the method provided in any one of the first aspect.
[0065] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:
[0066] The network connection control method provided by the embodiments of the present disclosure, when the mobile device is in the coverage range of the first network, first determines whether the mobile device successfully connects to the first network; if the first network fails to be connected, the mobile device is prohibited from automatically switching from connecting the first network to connecting the second network, and a prompt information is output. In this way, when it is detected that the mobile device is in the coverage range of the first network, but the first network fails to be connected, on the one hand, by prohibiting the mobile device from automatically switching from connecting the first network to connecting the second network, the occurrence of an undesirable situation caused by the mobile device automatically switching to the second network due to the failure of the first network can be effectively avoided; for example, the additional cost caused by the mobile device automatically switching to a network with low priority such as a 4G network or a 5G network, etc. after the mobile device fails to connect to a mobile hotspot (WIFI) can be effectively avoided. On the other hand, by outputting the prompt information when the first network fails to be connected, the user can be promptly informed of the connection failure, so that the user can find a solution based on the prompt information in a timely manner, and the user experience can be improved.
[0067] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0068] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0069] Figure 1 is a flow of a network connection control method according to an exemplary embodiment Figure 1 .
[0070] Figure 2 is a flow of a network connection control method according to an exemplary embodiment Figure 2 .
[0071] Figure 3is a flow of a network connection control method according to an exemplary embodiment Figure 3 .
[0072] Figure 4 is a structural schematic diagram of a network connection control device according to an exemplary embodiment.
[0073] Figure 5 is a block diagram of a network connection control device according to an exemplary embodiment. DETAILED DESCRIPTION
[0074] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is only exemplary and is not intended to limit the scope, applicability or configuration of the disclosure. Rather, the disclosure is applicable as claimed and described herein, along with modifications and variations of exemplary embodiments incorporating the same, as would be understood by those skilled in the art after an understanding of the inventive teachings presented herein.
[0075] The embodiments of the disclosure provide a network connection control method, Figure 1 is a flow of a network connection control method according to an exemplary embodiment Figure 1 As shown in Figure 1 , the network connection control method comprises the following steps:
[0076] Step 101, determining whether a mobile device is successfully connected to a first network when the mobile device is in a coverage range of the first network;
[0077] Step 102, if the first network fails to be connected, prohibiting the mobile device from automatically switching from connecting the first network to connecting a second network, and outputting prompt information; wherein the network performance of the second network is lower than that of the first network.
[0078] It should be noted that the network connection control method can be applied to any mobile device, which can be a smart phone, a tablet computer, a desktop computer or a digital camera, etc.
[0079] The mobile device supports multiple network connection modes. For example, it supports long-distance wireless networks and short-distance wireless networks; wherein the long-distance wireless network can be 5G, 4G, 3G or 2G, etc.; and the short-distance wireless network can be WIFI, etc.
[0080] In the embodiments of the disclosure, the first network at least includes WIFI.
[0081] The second network can be: the above-mentioned long-distance wireless network; or other WIFI. The other WIFI includes: a WIFI which has an overlapping coverage range with the first network.
[0082] For example, the first network is a first WIFI, and the second network can be 5G, 4G, 3G or 2G, etc.
[0083] For another example, the first network is a first WIFI, and the second network can be a second WIFI; the second WIFI can be a public WIFI. For example, the first WIFI is a WIFI in a home, and the second network can be a WIFI in a neighboring home.
[0084] It should be noted that the network performance of the second network is lower than that of the first network.
[0085] Here, the network performance is used to indicate the connection and operation effect of the network, and better network performance can improve the use satisfaction of the user. In the embodiments of the present disclosure, the indicators for measuring the network performance can include: bandwidth and signal strength. Wherein, the greater the bandwidth, the greater the amount of data transmitted per unit time, and the stronger the network performance. Similarly, the greater the signal strength, the stronger the connection ability, and the stronger the corresponding network performance.
[0086] In the embodiments of the present disclosure, the network performance of the second network is lower than that of the first network; that is, the first network has better network performance than the second network. When the mobile device performs network connection in the current environment, the mobile device will preferentially establish a connection with the first network due to the greater signal strength of the first network; if the connection with the first network is successful, the data can be transmitted with better data transmission capability, which is more beneficial to the user.
[0087] In other embodiments, the cost of the second network can be lower than that of the first network; for example, the first network can be a free traffic network, and the second network can be a traffic charging network. Alternatively, the first network can be a network with a lower traffic charging rate, and the second network can be a network with a higher traffic charging rate. Alternatively, the first network can be a network charging by use time, and the second network can be a network charging by traffic.
[0088] As a specific example, when the first network is WIFI, and the second network is 4G, since 4G requires a cost, when the mobile device automatically changes from WIFI connection to 4G connection due to the failure of WIFI connection, the cost will be generated, which is not beneficial to the user. In this way, even if the connection with the first network fails temporarily, the mobile device is prohibited from automatically switching to the second network, which can effectively avoid unnecessary costs. At this time, only when the network connected by the mobile device automatically changes from WIFI connection to 4G connection, unnecessary cost loss can be effectively avoided.
[0089] Thus, when the mobile device is in the coverage of the first network but fails to connect the first network, the user interests can be guaranteed as much as possible by prohibiting the mobile device from automatically switching from connecting the first network to connecting the second network.
[0090] Thus, when it is detected that the mobile device is in the coverage of the first network but fails to connect the first network, the mobile device can be effectively prevented from automatically switching to the second network due to the failure to connect the first network, and the user experience can be improved.
[0091] Here, whether the mobile device is in the coverage of the first network can be determined based on detection of location information of the mobile device. The location information can be information representing a location coordinate or latitude and longitude information, and can be detected by a global positioning system (GPS) in the mobile device.
[0092] It should be noted that the mobile device is in the coverage of the first network but fails to connect the first network, which can occur in various situations.
[0093] For example, the mobile device can move from outside the coverage of the first network to the coverage of the first network and then fail to connect the first network; that is, the mobile device has not successfully connected the first network since moving into the coverage of the first network.
[0094] For another example, the mobile device can move from outside the coverage of the first network to the coverage of the first network and then successfully connect the first network, but subsequently the connection state of the first network changes from successful connection to failure while the mobile device is in the coverage of the first network; or the mobile device is in the coverage of the first network and is in the state of successful connection with the first network, but subsequently changes to failure due to some reasons.
[0095] It should be further noted that, at present, if the mobile device is in the coverage of the first network and has successfully connected the first network before, the mobile device will automatically connect the first network again when the mobile device is in the coverage of the first network and the wireless network connection function is turned on. Therefore, before steps 101 and 102, the network connection control method further includes:
[0096] determining whether the first network has been successfully connected in the historical use of the mobile device;
[0097] after the first network has been successfully connected in the historical use of the mobile device, performing steps 101 and 102.
[0098] Here, if the first network is not successfully connected in the historical use, the steps 101 and 102 are not performed.
[0099] The determination of whether the first network is successfully connected in the historical use of the mobile device can be determined by querying the network connection information stored in the mobile device. That is, if the first network is successfully connected in the historical use of the mobile device, the network connection information of the first network is stored correspondingly. If the network connection information of the first network is not stored in the mobile device, it is considered that the first network is not successfully connected in the historical use.
[0100] The connection information can at least include account information.
[0101] For example, for an unencrypted public network, the connection information of the first network at least includes account information. For an encrypted private network, the connection information of the first network can include account information and password information.
[0102] Further, when the mobile device is in the coverage of the first network, but it is determined that the connection of the first network fails, the network connection control method of the present disclosure can output prompt information in addition to prohibiting the mobile device from automatically switching from connecting the first network to connecting the second network.
[0103] The prompt information includes prompt information for prompting the reason for the failure of connecting the first network, or prompt information for prompting how to operate when the first network fails to connect.
[0104] In this way, by outputting the prompt information, the user can directly know the current network connection situation, and the user can also operate in time to connect to the first network as soon as possible, and the user can effectively avoid network switching without knowing the situation.
[0105] In some embodiments, the prompt information can be output through the display screen of the mobile device when it is determined that the connection of the first network fails. Here, when output through the display screen, the prompt information can be directly popped up on the display screen, or output in the form of a short message.
[0106] In other embodiments, the prompt information can be output through the loudspeaker of the mobile device when it is determined that the connection of the first network fails.
[0107] Here, compared with the display screen output, the loudspeaker output can quickly let the user know the situation. However, the loudspeaker output can be ignored in the mute mode of the mobile device, and therefore, the display screen output can better ensure that the user knows the information. The output mode of the prompt information is not limited in the present disclosure, and can be selected or combined as needed.
[0108] In some embodiments, the prompt information prompts one of the following:
[0109] to turn on a connection function of the first network;
[0110] to restart a router of the first network;
[0111] a connection error of the first network.
[0112] Here, the prompt to turn on the connection function of the first network and the prompt to restart the router of the first network belong to the prompt information prompting how to operate when the first network fails to be connected. The prompt of the connection error of the first network belongs to the prompt information prompting the reason why the first network fails to be connected.
[0113] Since the mobile device is in the coverage of the first network, there can be various reasons why the mobile device fails to connect to the first network. For example, the connection function of the first network is not turned on on the mobile device, such as the WIFI or mobile cellular network connection not being turned on. For another example, the connection function of the first network is turned on on the mobile device, but an error occurs in the connection to the first network. For yet another example, the router of the first network fails.
[0114] It should be noted that the error in the connection to the first network can be that the connection information of the first network is changed, and the first network cannot be successfully connected based on the old connection information. It can also be that the connection information of the first network is not changed, but the network fluctuates during the connection, and the first network cannot be successfully connected.
[0115] The failure of the router of the first network can be that the router often fails to normally transmit signals during a long time of work. It can also be that the router itself has a functional failure, such as a damaged power supply, a damaged wireless transmission module, or a damaged processing chip.
[0116] In this way, when the first network fails to be connected, the above prompt information is generated, which can make the user know the current network connection situation, and can also prompt the user to perform an operation to as far as possible achieve a successful connection to the first network.
[0117] In some embodiments, Figure 2 is a flow of a network connection control method according to an exemplary embodiment Figure 2 As shown in Figure 3 , in step 102, the output prompt information includes:
[0118] In step 1021, when it is determined that the mobile device does not turn on the connection function of the first network, prompt information prompting to turn on the connection function of the first network is output.
[0119] Or,
[0120] Step 1022, when it is determined that the mobile device has started the connection function of the first network, outputting prompt information prompting a connection error of the first network or outputting prompt information prompting restarting the first network.
[0121] Here, as described above, the mobile device is in the coverage range of the first network, but there can be multiple reasons for the failure of connecting the first network, and a prompt information is randomly selected for output when it is determined that the connection of the first network fails, which does not help to solve the problem.
[0122] The embodiment of the present disclosure determines whether the mobile device has started the connection function of the first network when it is determined that the connection of the first network fails, and when it is determined that the connection function of the first network has not been started, it can be determined with a high probability that the reason for the failure of connecting the first network is that the mobile device has not started the connection function of the first network. In this way, after the prompt information prompting starting the connection function of the first network is input, it is highly possible to make the connection with the first network successful.
[0123] On the contrary, if it is determined that the connection function of the first network has been started, it means that the reason for the failure of connecting the first network is other reasons, and at this time, prompt information prompting a connection error of the first network or prompt information prompting restarting the first network can be output to prompt the user to perform corresponding operations.
[0124] In this way, different prompt information can be output according to different situations, which facilitates the user to solve the problem of the failure of connecting the first network in time and effectively, and can also improve the success rate of problem solving.
[0125] In some embodiments, the method further comprises:
[0126] Obtaining network connection information of the mobile device.
[0127] The network connection information indicates the currently connected network and the connection state with the network.
[0128] The connection state with the network includes connection success or connection failure.
[0129] For example, the network connection information indicates that the currently connected network of the mobile device is the first WIFI, and indicates that the connection state with the first WIFI is connection success.
[0130] Based on the network connection information, when it is determined that the mobile device has started the connection function of the first network, the prompt information prompting a connection error of the first network is output, which comprises:
[0131] When it is determined that the mobile device has enabled the connection function of the first network, and according to the network connection information, it is determined that the mobile device is within the coverage of the first network, and the connection state of the first network changes from connection success to connection failure, prompt information prompting the first network connection error is output.
[0132] Here, after the mobile device moves from outside the coverage of the first network to within the coverage of the first network, the connection with the first network is successful first, but when the connection state of the first network within the coverage of the first network changes from connection success to connection failure, since there is a connection success, it is not a problem that the connection function of the first network is not enabled, and at this time it can be considered that an error occurs in the connection with the first network.
[0133] In some embodiments, when it is determined that the mobile device has enabled the connection function of the first network, the prompt information prompting the restart of the first network is output, comprising:
[0134] When it is determined that the mobile device has enabled the connection function of the first network, the connection with the first network is re-established.
[0135] When the number of connection re-establishments with the first network exceeds a preset threshold, the prompt information prompting the restart of the first network is output.
[0136] Here, since the connection function of the first network is enabled, but the reason for the failure to connect the first network cannot be directly determined, some operations can be attempted to solve the problem of the failure to connect the first network, for example, the connection with the first network is first attempted to be re-established.
[0137] Here, the re-establishment of the connection with the first network can be automatic initiation of connection according to the connection information stored in the mobile device. It can also be that when the prompt information of the detected connection information error is output in the automatic connection, an input box of the connection information is output to facilitate the user to re-input the connection information.
[0138] The connection information includes account information and password information.
[0139] In the embodiments of the present disclosure, a preset threshold is set for the number of connection establishments with the first network, and when the number of re-establishments exceeds the preset threshold, it is possible that the router has a problem, and at this time the user can be prompted to restart the router.
[0140] If the first network connection error is caused by network fluctuation, the connection is probably successful in the subsequent reconnection; or if the first network connection error is caused by connection information change, the connection is probably successful after the subsequent re-input of the connection information. If the connection is not successful in the preset threshold times, it is considered that the router is faulty, and the user can be prompted to restart the router.
[0141] In some embodiments, the method further comprises:
[0142] When the router is restarted, if the connection with the first network still fails, a prompt information of router functional failure of the first network is output.
[0143] As described above, the router of the first network may fail due to the following reasons: the router often fails to normally transmit signals after a long time of work; or the router itself has functional failure, for example, power supply damage, wireless transmission module damage, or processing chip damage. If the router fails to normally transmit signals after a long time of work, the problem can be solved by restarting the router. However, if the router itself has functional failure, the problem cannot be solved by restarting the router, and in this case, the prompt information of functional failure of the first network is output to prompt the user to replace the router or repair the router.
[0144] In some embodiments, Figure 3 Fig. 1 shows a network connection control method according to an exemplary embodiment Figure 4 As shown in Figure 4 The method further comprises:
[0145] In step 103, the movement information of the mobile device is acquired.
[0146] In step 104, it is determined whether the mobile device is located in the coverage range of the first network according to the movement information.
[0147] The movement information of the mobile device is acquired to determine whether the mobile device is located in the coverage range of the first network at each detection time.
[0148] In some embodiments, the movement information comprises at least one of the following:
[0149] Acceleration detected by an acceleration sensor;
[0150] Speed detected by a speed sensor.
[0151] Here, the mobile device comprises an acceleration sensor or a speed sensor. The acceleration sensor is used to detect acceleration information, and the speed sensor is used to detect speed information.
[0152] The acceleration sensor includes a three-axis acceleration sensor or a single-axis acceleration sensor.
[0153] It should be noted that when the mobile device only contains an acceleration sensor, acceleration information detected according to the acceleration sensor is acquired first, and then the acceleration information is subjected to multiplication operation to obtain speed information.
[0154] In summary, in the embodiments of the present disclosure, the movement information can be used to determine whether the mobile device is located within the coverage range of the first network.
[0155] In some embodiments, the determining, according to the movement information, whether the mobile device is within the coverage range of the first network includes:
[0156] determining a movement trajectory of the mobile device according to the movement information;
[0157] acquiring a target movement position of the mobile device according to the movement trajectory;
[0158] determining whether the mobile device is within the coverage range of the first network according to the target movement position and the coverage range of the first network.
[0159] Here, in some embodiments, when the movement information includes acceleration information detected by an acceleration sensor or speed information detected by a speed sensor, the determining, according to the movement information, of the movement trajectory of the mobile device can be:
[0160] performing integral operation on the acceleration information or the speed information to determine a displacement of the mobile device;
[0161] determining the movement trajectory of the mobile device according to the displacement and positioning information of the mobile device at a starting moment of the acceleration sensor or the speed sensor.
[0162] Here, the displacement refers to a movement distance of the mobile device.
[0163] Specifically, based on acceleration information or speed information detected at multiple adjacent detection moments, the movement distance of the mobile device can be determined. The adjacent two detection moments include a current detection moment and a previous detection moment, or a current detection moment and a next detection moment. The adjacent two detection moments are two detection time points on a detection time axis.
[0164] The acceleration sensor can directly measure the acceleration of the mobile device. According to the distance calculation formula, the distance is proportional to the square of the acceleration, so the moving distance of the mobile device in the embodiment of the disclosure can be obtained by double integrating the acceleration. Correspondingly, the speed sensor can directly measure the speed of the mobile device. According to the distance calculation formula, the distance is proportional to the speed, so the moving distance of the mobile device in the embodiment of the disclosure can be obtained by directly integrating the speed.
[0165] Therefore, after obtaining the displacement of the mobile device in the time interval between the two adjacent detection time points, the position of the previous detection time point in the two adjacent detection time points is further determined, and the displacement is added to the position, so that the current position of the mobile device is obtained. Here, the positioning information of the mobile device at the starting time of the acceleration sensor or the speed sensor can be obtained, and based on the positioning information and the displacement determined at multiple detection time points, the moving track of the mobile device can be determined.
[0166] It should be noted that the positioning information can be obtained by GPS detection in the mobile device. In addition to the value of the acceleration, the acceleration determined by the acceleration sensor also includes the direction of the acceleration. Based on the displacement in the direction and the positioning information of the mobile device at the starting time of the acceleration sensor or the speed sensor, the moving track can be obtained. Correspondingly, the speed sensor can also determine the direction of the speed, and the disclosure will not be repeated here.
[0167] This direct sensor detection method is simple and convenient, and the acceleration sensor or the speed sensor cooperates with the GPS to provide the possibility for determining the moving track of the mobile device.
[0168] After determining the moving track of the mobile device, the disclosure needs to match the track with the coverage range of the first network to determine whether the mobile device is in the coverage range of the first network.
[0169] Here, in some embodiments, the determination of the coverage range of the first network can be:
[0170] When the network signal of the first network is detected, the corresponding positioning information is obtained;
[0171] Based on the positioning information, the coverage range of the first network is determined.
[0172] That is, in the historical use of the mobile device, when the network signal of the first network is detected in the mobile state, it means that the mobile device has entered the coverage range of the first network, so multiple positioning information can be collected in time from the movement of the mobile device in multiple directions, and the coverage range of the first network can be determined based on the multiple positioning information.
[0173] Thus, after learning the movement trajectory of the mobile device, it can be determined whether the mobile device moves out of the coverage range of the first network based on a comparison between the movement trajectory and the coverage range of the first network.
[0174] The network connection control method provided by the embodiments of the present disclosure can first determine whether the mobile device successfully connects to the first network when the mobile device is in the coverage range of the first network, and if the mobile device fails to connect to the first network, the mobile device is prohibited from automatically switching from connecting to the first network to connecting to a second network. In this way, when it is detected that the mobile device is in the coverage range of the first network but fails to connect to the first network, the mobile device is prohibited from automatically switching from connecting to the first network to connecting to the second network, so that the occurrence of an undesirable situation caused by the mobile device automatically switching to the second network due to the failure to connect to the first network can be effectively avoided. For example, the additional cost caused by the mobile device connecting to a WIFI network but automatically switching to a 4G or 5G network or other low-priority network such as a cellular mobile communication network can be effectively avoided.
[0175] In addition, when the mobile device fails to connect to the first network, the mobile device is prompted by outputting prompt information, so that the user can be timely informed of the connection failure, and the user can find a solution based on the prompt information, thereby improving the user experience.
[0176] The present disclosure also provides a network connection control device, Figure 5 Fig. 1 is a structural schematic diagram of a network connection control device according to an exemplary embodiment, and Figure 5 As shown in the figure, the network connection control device 400 comprises:
[0177] A first determination module 401 is configured to determine whether the mobile device successfully connects to the first network when the mobile device is in the coverage range of the first network.
[0178] A processing module 402 is configured to, if the mobile device fails to connect to the first network, prohibit the mobile device from automatically switching from connecting to the first network to connecting to a second network, and output prompt information, wherein the network performance of the second network is lower than that of the first network.
[0179] In some embodiments, the processing module comprises:
[0180] A first type of output module is configured to output prompt information prompting to turn on the connection function of the first network when it is determined that the connection function of the first network is not turned on.
[0181] Alternatively,
[0182] The second type of output module is configured to output prompt information prompting a connection error of the first network or output prompt information prompting restarting of the first network when it is determined that the mobile device has started the connection function of the first network.
[0183] In some embodiments, the apparatus further includes:
[0184] a network connection obtaining module configured to obtain network connection information of the mobile device;
[0185] The second type of output module is further configured to:
[0186] output prompt information prompting a connection error of the first network when it is determined that the mobile device has started the connection function of the first network, and that the mobile device is within the coverage range of the first network and the connection state of the first network has changed from successful connection to connection failure according to the network connection information.
[0187] In some embodiments, the second type of output module is further configured to:
[0188] reestablish connection with the first network when it is determined that the mobile device has started the connection function of the first network;
[0189] output prompt information prompting restarting of the first network when the number of times of reestablishing connection with the first network exceeds a preset threshold.
[0190] In some embodiments, the apparatus further includes:
[0191] a mobile information obtaining module configured to obtain mobile information of the mobile device;
[0192] a position determining module configured to determine whether the mobile device is within the coverage range of the first network according to the mobile information.
[0193] In some embodiments, the apparatus further includes:
[0194] a positioning information obtaining module configured to obtain corresponding positioning information when network signals of the first network are detected;
[0195] a range determining module configured to determine the coverage range of the first network based on the positioning information;
[0196] The position determining module includes:
[0197] a trajectory determining module configured to determine a moving trajectory of the mobile device according to the mobile information.
[0198] a target mobile position determination module, configured to acquire a target mobile position of the mobile device according to the mobile trajectory;
[0199] a position determination sub-module, configured to determine whether the mobile device is in a coverage range of the first network according to the target mobile position and the coverage range of the first network.
[0200] In some embodiments, the mobile information comprises acceleration information detected by an acceleration sensor, or speed information detected by a speed sensor.
[0201] The trajectory determination module is further configured to:
[0202] integrate the acceleration information or the speed information to determine a displacement of the mobile device;
[0203] determine a mobile trajectory of the mobile device according to the displacement and positioning information of the mobile device at a starting time point of the acceleration sensor or the speed sensor.
[0204] As to the apparatus in the above embodiments, specific manners in which various modules perform operations have been described in details in the embodiments of the method, and thus will not be repeated here.
[0205] is a block diagram of a network connection control apparatus 1800 according to an example embodiment. The apparatus 1800 can be a mobile phone, a computer, a digital broadcast terminal, a message communication device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so on, for example.
[0206] Referring to The apparatus 1800 can include one or more of a processing component 1802, a memory 1804, a power supply component 1806, a multimedia component 1808, an audio component 1810, an input / output (I / O) interface 1812, a sensor component 1814, and a communication component 1816.
[0207] The processing component 1802 usually controls overall operations of the apparatus 1800, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 1802 can include one or more processors 1820 to execute instructions to complete all or part of steps of the methods described above. Further, the processing component 1802 can include one or more modules to facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 can include a multimedia module to facilitate the interaction between the multimedia component 1808 and the processing component 1802.
[0208] The memory 1804 is configured to store various types of data to support the operation of the device 1800. Examples of these data include instructions for any application or method operating on the device 1800, contact data, phonebook data, messages, images, videos, and the like. The memory 1804 can be implemented by any type of volatile or nonvolatile storage devices 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 disc or optical disc.
[0209] The power component 1806 provides power to various components of the device 1800. The power component 1806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 1800.
[0210] The multimedia component 1808 includes a screen providing an output interface between the device 1800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensors can not only sense a boundary of a touching or sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 1808 includes a front camera and / or a back camera. The front camera and / or the back camera can receive external multimedia data when the device 1800 is in an operation mode such as a shooting mode or a video mode. Each of the front camera and / or the back camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0211] The audio component 1810 is configured to output and / or input an audio signal. For example, the audio component 1810 includes a microphone (MIC) configured to receive an external audio signal when the device 1800 is in an operation mode such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 1804 or transmitted via the communication component 1816. In some embodiments, the audio component 1810 also includes a speaker for outputting an audio signal.
[0212] The I / O interface 1812 provides an interface between the processing component 1802 and peripheral interface modules such as a keyboard, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0213] The sensor component 1814 includes one or more sensors for providing status assessments for various aspects of the device 1800. For example, the sensor component 1814 can detect an open / closed status of the device 1800, relative positioning of components, e.g., a display and a keypad of the device 1800, changes in position of the device 1800 or a component of the device 1800, presence or absence of user contact with the device 1800, changes in orientation of the device 1800 or acceleration / deceleration, and temperature changes of the device 1800. The sensor component 1814 can include proximity sensor(s) configured to detect presence of an object in proximity thereto without any physical contact. The sensor component 1814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0214] The communication component 1816 is configured to facilitate wired or wireless communication between the device 1800 and other devices. The device 1800 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 1816 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 1816 further 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, or other technology.
[0215] In an exemplary embodiment, the device 1800 can be implemented with 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, micro-controllers, microprocessors, or other electronic elements to perform the above-described methods.
[0216] In an exemplary embodiment, a non-transitory computer-readable storage medium, e.g., the memory 1804 including instructions, is also provided, which can be executed by the processor 1820 of the device 1800 to perform the above-described methods. 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 disc, and an optical data storage device, etc.
[0217] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor, enables performance of the above-described methods.
[0218] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the concepts disclosed herein. It is intended that the disclosure be construed as including any patents, patent applications, publications, publications, or other disclosure that modifies or adds to the function of the compositions or methods described herein or replaces purportedly equivalent elements with other known or later-discovered equivalents. The specification and examples are to be regarded as exemplary in nature and not as restrictive, with the true scope and spirit of the disclosure being indicated by the appended claims.
[0219] It should be understood that the present disclosure is not limited to the precise structures herein described and illustrated in the drawings and that various modifications and changes can be made therein without departing from the scope thereof. The scope of the present disclosure is indicated by the appended claims.
Claims
1. A network connection control method characterized by comprising: The method is applied to a mobile device, and comprises: determining whether the mobile device is successfully connected to a first network in historical use of the mobile device; in response to the mobile device being successfully connected to the first network in the historical use and the mobile device currently being in a coverage range of the first network, determining whether the mobile device is successfully connected to the first network; if the mobile device fails to connect to the first network, prohibiting the mobile device from automatically switching from connecting to the first network to connecting to a second network, and outputting prompt information; wherein the second network has a network performance lower than that of the first network, the prompt information is used to prompt a reason for the failure to connect to the first network or to indicate an operation when the mobile device fails to connect to the first network; and the prompt information comprises one of the following: turning on a connection function of the first network, restarting the first network, and a connection error of the first network.
2. The method of claim 1, wherein, The outputting of the prompt information comprises: when it is determined that the mobile device does not turn on the connection function of the first network, outputting prompt information prompting to turn on the connection function of the first network; or, when it is determined that the mobile device turns on the connection function of the first network, outputting prompt information prompting the connection error of the first network or outputting prompt information prompting to restart the first network.
3. The method of claim 2, wherein, The method further comprises: obtaining network connection information of the mobile device; the outputting of the prompt information prompting the connection error of the first network when it is determined that the mobile device turns on the connection function of the first network comprises: when it is determined that the mobile device turns on the connection function of the first network and according to the network connection information, it is determined that the mobile device is in the coverage range of the first network and a connection state of the first network changes from a successful connection to a failed connection, outputting the prompt information prompting the connection error of the first network.
4. The method of claim 2, wherein, the outputting of the prompt information prompting to restart the first network when it is determined that the mobile device turns on the connection function of the first network comprises: when it is determined that the mobile device turns on the connection function of the first network, re-establishing a connection with the first network; when a number of times of re-establishing the connection with the first network exceeds a preset threshold, outputting the prompt information prompting to restart the first network.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: obtaining movement information of the mobile device; determining whether the mobile device is in the coverage range of the first network according to the movement information.
6. The method of claim 5, wherein, The method further comprises: when a network signal of the first network is detected, obtaining corresponding positioning information; determining the coverage range of the first network based on the positioning information; the determining of whether the mobile device is in the coverage range of the first network according to the movement information comprises: determining a movement trajectory of the mobile device according to the movement information; obtaining a target movement position of the mobile device according to the movement trajectory; determining whether the mobile device is in the coverage range of the first network according to the target movement position and the coverage range of the first network.
7. The method of claim 6, wherein, The movement information comprises acceleration information detected by an acceleration sensor or speed information detected by a speed sensor. The method comprises: integrating the acceleration information or the speed information to determine the displacement of the mobile device; determining the movement trajectory of the mobile device according to the displacement and the positioning information of the mobile device at the starting time of the acceleration sensor or the speed sensor.
8. A network connection control device characterized by comprising: The method is applied to a mobile device, and comprises: a first determination module configured to determine whether the mobile device successfully connects to a first network when the mobile device is currently in a coverage range of the first network; wherein the mobile device has successfully connected to the first network in historical use; a processing module configured to, if the connection to the first network fails, prohibit the mobile device from automatically switching from connecting to the first network to connecting to a second network, and output a prompt information; wherein the network performance of the second network is lower than that of the first network, the prompt information is used to prompt the reason for the failure to connect to the first network, or is used to indicate an operation when the connection to the first network fails; and the prompt information comprises one of the following: turning on a connection function of the first network; restarting the first network; and a first network connection error.
9. The apparatus of claim 8, wherein, The processing module comprises: a first type of output module configured to, when it is determined that the mobile device does not turn on the connection function of the first network, output prompt information prompting to turn on the connection function of the first network; or, a second type of output module configured to, when it is determined that the mobile device has turned on the connection function of the first network, output prompt information prompting the first network connection error or output prompt information prompting to restart the first network.
10. The apparatus of claim 9, wherein, The device further comprises: a network connection acquisition module configured to acquire network connection information of the mobile device; the second type of output module is further configured to: when it is determined that the mobile device has turned on the connection function of the first network, and according to the network connection information, it is determined that the mobile device is in the coverage range of the first network, and the connection state of the first network changes from successful connection to failed connection, output prompt information prompting the first network connection error.
11. The apparatus of claim 9, wherein, the second type of output module is further configured to: when it is determined that the mobile device has turned on the connection function of the first network, re-establish the connection with the first network; when the number of times of re-establishing the connection with the first network exceeds a preset threshold, output prompt information prompting to restart the first network.
12. The apparatus of any one of claims 8 to 11, wherein, The device further comprises: a mobile information acquisition module configured to acquire mobile information of the mobile device; a position determination module configured to determine whether the mobile device is in the coverage range of the first network according to the mobile information.
13. The apparatus of claim 12, wherein, The device further comprises: a positioning information acquisition module configured to acquire corresponding positioning information when the network signal of the first network is detected; a range determination module configured to determine the coverage range of the first network based on the positioning information; the position determination module comprises: a trajectory determination module configured to determine the movement trajectory of the mobile device according to the mobile information; A target mobile position determination module is configured to acquire a target mobile position of the mobile device according to the mobile trajectory; A position determination sub-module is configured to determine whether the mobile device is within the coverage range of the first network according to the target mobile position and the coverage range of the first network.
14. The apparatus of claim 13, wherein, The mobile information includes acceleration information detected by an acceleration sensor or speed information detected by a speed sensor. The trajectory determination module is further configured to: integrate the acceleration information or the speed information to determine a displacement of the mobile device; determine a mobile trajectory of the mobile device according to the displacement and positioning information of the mobile device at a starting time of the acceleration sensor or the speed sensor.
15. A network connection control device, characterized by comprising: comprise: a processor and a memory for storing executable instructions capable of running on the processor, wherein: when the processor is used to run the executable instructions, the executable instructions perform steps in the method provided in any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium, comprising: The computer readable storage medium stores computer executable instructions, and the computer executable instructions are executed by the processor to implement steps in the method provided in any one of claims 1 to 7.
Citation Information
Patent Citations
Multimedia resource loading method and device
CN106454531A
Network management method and system for Android system
CN108965064A