Network connection processing method and device, storage medium and chip
By switching the network communication method of the terminal device and/or the cellular network cell, the problem of low network recovery probability and insufficient stability when the network is disconnected and reconnected is solved, and a higher network recovery success rate and stability is achieved.
Patent Information
- Application Number
- CN202311533942.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2025-05-16
AI Technical Summary
In the prior art, when the network is disconnected and reconnected, the probability of network recovery is not high, and the network stability after reconnection is insufficient.
By switching the network communication method of the terminal device and/or switching cells in the cellular network, the communication channel of the terminal is changed to disconnect the network and reconnect.
It increases the probability of network recovery after disconnection and ensures stability after network reconnection.
Smart Images

Figure CN120018323A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communications, and in particular to a network connection processing method, device, storage medium and chip. Background Art
[0002] With the development of science and technology, terminals can realize more and more functions. Users can use terminal devices to browse information (for example, videos, images, etc.). During the information browsing process, in order to ensure the smoothness of the user's browsing process, it is usually necessary to detect the network at certain intervals to promptly determine whether there is a network disconnection. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a network connection processing method, device, storage medium and chip; when a network disconnection reconnection instruction is detected for network reconnection, the network communication mode of the terminal device can be switched, and / or the cell where the terminal device resides in the cellular network can be switched. This method of the present disclosure can be understood as changing the communication channel of the terminal for network disconnection reconnection during the network disconnection reconnection process, so that after the network disconnection, there can be a greater probability of restoring the reconnection, and the network stability after the network reconnection can be guaranteed.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a network connection processing method, comprising: in response to detecting a network disconnection reconnection instruction, performing network reconnection;
[0005] The steps of network reconnection include:
[0006] Switch the network communication mode of the terminal device, and / or switch the cell where the terminal device resides in the cellular network.
[0007] According to a second aspect of an embodiment of the present disclosure, there is provided a network connection processing device, comprising: a network connection module, configured to perform network reconnection in response to detecting a network disconnection reconnection instruction;
[0008] The steps of network reconnection include:
[0009] Switch the network communication mode of the terminal device, and / or switch the cell where the terminal device resides in the cellular network.
[0010] According to a third aspect of an embodiment of the present disclosure, there is provided a network connection processing device, a processor;
[0011] A memory for storing processor-executable instructions; wherein the processor is configured to: implement the steps of network connection processing provided in the first aspect of the present disclosure when executed.
[0012] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the network connection processing provided by the first aspect of the present disclosure are implemented.
[0013] According to a fifth aspect of an embodiment of the present disclosure, a chip is provided, including a processor and an interface; the processor is used to read instructions to execute the steps of the network connection processing provided by the first aspect of the present disclosure.
[0014] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: when a network reconnection instruction is detected for network reconnection, the network communication mode of the terminal device may be switched, and / or the cell in which the terminal device resides in the cellular network may be switched. This method of the present disclosure may be understood as changing the communication channel of the terminal for network reconnection during network reconnection, so that after network disconnection, there is a greater probability of reconnection recovery and network stability after network reconnection can be guaranteed.
[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] Figure 1 The figure is a flowchart of a network connection process according to an exemplary embodiment.
[0018] Figures 2A-2C The diagram is a schematic diagram of a network reconnection process of a network connection processing according to an exemplary embodiment.
[0019] Figure 3 The diagram is a process diagram of a method for processing a network connection according to an exemplary embodiment.
[0020] Figure 4 The invention is a block diagram of a network connection processing device according to an exemplary embodiment.
[0021] Figure 5 It is a block diagram of a device according to an exemplary embodiment (general structure of a mobile terminal).
[0022] Figure 6 It is a block diagram of a device (general structure of a server) according to an exemplary embodiment. DETAILED DESCRIPTION
[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0024] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0025] In the process of users browsing information, in order to ensure the smoothness of user browsing, information is usually preloaded. Preloading refers to loading part of the content of a web page in advance before the user browses the web page to improve the user's browsing experience. Preloading can be achieved in many ways, such as using preloading instructions in the header of the web page, using JavaScript scripts to achieve preloading, using browser cache, etc. The benefit of preloading is that it can reduce the user's waiting time.
[0026] During the process of preloading the content, the network environment will be checked to ensure that the content to be displayed can be preloaded smoothly. After detecting the network disconnection, the network will be reconnected in time to restore the network connection so that users can browse the information smoothly.
[0027] In the related art, after a network disconnection is detected, the network connection is usually restored by reconnecting to the PDN (Public Data Network). However, with this reconnection recovery method, the probability of network recovery is not high, and even after the network is restored, the network connection may not be stable.
[0028] The idea of the present disclosure is that when a network disconnection is detected and the network is reconnected, the step of reconnecting the network may include: switching the network communication mode of the terminal device, and / or switching the cell where the terminal device resides in the cellular network. In this way, since the network communication mode of the terminal device and / or the cell in the cellular network are changed, the terminal device can use a less crowded communication frequency band (or communication channel) to restore the network and reconnect, so that there is a greater possibility of restoring the network, and after the network is restored, the network is more stable.
[0029] Figure 1 is a flowchart of a network connection process according to an exemplary embodiment. Figure 1 As shown, the network connection process is used in the terminal and includes the following steps.
[0030] In step S11, in response to detecting a network disconnection reconnection instruction, network reconnection is performed.
[0031] Here, the steps for network reconnection include:
[0032] Switch the network communication mode of the terminal device, and / or switch the cell where the terminal device resides in the cellular network.
[0033] Here, the network communication mode may at least include: the fifth generation network communication technology and the fourth generation network communication technology. Switching the network communication mode of the terminal device may include: switching SA (Standalone, independent networking) in the fifth generation network communication technology to LTE (Long-Term Evolution, wireless communication technology) in the fourth generation network communication technology.
[0034] It should be understood that with the development of network communication technology, terminals can support multiple communication technologies, and the number of terminals using different communication technologies may be different. For example, if there are many users currently using the fifth-generation network communication technology to access the Internet, it may cause network congestion and thus cause network disconnection. At this time, using the fourth-generation network communication technology to access the Internet may avoid network congestion, so that the content that needs to be preloaded can be preloaded.
[0035] It should be noted that the terminal disclosed in the present invention can be understood as a cellular mobile terminal. The biggest advantage of a cellular mobile terminal is that the frequency can be reused. Generally speaking, when using a mobile terminal for communication, each user needs to occupy a channel. When there are more users using it at the same time, the limited channels may not be enough, so communication congestion will occur. The use of a cellular structure can make the same set of frequencies reused in several cells separated by a certain distance, thereby achieving the purpose of saving frequency resources.
[0036] Each cellular structure in a cellular network can be considered as a cell. For example, if a cellular network has 72 cells that share 300 channels, then every 12 cells can form a cell group; and the 300 channels can be divided into 12 channel groups; each group has 25 channels, and the first cell group's No. 1 cell uses the first group of channels, the first cell group's No. 2 cell uses the second group of channels, and so on. After proper arrangement (for example, cells using the same frequency band are spaced farther apart), the channel groups of the same numbered cells in different cell groups can be reused. In this way, although these cell base stations use the same radio frequency, they are far apart from each other and the range of the radio waves is limited, so they will not interfere with each other. In this way, a set of frequencies can be reused 6 times, which increases the number of users who can communicate at the same time.
[0037] Here, since the number of terminals residing in different cells in the cellular network is different, when the number of terminals residing in a cell is large, the network of the cell may be blocked, thereby causing the terminal to be disconnected from the network. Therefore, the present disclosure switches the cell where the terminal device resides in the cellular network, so that the disconnection caused by the large number of residing terminals in the cell can be better solved.
[0038] It can be seen that in the present disclosure, when a network reconnection instruction is detected for network reconnection, the network communication mode of the terminal device can be switched, and / or the cell where the terminal device resides in the cellular network can be switched. This method of the present disclosure can be understood as changing the communication channel of the terminal for network reconnection during network reconnection, so that after network disconnection, there is a greater probability of restoring reconnection, and the network stability after network reconnection can be guaranteed.
[0039] It should be emphasized here that, in the present disclosure, switching the network communication mode of the terminal device and / or switching the cell in which the terminal device resides in the cellular network are not necessary steps for network reconnection, but in the network disconnection and reconnection process of the present disclosure, switching the network communication mode of the terminal device and / or switching the cell in which the terminal device resides in the cellular network will be added; in this way, the present disclosure can have a greater possibility of realizing network disconnection recovery and make the network in a relatively stable state after recovery.
[0040] In some embodiments, the present disclosure may adopt a network communication method of first switching the terminal device, and / or switching the terminal device to a cell where it resides in a cellular network for network reconnection. If the network reconnection fails, PDN reconnection is performed.
[0041] In some embodiments, step S11 (reconnecting to the network in response to detecting a network disconnection reconnection instruction) may specifically include:
[0042] Reconnect through the public data network; in case of failure to reconnect to the public data network, switch the network communication mode of the terminal device, and / or switch the cell where the terminal device resides in the cellular network.
[0043] As an example, in the present disclosure, public data network reconnection (PDN reconnection) can be performed first, and if PDN reconnection fails, the network communication mode of the terminal device is switched, and / or the cell where the terminal device resides in the cellular network is switched.
[0044] Since the PDN reconnection process is fast, it is possible to efficiently determine whether the PDN reconnection can restore the network reconnection, and this method can also avoid the network recovery time being too long.
[0045] In some embodiments, switching the cell where the terminal device resides in the cellular network may specifically include: determining at least one candidate cell from the cellular network; and in response to determining that the candidate cells include the target cell, residing the terminal device in the target cell.
[0046] Here, the number of mobile terminals residing in the target cell meets the preset conditions.
[0047] As an example, the present disclosure allows the terminal device to reside in a cell with a small number of mobile terminals. In this way, if the network disconnection is caused by a large number of terminals residing in the cell, the network can be well recovered. At the same time, this network recovery method can also make the network in a relatively stable state after recovery.
[0048] As an example, the number of mobile terminals residing in the target cell meeting the preset condition may be understood as: the number of mobile terminals residing in the target cell is less than a preset number threshold.
[0049] As an example, the number of mobile terminals residing in the target cell meeting the preset condition can also be understood as: the ratio of the number of mobile terminals residing in the target cell to the number of mobile terminals that can reside in the target cell is less than the preset ratio threshold. For example, the number of mobile terminals currently residing in cell A is 80, and the number of mobile terminals that can reside in cell A is 100. At this time, the ratio of the number of mobile terminals residing in cell A to the number of mobile terminals that can reside in cell A is equal to 80%. If the preset ratio threshold is 90%, it can be characterized that cell A is the target cell at this time.
[0050] Of course, the specific values of the preset number threshold and the preset ratio threshold can be set according to actual conditions, and the specific values of the preset number threshold and the preset ratio threshold are not limited here.
[0051] In some embodiments, determining at least one candidate cell from a cellular network may specifically include:
[0052] Determine a first cell in which the terminal device currently resides in the cellular network; and determine at least one candidate cell from cells adjacent to the first cell according to a communication frequency band supported by the terminal device.
[0053] Here, one cell in a cellular network corresponds to one communication frequency band.
[0054] As an example, since one cell corresponds to one communication frequency band, but the terminal device may not support all communication frequency bands, the communication frequency bands that the terminal device can support can be determined based on the chip platform of the terminal device; in this way, the communication frequency bands corresponding to the determined candidate cells can all be network frequency bands supported by the terminal device.
[0055] Since the communication channels corresponding to the adjacent cells of the first cell are usually different from the communication frequency band corresponding to the first cell, the communication frequency band corresponding to the determined candidate cell is different from that of the first cell. In this way, there is a greater possibility of discovering the target cell with a smaller number of resident terminals and a greater probability of restoring the network connection.
[0056] In some embodiments, the above-mentioned network connection processing method may further include: in response to determining that the chip platform of the terminal device supports disabling cells in the cellular network, disabling the first cell.
[0057] Here, during the period when the first cell is disabled, the terminal device cannot stay in the first cell.
[0058] As an example, since the terminal device was disconnected when it was stationed in the first cell, the corresponding communication frequency band of the first cell may not be stable. In order to prevent the terminal device from stationing in the first cell again for a short time, the first cell can be disabled. This can avoid the network disconnection phenomenon after the network is restored.
[0059] In some embodiments, in response to detecting that the duration of disabling the first cell reaches a first preset duration threshold, the disabling of the first cell is cancelled.
[0060] As an example, the specific value of the first preset duration threshold can be set according to actual conditions, and the specific value of the first preset duration threshold is not limited here. For example, the first preset duration threshold can be 1 minute.
[0061] As an example, when the duration of disabling the first cell reaches a preset duration, the unstable state of the first cell may have been repaired or improved, and at this time, the disabling of the first cell may be cancelled so that the terminal device can reside in the first cell again. This method can avoid missing a cell with smoother network communication due to long-term disabling of the cell.
[0062] In some embodiments, after the terminal device is camped in the target cell, the network connection processing method may further include:
[0063] Detecting whether the network connection is restored; switching the network communication mode when the network connection is not restored; or, in response to determining that at least one candidate cell does not include the target cell, switching the network communication mode.
[0064] It can be seen that in the present disclosure, the network communication mode can be switched when at least any of the following situations occurs:
[0065] Scenario 1: After detecting the network disconnection reconnection instruction.
[0066] Scenario 2: When reconnection to the public data network fails.
[0067] Scenario 3: After the terminal device is stationed in the target cell, the network connection is still not restored.
[0068] Scenario 4: at least one candidate cell does not include the target cell.
[0069] As an example, switching the network communication mode can determine whether the current network disconnection is caused by a large number of users currently using the same communication mode. If the current network disconnection is caused by a large number of users currently using the same communication mode, switching the network communication mode can solve this problem well, thereby restoring normal network communication.
[0070] It should be emphasized here that when a terminal device supports multiple communication technologies, the terminal device will usually give priority to the newer communication technology. For example, when a terminal device supports both the fifth-generation network communication technology and the fourth-generation network communication technology, the terminal device will automatically use the fifth-generation network communication technology in areas where the fifth-generation network communication technology is allowed, instead of the fourth-generation network communication technology. In this way, there may be a large number of users using the fifth-generation network communication technology at the same time, causing network congestion and thus network disconnection. Therefore, in the scenario of the present disclosure, when a network interruption occurs and the network communication mode of the terminal device is switched, it is usually to switch the high-level network communication mode to a low-level network communication mode. And because the scenario of the present disclosure is for the preloading scenario of information, the preloading scenario may not have high requirements for network speed, so that the low-level network communication mode can also meet the actual needs of users.
[0071] Of course, the specific situation in which the network switching is performed can be reasonably selected according to the actual situation. For example, it can be set that the network communication mode is switched only when the situation three and the situation four occur.
[0072] In some embodiments, in response to detecting that the network connection is restored, a control instruction is generated to instruct to maintain the current network communication mode for a second preset time period.
[0073] As an example, when the network connection is restored by switching the network, the current network communication mode can be maintained within the second preset time to avoid switching the network communication mode again and causing another network disconnection. That is, this method can make the network connection more stable after the network is restored.
[0074] Of course, the specific duration of the second preset duration can be limited according to actual conditions, and the specific duration of the second preset duration is not limited here.
[0075] In some embodiments, step S11 (reconnecting to the network in response to detecting a network disconnection reconnection instruction) may further include:
[0076] After switching the network communication mode of the terminal device, and / or switching the cell in which the terminal device resides in the cellular network, if the network connection is not restored, the flight mode is turned on and turned off within a preset time.
[0077] As an example, after switching the network communication mode of the terminal device, and / or switching the cell in which the terminal device resides in the cellular network, if the network connection is not restored, it can be characterized as that the network disconnection may not be caused by a large number of terminals currently in use. Therefore, other network disconnection recovery operations can be continued, such as turning on and off the flight mode.
[0078] In some implementations, if the network connection has not been restored, the modem can be restarted.
[0079] As an example, restarting the modem can be understood as reloading the underlying data, which is a time-consuming process. Therefore, restarting the modem can be placed at the last step of network reconnection to minimize the time required for the network recovery process.
[0080] For ease of understanding, you can combine Figures 2A-2C Understand the network reconnection process of some possible embodiments of the present disclosure, Figure 2A It can be understood as a possible implementation method of switching the network communication mode and / or switching the cell where the terminal device resides in the cellular network. Figure 2B-2C This can be understood as a possible network reconnection process of the present disclosure.
[0081] like Figure 2A As shown, the candidate cell can be obtained first, and if there is a target cell, the target cell can be switched to, and it can be determined whether to restore the network connection. When the network connection is restored, it can be determined whether the terminal device supports the disabled cell, and if it supports the disabled cell, the first cell can be disabled. If it is determined that there is no target cell, or the network connection is not restored after the terminal resides in the target cell, the network communication mode can be switched (for example, network downgrade can be performed).
[0082] like Figure 2B As shown, the data list required for reconnection (for example, the terminal's chip platform information, cellular network cell information, etc.) can be obtained first, and then the network communication mode can be switched, and / or the cell where the terminal device resides in the cellular network can be switched, and then PDN reconnection, switch flight, and underlying code restart (Modem restart) can be performed.
[0083] like Figure 2CAs shown, after obtaining the data list required for reconnection, PDN reconnection can be performed first, and then the network communication mode can be switched, and / or the cell where the terminal device resides in the cellular network can be switched; after that, PDN reconnection is performed, the switch flight is switched, and the underlying code is restarted (Modem restart).
[0084] Combination Figure 2A-2C It can be seen that by adding network communication mode switching to the network reconnection step, and / or switching the cell where the terminal device resides in the cellular network, there is a greater possibility of restoring the network disconnection.
[0085] In some embodiments, when a loading instruction for the content to be displayed is detected, and / or when it is detected that the time from the last network disconnection detection reaches a third preset time threshold, it is determined that the network disconnection detection is triggered.
[0086] When the network disconnection detection result indicates to reconnect after the network disconnection, a network disconnection reconnection instruction is generated.
[0087] As an example, when a user performs a browsing operation on a terminal device, a loading instruction for the content to be displayed can be generated, and when the content to be displayed needs to be loaded, a network disconnection detection instruction is generated to turn on network disconnection detection. This way of triggering network disconnection detection can make network disconnection detection more reasonable. For example, network disconnection detection is performed only when the user has a browsing demand, so that the network disconnection detection frequency can be determined according to the user's browsing frequency, so as to better ensure that the content to be displayed can be preloaded.
[0088] For example, the content to be displayed currently includes content B, content C, content D, and content E. The current user is browsing content A, and content B and content C may be content that has been preloaded. When a user browsing operation for undisplayed content is detected (for example, the user performs a sliding operation so that the user can browse to undisplayed content B), network disconnection detection may be triggered, thereby implementing preloading of content D and / or content E.
[0089] As an example, it is detected that the time from the last network disconnection detection reaches the third preset time threshold, and it is determined to trigger the network disconnection detection. In this way, the network disconnection detection can be performed regularly to timely discover the fault when the network is interrupted.
[0090] In some implementations, the network disconnection detection may be triggered when a loading instruction for the content to be displayed is detected, or when a third preset time threshold is detected since the last network disconnection detection. In this way, the network disconnection detection is more frequent, so that whether the network disconnection occurs can be detected more timely.
[0091] In some embodiments, the third preset duration threshold may be determined in the following manner:
[0092] The third preset time threshold is determined according to the frequency of browsing operations performed by the user within a historical preset time.
[0093] As an example, a third preset time threshold is determined based on the frequency of browsing operations performed by the user within a historical preset time, so that the determined third preset time threshold may be more in line with the user's browsing frequency. Compared with the method of fixedly setting the network disconnection detection time in the related art, in the method disclosed in the present invention, the terminal devices used by different users can correspond to network disconnection detection interval frequencies of different time lengths, thereby making the network disconnection detection more reasonable, and thus better realizing network disconnection reconnection, thereby ensuring that when the user is about to browse the content to be displayed, the content to be displayed has been preloaded.
[0094] In some embodiments, the network disconnection detection result includes at least one of the following situations, and determines to instruct to reconnect after the network disconnection:
[0095] The transmission control protocol connection failure rate corresponding to the terminal device is greater than a preset probability threshold, and the number of unresponsive transmission control protocols is greater than a preset number threshold;
[0096] The query duration of the domain name query performed by the domain name system corresponding to the terminal device is greater than the second preset duration threshold, and the number of times the query duration is greater than the second preset duration threshold is greater than the preset number threshold;
[0097] Failed to load the content to be displayed.
[0098] As an example, if the TCP (Transmission Control Protocol) connection failure rate is greater than a preset probability threshold (for example, packet loss + retransmission > 80%), and at least 10 packets are sent but not received in sufficient numbers, it can be determined that the flow is disconnected. At this time, it can be determined to disconnect and reconnect.
[0099] If the number of consecutive DNS (Domain Name System) query timeouts (10s) is greater than 3 times, it can be determined that the network is disconnected. At this time, it can be determined to disconnect and reconnect.
[0100] If the video download fails, it can be judged as a disconnected stream, in which case you can decide to disconnect and reconnect.
[0101] Compared with the network disconnection and reconnection judgment method in the related art, the above judgment method can more easily determine the instruction to reconnect the network, so that the network disconnection and reconnection can be performed more timely.
[0102] In order to better understand the network connection processing method disclosed in the present invention, it can be combined with Figure 3 To explain, Figure 3It can be understood as a process diagram of an embodiment of the network connection processing method disclosed in the present invention. Figure 3 As shown, the present invention triggers network disconnection detection according to the actual browsing situation of the user, and when the network disconnection detection determines that the network is disconnected and network recovery is required (for example, after the network is disconnected, it will also be determined whether it is due to an active network disconnection, such as the terminal device is shut down, the terminal device is in an elevator, etc., it may not be necessary to trigger network disconnection reconnection), the network disconnection reconnection is performed and the network disconnection reconnection steps are performed.
[0103] Figure 4 is a block diagram of a network connection processing device according to an exemplary embodiment. Figure 4 , the apparatus 400 includes a network connection module 410, configured to perform network reconnection in response to detecting a network disconnection reconnection instruction;
[0104] The steps of network reconnection include:
[0105] Switch the network communication mode of the terminal device, and / or switch the cell where the terminal device resides in the cellular network.
[0106] In some embodiments, the network connection module 410 is further used to: reconnect via a public data network;
[0107] In case the public data network reconnection fails, the network communication mode of the terminal device is switched, and / or the cell where the terminal device resides in the cellular network is switched.
[0108] In some embodiments, the network connection module 410 is further configured to: determine at least one candidate cell from the cellular network;
[0109] In response to determining that the candidate cells include a target cell, the terminal device is stationed in the target cell; wherein the number of mobile terminals stationed in the target cell meets a preset condition.
[0110] In some embodiments, the network connection module 410 is further configured to: determine a first cell in which the terminal device currently resides in the cellular network;
[0111] According to the communication frequency band supported by the terminal device, the at least one candidate cell is determined from the neighboring cells of the first cell, wherein one cell in the cellular network corresponds to one communication frequency band.
[0112] In some embodiments, the network connection module 410 is further specifically used to: in response to determining that the chip platform of the terminal device supports disabling the cell in the cellular network, disable the first cell, wherein during the period when the first cell is disabled, the terminal device cannot reside in the first cell.
[0113] In some embodiments, the network connection module 410 is further configured to: in response to detecting that the duration of disabling the first cell reaches a first preset duration threshold, cancel the disabling of the first cell.
[0114] In some embodiments, the network connection module 410 is further used to: detect whether the network connection is restored; if the network connection is not restored, switch the network communication mode;
[0115] or,
[0116] In response to determining that the at least one candidate cell does not include the target cell, the network communication mode is switched.
[0117] In some embodiments, the network connection module 410 is further configured to: in response to detecting that the network connection is restored, generate a control instruction instructing to maintain the current network communication mode for a second preset time period.
[0118] In some embodiments, the apparatus 400 is further configured to: detect a loading instruction for the content to be displayed, and / or detect that the time from the last network disconnection detection reaches a third preset time threshold, and determine to trigger the network disconnection detection;
[0119] When the network disconnection detection result indicates to reconnect after network disconnection, the above network disconnection reconnection instruction is generated.
[0120] In some embodiments, the third preset duration threshold is determined as follows:
[0121] The third preset time threshold is determined according to the frequency of browsing operations performed by the user within a historical preset time.
[0122] In some embodiments, the network disconnection detection result includes at least one of the following situations, and determines to instruct to reconnect after the network disconnection:
[0123] The transmission control protocol connection failure rate corresponding to the above terminal device is greater than a preset probability threshold, and the number of unresponsive transmission control protocols is greater than a preset number threshold;
[0124] The query duration of the domain name query performed by the domain name system corresponding to the above terminal device is greater than the second preset duration threshold, and the number of times the query duration is greater than the second preset duration threshold is greater than the preset number threshold;
[0125] Failed to load the content to be displayed.
[0126] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0127] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of performing network reconnection in response to detecting a network disconnection reconnection instruction provided by the present disclosure; wherein the network reconnection steps include: switching the network communication mode of the terminal device, and / or switching the cell in which the above-mentioned terminal device resides in the cellular network.
[0128] Figure 5 1 is a block diagram of a network connection processing device 500 according to an exemplary embodiment. For example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0129] Reference Figure 5 , the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output interface 512 , a sensor component 514 , and a communication component 516 .
[0130] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0131] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0132] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
[0133] The multimedia component 508 includes a screen that provides an output interface between the above-mentioned device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0134] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0135] The input / output interface 512 provides an interface between the processing component 502 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0136] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0137] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0138] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0139] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0140] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC, system on chip or system-level chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned network connection processing method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, such as the integrated circuit or chip including a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned network connection processing method is implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned network connection processing method.
[0141] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above-mentioned network connection processing method when executed by the programmable device.
[0142] Figure 6It is a block diagram of a network connection processing device 600 shown according to an exemplary embodiment. For example, the device 600 can be provided as a server. Referring to Figure 600, the device 600 includes a processing component 622, which further includes one or more processors, and a memory resource represented by a memory 632, for storing instructions that can be executed by the processing component 622, such as an application. The application stored in the memory 632 may include one or more modules, each of which corresponds to a set of instructions. In addition, the processing component 622 is configured to execute instructions to execute the above method in response to detecting a network disconnection reconnection instruction to perform network reconnection; wherein the step of network reconnection includes: switching the network communication mode of the terminal device, and / or, switching the cell where the above terminal device resides in the cellular network.
[0143] The device 600 may also include a power supply component 626 configured to perform power management of the device 600, a wired or wireless network interface 650 configured to connect the device 600 to a network, and an input / output interface 658. The device 600 may operate based on an operating system stored in the memory 632, such as Windows Server 2000. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or similar.
[0144] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0145] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A network connection processing method, characterized in that: include: In response to detecting a network disconnection reconnection instruction, reconnecting to the network; The steps of network reconnection include: Switching the network communication mode of the terminal device, and / or switching the cell where the terminal device resides in the cellular network.
2. The method according to claim 1, characterized in that The step of reconnecting to the network in response to detecting the network disconnection reconnection instruction comprises: Reconnect via the public data network; In case the reconnection to the public data network fails, the network communication mode of the terminal device is switched, and / or the cell where the terminal device resides in the cellular network is switched.
3. The method according to claim 1, characterized in that The switching of the cell where the terminal device resides in the cellular network includes: determining at least one candidate cell from the cellular network; In response to determining that the candidate cells include a target cell, the terminal device is camped in the target cell; wherein the number of mobile terminals camped in the target cell meets a preset condition.
4. The method according to claim 3, characterized in that The determining at least one candidate cell from the cellular network includes: Determine a first cell in which the terminal device currently resides in the cellular network; According to the communication frequency band supported by the terminal device, the at least one candidate cell is determined from neighboring cells of the first cell, wherein one cell in the cellular network corresponds to one communication frequency band.
5. The method according to claim 3, characterized in that: The method further comprises: In response to determining that the chip platform of the terminal device supports disabling of cells in the cellular network, the first cell is disabled, wherein the terminal device cannot reside in the first cell during the period when the first cell is disabled.
6. The method according to claim 3, characterized in that The method further comprises: In response to detecting that the duration of disabling the first cell reaches a first preset duration threshold, canceling the disabling of the first cell.
7. The method according to claim 3, characterized in that After the terminal device is camped on the target cell, the method further includes: Check whether the network connection is restored; If the network connection is not restored, switch the network communication mode; or, In response to determining that the at least one candidate cell does not include the target cell, the network communication mode is switched.
8. The method according to claim 2 or 7, characterized in that: The method further comprises: In response to detecting that the network connection is restored, a control instruction is generated to instruct to maintain the current network communication mode for a second preset time period.
9. The method according to claim 2, characterized in that: The step of reconnecting to the network in response to detecting the network disconnection reconnection instruction comprises: After switching the network communication mode of the terminal device, and / or switching the cell in which the terminal device resides in the cellular network, if the network connection is not restored, the flight mode is turned on and turned off within a preset time.
10. The method according to claim 1, characterized in that The method further comprises: Detecting a loading instruction for the content to be displayed, and / or detecting that the time from the last network disconnection detection reaches a third preset time threshold, determining to trigger the network disconnection detection; In the case where the network disconnection detection result indicates to reconnect the network, the network disconnection reconnection instruction is generated.
11. The method according to claim 10, characterized in that The third preset duration threshold is determined by: The third preset time threshold is determined according to the frequency of browsing operations performed by the user within a historical preset time.
12. The method according to claim 10, characterized in that The network disconnection detection result includes at least one of the following situations, which indicates that the network disconnection reconnection is to be performed: The transmission control protocol connection failure rate corresponding to the terminal device is greater than a preset probability threshold, and the number of unresponsive transmission control protocols is greater than a preset number threshold; The query duration of the domain name query performed by the domain name system corresponding to the terminal device is greater than a second preset duration threshold, and the number of times the query duration is greater than the second preset duration threshold is greater than a preset number threshold; Failed to load the content to be displayed.
13. A network connection processing device, characterized in that: include: A network connection module, configured to perform network reconnection in response to detecting a network disconnection reconnection instruction; The steps of network reconnection include: Switching the network communication mode of the terminal device, and / or switching the cell where the terminal device resides in the cellular network.
14. A network connection processing device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: in response to detecting a network disconnection reconnection instruction, perform network reconnection; wherein the network reconnection step includes: Switching the network communication mode of the terminal device, and / or switching the cell where the terminal device resides in the cellular network.
15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
16. A chip, characterized in that: The method comprises a processor and an interface; the processor is used to read instructions to execute the method according to any one of claims 1 to 12.