Control method and device, equipment, storage medium and program product

By using the second communication device in the terminal device to analyze broadcast information and send target requests, and automatically establish a second-level wireless network, the problem of poor intelligence of hotspot connections between terminal devices is solved, and convenient and efficient hotspot connections are achieved.

CN120075922APending Publication Date: 2025-05-30LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510240312.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-02
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The process of establishing hotspot connections between terminal devices requires user participation, and the intelligence is poor.

Method used

The broadcast information is obtained through the second communication device, and the access point to be connected is obtained through analysis, and the first terminal device is activated by sending a target request to establish a second-level wireless network.

Benefits of technology

It realizes that hotspot connections can be automatically established without the user manually entering hotspot passwords, which improves the efficiency and convenience of hotspot connections and enhances intelligence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075922A_ABST
    Figure CN120075922A_ABST
Patent Text Reader

Abstract

Disclosed are a control method, apparatus, device, storage medium and program product, relating to the technical field of communications, comprising: obtaining at least one broadcast message through a second communication apparatus, the broadcast message comprising a second level network access point; analyzing the broadcast information to obtain a to-be-connected access point; the second communication device belongs to second terminal equipment; sending a target request through the second communication device, so that a first terminal device providing the access point to be connected starts a hotspot mode of the first communication device of the first terminal device; and establishing a second-level wireless network with the access point to be connected through the first communication device of the second terminal equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a control method, apparatus, device, storage medium, and program product. Background Art

[0002] With the development of communication technologies, a terminal device can not only access a network through a wireless access point (AP), but also serve as a hotspot device for other terminal devices to access the network. For terminal device A to act as a hotspot, the user of terminal device A needs to operate terminal device A to enable the hotspot function. When terminal device B requests to establish a hotspot connection with terminal device A for the first time, the user of terminal device B needs to input the hotspot password of terminal device A. If terminal device B is not requesting to establish a hotspot connection with terminal device A for the first time, then only the user of terminal device A needs to operate terminal device A to enable the hotspot function, and the user of terminal device B does not need to input the hotspot password of terminal device A. It can be seen that the process of establishing a hotspot connection between terminal devices requires user participation and has poor intelligence. Summary of the Invention

[0003] In view of the above problems, this application provides a control method, apparatus, device, storage medium, and program product, and the specific solutions are as follows:

[0004] In a first aspect of this application, a control method is provided, and the method includes:

[0005] Obtain at least one broadcast message through a second communication device, where the broadcast message includes a second-level network access point;

[0006] Analyze the broadcast message to obtain an access point to be connected; the second communication device belongs to a second terminal device;

[0007] Send a target request through the second communication device to cause a first terminal device providing the access point to be connected to start the hotspot mode of a first communication device of the first terminal device;

[0008] Establish a second-level wireless network with the access point to be connected through a first communication device of the second terminal device.

[0009] In a possible implementation, the broadcast message further includes: a target parameter, where the target parameter is used to characterize the signal quality of a first-level network access point to which the first terminal device providing the second-level network access point is connected.

[0010] In a possible implementation, the analyzing the broadcast message to obtain an access point to be connected includes:

[0011] Analyze the broadcast message to obtain the second-level network access point included in the broadcast message and the target parameter;

[0012] If the target parameter is greater than the quality threshold, determine the second-level network access point corresponding to the target parameter greater than the quality threshold as the access point to be connected.

[0013] In a possible implementation, the parsing the broadcast information to obtain the access point to be connected includes:

[0014] Parse the broadcast information to obtain the second-level network access point included in the broadcast information and the target parameter;

[0015] Obtain the connected access point, where the connected access point is a first-level network access point, and the connected access point has established a first-level wireless network through the first communication device of the second terminal device;

[0016] If the target parameter is greater than the quality parameter of the connected access point, determine the second-level network access point corresponding to the target parameter greater than the quality parameter of the connected access point as the access point to be connected.

[0017] In a possible implementation, the parsing the broadcast information to obtain the second-level network access point included in the broadcast information and the target parameter includes:

[0018] Parse multiple broadcast information to obtain the second-level network access point included in each broadcast information and the target parameter;

[0019] Determine the candidate second-level network access point with the first-ranked target parameter among the multiple second-level network access points, where the candidate second-level network access point is used to determine the access point to be connected.

[0020] In a possible implementation, after establishing a second-level wireless network with the access point to be connected through the first communication device of the second terminal device, it further includes:

[0021] If the network scanning condition is satisfied, obtain a network connection list including at least one network access point based on the first communication device of the second terminal device;

[0022] Determine whether the network connection list includes a first-level network access point based on the record information representing the first-level network access point;

[0023] If the first-level network access point exists in the network connection list, determine the access point to be connected from the network connection list based on the first policy;

[0024] Establish a first-level wireless network between the first communication device and the access point to be connected.

[0025] The second aspect of the present application provides a control device, which includes:

[0026] A receiving module, configured to obtain at least one broadcast message through a second communication device, where the broadcast message includes a second-level network access point;

[0027] An analysis module, configured to analyze the broadcast message to obtain an access point to be connected; the second communication device belongs to a second terminal device;

[0028] A sending module, configured to send a target request through the second communication device, so that a first terminal device providing the access point to be connected starts a hotspot mode of a first communication device of the first terminal device;

[0029] A connection module, configured to establish a second-level wireless network with the access point to be connected through a first communication device of the second terminal device.

[0030] The third aspect of the present application provides a computer program product, including computer-readable instructions, which, when running on an electronic device, cause the electronic device to implement the following steps:

[0031] Obtain at least one broadcast message through a second communication device, where the broadcast message includes a second-level network access point;

[0032] Analyze the broadcast message to obtain an access point to be connected; the second communication device belongs to a second terminal device;

[0033] Send a target request through the second communication device, so that a first terminal device providing the access point to be connected starts a hotspot mode of a first communication device of the first terminal device;

[0034] Establish a second-level wireless network with the access point to be connected through a first communication device of the second terminal device.

[0035] The fourth aspect of the present application provides an electronic device, where the electronic device is a second terminal device, and the second terminal device includes a first communication device, a second communication device, and at least one processor, where:

[0036] The first communication device is used to establish a wireless connection with a network access point;

[0037] The second communication device is used to receive or send information;

[0038] The processor is used for:

[0039] Obtain at least one broadcast message through the second communication device, where the broadcast message includes a second-level network access point;

[0040] Parse the broadcast information to obtain the access point to be connected.

[0041] Send a target request through the second communication device so that the first terminal device providing the access point to be connected activates the hotspot mode of the first communication device of the first terminal device.

[0042] Establish a secondary wireless network with the access point to be connected through the first communication device of the second terminal device.

[0043] In a possible implementation, the broadcast information further includes: a target parameter, which is used to characterize the signal quality of the primary network access point to which the first terminal device providing the secondary network access point is connected.

[0044] In a possible implementation, when the processor parses the broadcast information to obtain the access point to be connected, it is used for:

[0045] Parse the broadcast information to obtain the secondary network access point included in the broadcast information and the target parameter;

[0046] If the target parameter is greater than the quality threshold, determine the secondary network access point corresponding to the target parameter greater than the quality threshold as the access point to be connected.

[0047] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can be enabled to implement the following steps:

[0048] Obtain at least one broadcast information through a second communication device, where the broadcast information includes a secondary network access point;

[0049] Parse the broadcast information to obtain the access point to be connected; the second communication device belongs to a second terminal device;

[0050] Send a target request through the second communication device so that the first terminal device providing the access point to be connected activates the hotspot mode of the first communication device of the first terminal device;

[0051] Establish a secondary wireless network with the access point to be connected through the first communication device of the second terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In combination with the drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the various embodiments of the present disclosure will become more obvious. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the original and elements are not necessarily drawn to scale.

[0053] Figure 1a It is a flowchart of an implementation of the control method provided for this application;

[0054] Figure 1b It is an example diagram of the scoring model provided for this application.

[0055] Figure 2 It is a flowchart of an implementation of parsing broadcast information to obtain an access point to be connected provided for this application;

[0056] Figure 3 It is another flowchart of an implementation of parsing broadcast information to obtain an access point to be connected provided for this application;

[0057] Figure 4 It is a flowchart of an implementation of parsing broadcast information to obtain the second-level network access points and target parameters included in the broadcast information provided for this application;

[0058] Figure 5 It is a flowchart of an implementation of determining an access point to be connected from a network connection list based on a first policy provided for this application;

[0059] Figure 6 It is an example diagram of the network structure provided for this application;

[0060] Figure 7a It is another example diagram of the network structure provided for this application;

[0061] Figure 7b It is another flowchart of an implementation of the control method provided for the embodiments of this application;

[0062] Figure 8 It is another flowchart of an implementation of determining an access point to be connected from a network connection list based on a first policy provided for this application;

[0063] Figure 9 It is yet another example diagram of the network structure provided for this application;

[0064] Figure 10 It is a schematic structural diagram of a control device provided for this application;

[0065] Figure 11 It is a schematic structural diagram of an electronic device provided for this application. Detailed implementation manners

[0066] The embodiments of this application will be described below with reference to the accompanying drawings in the embodiments of this application. The terms used in the embodiments section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0067] The embodiments of the present application will be described below in conjunction with the accompanying drawings. As can be known to those of ordinary skill in the art, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0068] Terms such as "first" and "second" in the specification, claims and the above-mentioned accompanying drawings of the present application are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing when describing objects with the same attributes in the embodiments of the present application. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device comprising a series of units does not have to be limited to those units, but may include other units not clearly listed or inherent to these processes, methods, products or devices.

[0069] The control method provided by the present application can be used for a terminal device. The terminal device has a first communication device (for example, a Wi-Fi module). The terminal device can establish a wireless connection with a network access point (for example, a network access point provided by a network device or a network access point provided by another terminal device) based on the first communication device to access the network. The terminal device also has a second communication device (for example, a Bluetooth module). Based on the second communication device, the terminal device can establish a wireless connection with the second communication device of another terminal device, so that information can be exchanged between the two terminal devices.

[0070] The terminal device can be a mobile device, such as a mobile phone, a tablet computer, a laptop computer, etc. Of course, the terminal device can also be a non-mobile device, such as a desktop computer, etc.

[0071] As Figure 1a shown, it is a flowchart of an implementation of the control method provided by the embodiments of the present application, which may include:

[0072] Step S101: Obtain at least one broadcast message through the second communication device. The broadcast message includes a secondary network access point.

[0073] Among them, the second communication device belongs to a second terminal device. That is to say, the second terminal device obtains at least one broadcast message through the second communication device of the second terminal device.

[0074] The broadcast message is broadcast by a first terminal device providing the secondary network access point through the second communication device of the first terminal device. The network access point provided after the first terminal device establishes a wireless connection with the primary network access point based on its first communication device is the secondary network access point.

[0075] When the second terminal device executes the control method of this application, it may have been connected to a network access point, or it may not have been connected to any network access point yet.

[0076] The second terminal device may have a network receiving mode, and when this network receiving mode is enabled, the control method of this application is executed.

[0077] This network receiving mode can be enabled manually by the user, or the second terminal device can automatically enable the network receiving mode according to a specific policy. For example, when the second terminal device has been connected to a network access point, the second terminal device can determine whether to enable the network receiving mode according to the network parameters of the connected access point.

[0078] As an example, if the connected access point of the second terminal device is the target network access point (for example, a specific first-level network access point), the second terminal device enables the network receiving mode of the second terminal device based on the network parameters of the connected access point. Specifically, the network receiving mode can be enabled in one of the following ways:

[0079] Obtain at least one network parameter characterizing the signal quality of the connected access point, process the at least one network parameter to obtain a score characterizing the signal quality of the connected access point, and if the score is less than the target value, enable the network receiving mode.

[0080] Alternatively, obtain the quality parameter value of the connected access point, and if the quality parameter value does not meet the target quality standard, enable the network receiving mode.

[0081] Among them, the network parameters characterizing the signal quality of the connected access point may include, but are not limited to, at least one of the following: Received Signal Strength Indication (RSSI), frequency band (such as 2.4G, 5G, 6G), bandwidth, throughput, encryption method, whether it has been used, etc.

[0082] The score of the signal quality of the connected access point is positively correlated with the RSSI, that is, the larger the RSSI of the connected access point, the higher the score of the signal quality of the connected access point.

[0083] The score of the signal quality of the connected access point is positively correlated with the frequency band, that is, the higher the frequency band of the connected access point, the higher the score of the signal quality of the connected access point.

[0084] The score of the signal quality of the connected access point is positively correlated with the bandwidth, that is, the wider the bandwidth of the connected access point, the higher the score of the signal quality of the connected access point.

[0085] The score of the signal quality of the connected access point is positively correlated with the throughput, that is, the greater the throughput of the connected access point, the higher the score of the signal quality of the connected access point.

[0086] The score of the signal quality of the connected access point is positively correlated with the security of the encryption method, that is, the higher the security of the encryption method of the connected access point, the higher the score of the signal quality of the connected access point.

[0087] When the connected access point is a used network access point, the score of the signal quality of the connected access point is higher than the score of the signal quality of the target network access point when the connected access point is an unused connected access point.

[0088] When obtaining the score representing the signal quality of the connected access point, certain weights can be assigned to each network parameter, and the weights corresponding to different network parameters can be the same or different.

[0089] As an example, the above at least one network parameter can be calculated using a pre-set calculation rule to obtain the score representing the signal quality of the connected access point.

[0090] As an example, the above at least one network parameter can be input into a pre-trained scoring model to obtain the score representing the signal quality of the connected access point output by the scoring model.

[0091] As Figure 1b shown, it is an example diagram of the scoring model provided by the embodiment of the present application. Information such as the sensing parameter indicating whether the terminal device providing the network access point is moving (see below), the signal quality score of the network access point (calculated network score) or network parameters, the remaining power of the terminal device providing the network access point, and the network level of the network access point can be input into the scoring model to obtain the score representing the signal quality of the network access point output by the scoring model.

[0092] The quality parameter value of the target network access point can be determined based on the value of the network parameter representing the signal quality of the target network access point.

[0093] As an example, the value of each network parameter obtained in real time can be used as the quality parameter value of the target network access point.

[0094] As an example, for each network parameter, the mean value of multiple values obtained at multiple consecutive moments can be calculated, and the mean value corresponding to each network parameter can be determined as the quality parameter value of the target network access point.

[0095] Step S102: Analyze the broadcast information to obtain the access point to be connected.

[0096] If only one broadcast message is obtained, parse the broadcast message to obtain a secondary network access point, and the secondary network access point can be determined as the access point to be connected.

[0097] If multiple (denoted as N, where N is an integer greater than 1) broadcast messages are obtained, parse each broadcast message separately, and obtain a secondary network access point corresponding to each broadcast message. Determine the access point to be connected among the multiple (i.e., N) obtained secondary network access points.

[0098] Step S103: Send a target request through the second communication device so that the first terminal device providing the access point to be connected activates the hotspot mode of the first communication device of the first terminal device.

[0099] After determining the access point to be connected, the second terminal device can send a target request to the first terminal device providing the access point to be connected based on the second communication device, requesting the first terminal device to activate the hotspot mode of the first communication device of the first terminal device, so that the first terminal device provides a secondary network access point (also known as a hotspot).

[0100] Step S104: Establish a secondary wireless network with the access point to be connected through the first communication device of the second terminal device.

[0101] After the first terminal device activates the hotspot mode, the second terminal device can scan the secondary network access point (i.e., the access point to be connected) provided by the first terminal device. Then, the second terminal device can establish a wireless connection with the access point to be connected based on the first communication device of the second terminal device, thereby establishing a secondary wireless network. That is, the first terminal device and the second terminal device construct a secondary wireless network.

[0102] Optionally, in the case where the access point to be connected does not set verification information (such as a password), if the second terminal device obtains an access instruction for the access point to be connected, the second terminal device can directly establish a wireless connection with the access point to be connected through the first communication device of the second terminal device.

[0103] The access instruction for the access point to be connected can be triggered manually or automatically by the second terminal device based on the network access policy.

[0104] In the case where the access point to be connected sets verification information, if the second terminal device obtains an access instruction for the access point to be connected, the second terminal device can send the verification information of the access point to be connected input by the user to the access point to be connected through the first communication device, so that the first communication device of the second terminal device establishes a wireless connection with the second network access point.

[0105] When the second terminal device is already connected to a network access point, the second terminal device switches from the connected access point to the access point to be connected based on the first communication device.

[0106] In the above embodiments, when verification information is set for the access point to be connected, if the second terminal device wants to establish a wireless connection with the access point to be connected, the user needs to input the verification information. To further improve the convenience of network access, the broadcast information may further include access information, including but not limited to: verification information (such as password), network encryption method, network address (such as mac address, etc.). In this way, the second terminal device can obtain the verification information of the access point to be connected through the broadcast information without the user input, thereby improving the convenience of connecting to the second-level network node.

[0107] Furthermore, when the first terminal device broadcasts information, the broadcast information may further include but not limited to: the remaining battery power of the first terminal device, and sensing parameters indicating whether the first terminal device is in a moving state (such as sensing parameters of a speed sensor, sensing parameters of an acceleration sensor, sensing parameters of a gyroscope, etc.).

[0108] The content in the broadcast information can be broadcast at one time or in multiple broadcasts.

[0109] The control method provided by the embodiments of the present application divides network access points into levels. Among them, each terminal device providing a second-level network access point can broadcast information through the second communication device, so that other terminal devices with network requirements can obtain the broadcast information including the second-level network access point based on the second communication device, and then parse the broadcast information to determine the access point to be connected, and request the first terminal device providing the access point to be connected to start the hotspot mode through the second communication device, so that other terminal devices can establish a second-level wireless network with the access point to be connected through the first communication device, realizing the automatic start of the hotspot mode, improving the efficiency and convenience of hotspot connection, and improving the intelligence of hotspot connection.

[0110] In an optional embodiment, the above broadcast information may further include: a target parameter, which is used to characterize the signal quality of the first-level network access point connected to the first terminal device providing the second-level network access point.

[0111] The first terminal device constructs a first-level wireless network with the first-level network access point connected through the first communication device of the first terminal device.

[0112] Optionally, the target parameter of any network access point (including the first-level network access point) may be the quality parameter value of the any network access point.

[0113] The quality parameter value of any network access point can be determined based on the value of a network parameter that characterizes the signal quality of the any network access point. The network parameters that characterize the signal quality of a network access point can include, but are not limited to, at least one of the following: Received Signal Strength Indication (RSSI), frequency band (e.g., 2.4G, 5G, 6G), bandwidth, throughput, encryption method, whether it has been used, etc.

[0114] That is to say, the quality parameter value of a network access point is determined based on the value of at least one network parameter.

[0115] As an example, for any network access point, the values of each network parameter of the any network access point obtained in real time can be used as the quality parameter value of the any network access point.

[0116] As an example, for each network parameter corresponding to any network access point, the mean value of multiple values of the network parameter obtained at multiple consecutive moments can be calculated, and the mean values corresponding to each network parameter are determined as the quality parameter value of the any network access point.

[0117] Optionally, the target parameter of any network access point (including the first-level network access point) can be a score that characterizes the signal quality of the any network access point.

[0118] The score that characterizes the signal quality of the any network access point can be determined based on at least one network parameter that characterizes the signal quality of the any network access point. For specific reference to the foregoing embodiments, details are not described herein again.

[0119] As an example, a preset calculation rule can be used to calculate the above at least one network parameter to obtain a score that characterizes the signal quality of the any network access point.

[0120] As an example, the above at least one network parameter can be input into a pre-trained scoring model to obtain a score that characterizes the signal quality of the any network access point output by the scoring model.

[0121] The target parameter can be used to determine the access point to be connected.

[0122] In an optional embodiment, a flowchart of an implementation of parsing the broadcast information to obtain the access point to be connected is as Figure 2 shown and can include:

[0123] Step S201: Parse the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information.

[0124] If only one broadcast message is obtained, parse the broadcast message to obtain a secondary network access point and its corresponding target parameter.

[0125] If N broadcast messages are obtained, parse each broadcast message separately, and for each broadcast message, obtain a secondary network access point and its corresponding target parameter.

[0126] Step S202: If the target parameter is greater than the quality threshold, determine the secondary network access point corresponding to the target parameter greater than the quality threshold as the access point to be connected.

[0127] The target parameter being greater than the quality threshold indicates that the signal quality of the primary network access point to which the first terminal device providing the secondary network access point is connected is relatively good, and it can support the first terminal device to provide the secondary network access point.

[0128] As an example, if the target parameter is a quality parameter value, when the quality parameter value meets the target quality standard, it is determined that the target parameter is greater than the quality threshold; if the target parameter is a score representing signal quality, when the score is greater than or equal to the target value, it is considered that the target parameter is greater than the quality threshold.

[0129] In the case of only obtaining one broadcast message, if the target parameter is greater than the quality threshold, determine the secondary network access point corresponding to the target parameter as the access point to be connected; otherwise, prohibit determining the secondary network access point corresponding to the target parameter as the access point to be connected.

[0130] In the case of obtaining N broadcast messages, select the secondary network access point corresponding to the target parameter greater than the quality threshold as the access point to be connected; if there are multiple target parameters greater than the quality threshold, one target parameter can be randomly selected from the multiple target parameters greater than the quality threshold, and determine the secondary network access point corresponding to the randomly selected target parameter as the access point to be connected; or, the secondary network access point corresponding to the target parameter representing the optimal quality (for example, the maximum target parameter) among the multiple target parameters greater than the quality threshold can be determined as the access point to be connected.

[0131] When the second terminal device has already connected to a network access point, when the second terminal device is in the network receiving mode, it indicates that the second terminal device has a need to switch the network. Therefore, when determining the access point to be connected, the already connected access point of the second terminal device may not be considered. Of course, when determining the access point to be connected, the already connected access point of the second terminal device can also be considered.

[0132] In an optional embodiment, another implementation flowchart of parsing the broadcast message to obtain the access point to be connected is as Figure 3 shown, and it may include:

[0133] Step S301: Analyze the broadcast information to obtain the second-level network access points and target parameters included in the broadcast information.

[0134] If only one broadcast information is obtained, analyze the broadcast information to obtain one second-level network access point and its corresponding target parameters.

[0135] If N broadcast information are obtained, analyze each broadcast information separately, and obtain one second-level network access point and its corresponding target parameters for each broadcast information.

[0136] Step S302: Obtain the connected access point. The connected access point is a first-level network access point, and the connected access point has established a first-level wireless network through the first communication device of the second terminal device.

[0137] When the second terminal device has already connected to a network access point and the connected network access point is a first-level network access point, it is necessary to consider the connected access point of the second terminal device to determine the access point to be connected.

[0138] Step S303: If the target parameter is greater than the target parameter (for the convenience of distinction, denoted as the quality parameter) of the connected access point, determine the second-level network access point corresponding to the target parameter greater than the quality parameter of the connected access point as the access point to be connected.

[0139] That is to say, when the second terminal device has already connected to a network access point, if the connected network access point is a first-level network access point, only when the parsed target parameter is greater than the quality parameter of the connected access point, will the second-level network access point corresponding to the target parameter greater than the quality parameter of the connected access point be used as the access point to be connected; if there is no target parameter greater than the quality parameter of the connected access point, the connected access point will be determined as the access point to be connected.

[0140] If there are multiple target parameters greater than the quality parameter of the connected access point, the second-level network access point corresponding to the maximum target parameter can be selected as the access point to be connected. Or, randomly select one target parameter from the multiple target parameters greater than the quality parameter of the connected access point, and use the second-level network access point corresponding to the randomly selected target parameter as the access point to be connected.

[0141] Optionally, when the second terminal device has already connected to a network access point, if the connected network access point is a second-level network access point, the signal quality of the connected access point can be not considered, and directly use the second-level network access point corresponding to the target parameter greater than the quality threshold as the access point to be connected.

[0142] In an optional embodiment, a flowchart of an implementation for parsing the broadcast information to obtain the second-level network access points and target parameters included in the broadcast information is as follows Figure 4 and may include:

[0143] Step S401: Parse multiple pieces of broadcast information to obtain the second-level network access points and target parameters included in each piece of broadcast information.

[0144] Step S402: Determine, from the multiple second-level network access points, a candidate second-level network access point with the first-ranked target parameter among the target parameters of the multiple second-level network access points. The candidate second-level network access point is used to determine the access point to be connected.

[0145] That is to say, in the case of obtaining multiple target parameters by parsing multiple pieces of broadcast information, sort the parsed multiple target parameters in descending order according to the represented signal quality, and determine the second-level network node corresponding to the target parameter ranked first as the candidate second-level network access point. Subsequently, only determine the access point to be connected based on the candidate second-level network access point, without considering non-candidate second-level network access points.

[0146] Optionally, if the target parameter of the candidate second-level network access point is greater than the quality threshold, determine the candidate second-level network access point as the access point to be connected.

[0147] Optionally, if the target parameter of the candidate second-level network access point is greater than the quality parameter of the access point already connected by the second terminal device, determine the candidate second-level network access point as the access point to be connected.

[0148] Further, after establishing a second-level wireless network with the access point to be connected through the first communication device of the second terminal device, it may further include:

[0149] If the network scanning condition is met, obtain a network connection list including at least one network access point based on the first communication device of the second terminal device.

[0150] Optionally, meeting the network scanning condition may include: obtaining a network scanning instruction.

[0151] Optionally, the second terminal device may perform network scanning periodically based on the first communication device, then meeting the network scanning condition may include: reaching the scanning period.

[0152] Optionally, meeting the network scanning condition may include: meeting the network switching condition, that is, performing network scanning only when network switching is required.

[0153] Optionally, meeting the network scanning condition may include: not meeting the network switching condition, the second terminal device being in a moving state, and detecting that the signal quality of the connected access point of the second terminal device has dropped to a first target signal quality. Subsequently, when the network switching condition is met, it can be directly switched to the access point to be connected, improving the network switching efficiency.

[0154] Optionally, the above-mentioned meeting the network switching condition may include: detecting that the signal quality of the connected access point of the second terminal device has dropped to a second target signal quality; the second target signal quality is lower than the first target signal quality.

[0155] Optionally, it is possible to periodically detect whether the network scanning condition is met.

[0156] Among them, the detection period when the second terminal device is static is longer than the detection period when the second terminal device is in a moving state.

[0157] Raising the detection period when the second terminal device is static can reduce the power consumption of the second terminal device. Lowering the detection period when the second terminal device is in a moving state can perform network switching immediately.

[0158] The second terminal device stores the network access points scanned by the first communication device in the form of a list (denoted as the network connection list). This network connection list can be displayed for the user to view, or it can not be displayed. In the case where the network connection list can be displayed, it can be displayed when the user triggers a viewing request, and the network connection list can not be displayed when the user does not trigger a viewing request.

[0159] Determine whether the first-level network access point is included in the network connection list based on the record information characterizing the first-level network access point.

[0160] In this application, the first-level network access points are pre-calibrated and recorded in the second terminal device, and through the record information, it can be determined which network access points are the first-level network access points.

[0161] As an example, the first-level network access point can be specified by the user.

[0162] As an example, the first-level network access point can be a network access point determined by the terminal device according to a preset rule. For example, it can be the network access point with the most access times by the terminal device.

[0163] Compared with the network access points provided by terminal devices (such as mobile phones, tablets, etc.), the network access points provided by network devices (such as wireless routers) with the ability to connect to the Internet provide better network service performance. Therefore, when calibrating the target network access point, the network access points provided by network devices can be preferentially selected for calibration.

[0164] Moreover, in the process of users' daily use of terminal devices, they usually prefer to select the network access points provided by network devices first. Therefore, the network access point with the most access times by the terminal device is usually also the network access point provided by the network device.

[0165] The recorded information can be a list of first-level network access points. For each network access point in the network connection list, if the network access point is in the list of first-level network access points, then the network access point is a first-level network access point; otherwise, it is determined that the network access point is not a first-level network access point.

[0166] If there is a first-level network access point in the network connection list, determine the access point to be connected from the network connection list based on the first policy.

[0167] That is to say, when determining the access point to be connected among the scanned network access points in this application, the level of the network access point is considered.

[0168] Optionally, the first policy is a policy related to the level of the network access point. The determined access point to be connected is a first-level network access point.

[0169] Optionally, an implementation manner of determining the access point to be connected from the network connection list based on the first policy can be:

[0170] Determine the first-level network access point as the access point to be connected.

[0171] That is to say, as long as a first-level network access point is scanned, directly switch to establish a wireless connection with the first-level network access point. That is, preferentially select the first-level network access point to establish a wireless connection.

[0172] In an optional embodiment, another implementation manner of determining the access point to be connected from the network connection list based on the first policy can be:

[0173] If the signal quality of the first-level network access point is not less than the signal quality of the access point with the best signal among the non-first-level network access points in the network connection list, determine the first-level network access point as the access point to be connected.

[0174] Different from the previous embodiment that determines the access point to be connected only based on the level of the network access point, in this embodiment, the access point to be connected is determined by combining the level of the network access point and the signal quality.

[0175] Optionally, the non-first-level network access points in the network connection list can be sorted in descending order of signal quality, and the signal quality of the non-first-level network access point ranked first is compared with the signal quality of the first-level network access point. If the signal quality of the first-level network access point is equivalent to (or the same as) the signal quality of the non-first-level network access point ranked first, or the signal quality of the first-level network access point is better than the signal quality of the non-first-level network access point ranked first, then the first-level network access point is determined as the access point to be connected; otherwise, the non-first-level network access point ranked first is determined as the access point to be connected.

[0176] The signal quality of the network access point can be characterized by a target parameter, and the acquisition method of the target parameter can refer to the foregoing embodiments and will not be elaborated here.

[0177] In an optional embodiment, a flowchart of an implementation of determining the access point to be connected from the network connection list based on the first policy is as Figure 5 shown and may include:

[0178] Step S501: Obtain the connected access point.

[0179] The connected access point refers to the network access point currently being used by the second terminal device, that is, the second-level network access point, and this network access point must be in the network connection list.

[0180] Step S502: Determine the first-level network access point as the access point to be connected based on the signal quality of the first-level network access point being not less than the signal quality of the connected access point.

[0181] Since the connected access point is a second-level network access point, it indicates that the first terminal device providing the connected access point is the terminal device that has established a wireless connection with the first-level network access point. After the first terminal device establishes a wireless connection with the first-level network access point, it turns on the hotspot mode to provide the second-level network access point.

[0182] When the second terminal device has established a wireless connection with the second-level network access point and scans the first-level network access point, it is necessary to compare the signal quality of the connected access point and the scanned first-level network access point. Only when the signal quality of the scanned first-level network access point is the same as the signal quality of the connected access point, or the signal quality of the scanned first-level network access point is better than the signal quality of the connected access point, will the first-level network access point be determined as the access point to be connected; otherwise, the connected access point is determined as the access point to be connected.

[0183] As Figure 6As shown in the figure, it is an example diagram of the network structure provided by the embodiment of the present application. In this example, the network access point provided by the network device is the first-level network access point, and the Mac address of the network device is 192.168.0.1.

[0184] In this example, the first terminal device has established a wireless connection with the first-level network access point provided by the network device. Then, the network device provides the first-level network access point to assign a mac address (192.168.0.10 in this example) to the second terminal device.

[0185] Similarly, if the second terminal device has established a wireless connection with the first-level network access point provided by the network device (such as a wireless router), the network device provides the first-level network access point to assign a mac address (192.168.0.6 in this example) to the first terminal device.

[0186] As Figure 7a shown in the figure, it is another example diagram of the network structure provided by the embodiment of the present application. In this example, the network access point provided by the network device is the first-level network access point, and the Mac address of the network device is 192.168.0.1.

[0187] In this example, the first terminal device has established a wireless connection with the first-level network access point provided by the network device. Then, the network device provides the first-level network access point to assign a Mac address (denoted as Mac1 in this example, specifically: 192.168.0.10) to the first terminal device.

[0188] After the first terminal device has established a wireless connection with the first-level network access point provided by the network device, it enables the hotspot mode to provide a network access point. Then, this network access point is the second-level network access point. In this example, the Mac address (denoted as Mac2 in this example) of the network access point provided by the first terminal device is: 192.168.6.90.

[0189] The second terminal device has established a wireless connection with the second-level network access point provided by the first terminal device. Then, the second-level network access point provided by the first terminal device assigns a Mac address (192.168.6.100 in this example) to the second terminal device.

[0190] It can be seen from the above network structure that the first terminal device providing the second-level network access point will have two Mac addresses, one is the Mac address assigned by the first-level network access point it accesses, and the other is the Mac address of the second-level network access point it provides. Based on this, the terminal device providing the second-level network access point can broadcast the address of the network access point based on the second communication device, so that the terminal device receiving the broadcast information can determine whether the device corresponding to the scanned network access point is a secondary network access point.

[0191] The second terminal device can receive broadcast information based on the second communication device. If it receives the broadcast information of the first terminal device providing the connected access point and parses two addresses from the broadcast information, it determines that the connected access point is a second-level network access point.

[0192] In the embodiments of the present application, the connected access point may be switched from a first-level network access point by the second terminal device, or may be a wireless connection directly established by the second terminal device with the connected access point.

[0193] That is to say, in the case where the second terminal device establishes a wireless connection with the second-level network access point through the first communication device, if it scans the first-level network access point, it automatically switches to the first-level network access point.

[0194] Optionally, another implementation flowchart for determining the access point to be connected from the network connection list based on the first policy is as Figure 8 shown and may include:

[0195] Step S801: Input at least the level of each network access point in the network connection list and the target parameter characterizing the signal quality of each network access point into a pre-trained priority evaluation model to obtain the priority of each network access point.

[0196] Optionally, the target parameter may be a network parameter characterizing the signal quality of the network access point, or may be a score characterizing the signal quality of the network access point. For the specific method, refer to the foregoing embodiments and will not be elaborated here.

[0197] Further, in addition to inputting the level of the network access point and the target parameter into the priority evaluation model, the remaining power of the device providing the network access point and the sensing parameter characterizing whether the device providing the network access point moves may also be input into the priority evaluation model.

[0198] The data (level, target parameter, remaining power, sensing parameter, etc.) that needs to be input into the priority evaluation model can be added to the prompt word template to obtain a prompt word, and the prompt word is input into the priority evaluation model to obtain the priority of each network access point.

[0199] Step S802: Determine the network access point with the highest priority as the access point to be connected.

[0200] Optionally, if there is no first-level network access point in the network connection list, determine the access point to be connected from the network connection list based on the second policy. The second policy is different from the first policy.

[0201] That is to say, according to the two situations of the existence and non-existence of the first-level network access point in the network connection list, the present application adopts different strategies to determine the access point to be connected from the network connection list.

[0202] Optionally, the second strategy is a strategy that is not related to the level of the network access point. That is, when determining the access point to be connected from the network connection list based on the second strategy, whether the network access point is a first-level network access point will not be considered.

[0203] As an example, determining the access point to be connected from the network connection list based on the second strategy may include: determining the access point to be connected based on the signal quality of each network access point in the network connection list.

[0204] For example, if the first terminal device is not connected to any network access point, obtain the target parameter characterizing the signal quality of the network access points in the network connection list, and select the network access point corresponding to the target parameter characterizing the optimal signal quality as the access point to be connected.

[0205] If the first terminal device is already connected to an access point, obtain the target parameter characterizing the signal quality of the network access points in the network connection list. If the gap between the target parameter of the already connected access point and the target parameter of the network access point corresponding to the target parameter characterizing the optimal signal quality indicates that the signal quality of the already connected access point is worse than that of the network access point corresponding to the target parameter characterizing the optimal signal quality, and the gap is greater than the threshold, then the network access point corresponding to the target parameter characterizing the optimal signal quality is the access point to be connected.

[0206] Establish a first-level wireless network between the first communication device of the second terminal device and the access point to be connected.

[0207] Since the second terminal device is already connected to an access point (i.e., a second-level network access point), therefore, establishing a first-level wireless network between the first communication device of the second terminal device and the access point to be connected means: the second terminal device switches from the second-level network access point to the first-level network access point based on the first communication device.

[0208] That is to say, after the second terminal device establishes a wireless connection with the second-level network access point based on the first communication device, if a first-level network access point is scanned, it can switch to the first-level network access point.

[0209] As Figure 7b shown, it is another implementation flowchart of the control method provided by the embodiment of the present application, which may include:

[0210] Step S701: Establish a wireless connection between the first communication device and the first network access point.

[0211] For example, the first network access point is the network access point provided by the wireless router in the user's home, and the user sets the first network access point as the target network access point. After the user brings the terminal device U home, the terminal device U will establish a wireless connection with the wireless router through the WiFi module, thereby accessing the Internet. After establishing a wireless connection with the first network access point provided by the wireless router, the terminal device U will record some information of the first network access point, and these information include but are not limited to: the frequency band, bandwidth, RSSI, data transmission rate, Mac address of the first network access point, etc.

[0212] Step S702: Determine whether the first network access point belongs to the target network access point. If it is, go to step S703; if not, end.

[0213] For the specific judgment process, refer to the foregoing embodiments and will not be elaborated here.

[0214] Step S703: Obtain the score representing the signal quality of the first network access point.

[0215] Step S704: Determine whether the score is greater than or equal to the score threshold. If it is, go to step S705; if not, go to step S713 to perform a network search.

[0216] Step S705: Determine whether the terminal device U is in a moving state. If it is, go to step S711; if not, go to step S706.

[0217] Step S706: Broadcast information through the second communication device (such as a Bluetooth module). The broadcast information (i.e., the broadcast message) may include but is not limited to the following information: the SSID of the hotspot that the terminal device U can provide, the password, the encryption type, the score of the first network access point, the Mac address assigned by the first network access point to the terminal device U, etc.

[0218] Step S707: Monitor whether a hotspot enabling request is received. If it is, go to step S708; if not, continue to monitor whether a hotspot enabling request message is received. Specifically, monitor whether a hotspot enabling request message is received through the second communication device.

[0219] Step S708: Enable the hotspot mode of the terminal device U.

[0220] Step S709: Monitor whether a terminal device establishes a wireless connection through the first communication device. If no terminal device is connected, go to step S710; if there is, keep the hotspot mode of the terminal device enabled.

[0221] Optionally, if no terminal device accesses the hotspot within the preset duration, it is determined that no terminal device is connected.

[0222] Step S710: Turn off the hotspot mode of the terminal device U.

[0223] Step S711: Obtain a score representing the signal quality of the first network access point. When the terminal device U is in a moving state, it is necessary to obtain again the score representing the signal quality of the first network access point.

[0224] Step S712: Determine whether the score is greater than or equal to the score threshold. If so, go to step S706; if not, go to step S713 to perform a network search.

[0225] Step S713: Monitor whether broadcast information is received through the second communication device. If so, go to step S714; if not, continue to monitor whether broadcast information is received through the second communication device.

[0226] Step S714: Sort the network access points parsed based on the broadcast information in descending order of signal quality. If there are multiple network access points with the best quality, go to step S715.

[0227] Step S715: Select the network access point with the best quality and closest to the terminal device U as the network access point to be connected.

[0228] Step S716: Send a hotspot enable request to the network access point to be connected through the second communication device.

[0229] Step S717: Monitor whether a wireless connection is established with the network access point to be connected. If so, go to step S718; if not, return to step S713.

[0230] Step S718: Perform a network scan to obtain a network access point list.

[0231] The network scan can be performed according to a preset period to update the network access point list. After obtaining the network access point list, it is possible to determine whether to perform a network switch based on the signal quality of the scanned network access points, or it is possible to determine whether to perform a network switch based on the signal quality and level of the scanned network access points.

[0232] Next, in combination with a specific application scenario, an implementation manner of the present application will be described:

[0233] As Figure 9 shown, it is another example diagram of the network structure provided by the embodiment of the present application. The network structure is composed of a network device and terminal devices, where the network device is a wireless router, and the terminal devices include mobile phones and tablet computers.

[0234] In the initial state, neither of the two terminal devices, mobile phone A and mobile phone B, can scan the network access point provided by the wireless router (denoted as network access point W), that is, both mobile phone A and mobile phone B are outside the signal coverage of network access point W, while the terminal device of tablet computer C can scan the network access point provided by the wireless router, that is, the tablet computer is within the signal coverage of network access point W. Therefore, only the tablet computer can establish a wireless connection with the wireless router through its own first communication device (for example, a WIFI module) and access the Internet.

[0235] If both mobile phone A and mobile phone B calibrate network access point W as the first-level network access point, while the tablet computer does not calibrate network access point W as the first-level network access point, then, after establishing a wireless connection with network access point W, mobile phone A will enable the network expansion mode of mobile phone A based on the network parameters of network access point W to provide a second-level network access point; mobile phone B will also enable the network expansion mode of mobile phone B based on the network parameters of network access point W after establishing a wireless connection with network access point W to provide a second-level network access point; while the tablet computer will not enable the network expansion mode of the tablet computer based on the network parameters of network access point W.

[0236] Suppose mobile phone B first enters the signal coverage of network access point W. After mobile phone B establishes a wireless connection with network access point W, it can obtain at least one network parameter characterizing the signal quality of network access point W, process the obtained at least one network parameter to obtain a score characterizing the signal quality of network access point W. If the score is greater than or equal to the target value, then enable the network expansion mode of mobile phone B. In the network expansion mode, mobile phone B can broadcast information through the second communication device (for example, Bluetooth), and the broadcast information at least includes: mobile phone B can provide a network access point (denoted as network access point R2) and the score characterizing the signal quality of network access point W. If the score is less than the target value, then mobile phone B enables the network reception mode of mobile phone B. In the network reception mode, mobile phone B can receive broadcast information from other terminal devices (such as mobile phone A) through the second communication device.

[0237] When the mobile phone B enables the network extension mode to provide the network access point R2, if the mobile phone A moves to the first position and the mobile phone A can simultaneously scan the network access point W provided by the wireless router and the network access point R2 provided by the mobile phone B, at this time, since the network access point W is the first-level network access point, the mobile phone A can directly use the network access point W as the access point to be connected for connection. Alternatively, the mobile phone A can first compare the signal quality of the network access point W and the network access point R2. If the signal quality of the network access point W is not lower than the signal quality of the network access point R2, the mobile phone A uses the network access point W as the access point to be connected for wireless connection. At this time, the mobile phone A accesses the Internet through the network access point W; if the signal quality of the network access point W is lower than the signal quality of the network access point R2, and the difference between the signal quality of the network access point W and the signal quality of the network access point R2 is greater than the threshold, the mobile phone A uses the network access point R2 as the access point to be connected for wireless connection. At this time, the mobile phone A accesses the Internet through the network access point R2 and the network access point W.

[0238] Assume that at the first position, the signal quality of the network access point W scanned by the mobile phone A is the same as or comparable to the signal quality of the network access point R2 (that is, the signal quality difference is less than a specific difference). The mobile phone A establishes a wireless connection with the network access point W at the first position. Later, the mobile phone A moves to the second position. At the second position, the mobile phone A can still simultaneously scan the network access point W provided by the wireless router and the network access point R2 provided by the mobile phone B. If the signal quality of the network access point W is still not lower than the signal quality of the network access point R2 at this time, the mobile phone A maintains the wireless connection with the network access point W; if the signal quality of the network access point W is lower than the signal quality of the network access point R2, and the difference between the signal quality of the network access point W and the signal quality of the network access point R2 is greater than the threshold, the mobile phone A switches from establishing a wireless connection with the network access point W to establishing a wireless connection with the network access point R2.

[0239] After the mobile phone A establishes a wireless connection with the network access point R2, if the mobile phone A returns to the first location again, then as long as the signal quality of the network access point W is not lower than that of the network access point R2, the mobile phone A will automatically switch to establish a wireless connection with the network access point W and no longer establish a wireless connection with the network access point R2, unless the signal quality of the network access point W is lower than that of the network access point R2 and the difference between the signal quality of the network access point W and that of the network access point R2 is greater than the threshold, in which case the mobile phone A will maintain the wireless connection with the network access point R2. This is different from the prior art in which, after the mobile phone A establishes a wireless connection with the network access point R2, if the mobile phone A returns to the first location again and the signal quality of the network access point W at the first location is not lower than that of the network access point R2, the mobile phone A will maintain the wireless connection with the network access point R2.

[0240] Corresponding to the method embodiment, the present application further provides a control device. A schematic structural diagram of the control device provided in the embodiment of the present application is as Figure 10 shown and may include:

[0241] a receiving module 1001, an analyzing module 1002, a sending module 1003, and a connecting module 1004;

[0242] Among them, the receiving module 1001 is configured to obtain at least one broadcast message through a second communication device, and the broadcast message includes a second-level network access point;

[0243] the analyzing module 1002 is configured to analyze the broadcast message to obtain an access point to be connected; the second communication device belongs to a second terminal device;

[0244] the sending module 1003 is configured to send a target request through the second communication device so that a first terminal device providing the access point to be connected starts a hotspot mode of a first communication device of the first terminal device;

[0245] the connecting module 1004 is configured to establish a second-level wireless network with the access point to be connected through the first communication device of the second terminal device.

[0246] The control device provided by the embodiment of the present application divides network access points into levels. Among them, each terminal device providing a second-level network access point can broadcast information through a second communication device, so that other terminal devices with network requirements can obtain broadcast information including the second-level network access point based on the second communication device, and then parse the broadcast information to determine the access point to be connected, and request the first terminal device providing the access point to be connected to start the hotspot mode through the second communication device, so that other terminal devices can establish a second-level wireless network with the access point to be connected through the first communication device, realizing the automatic start of the hotspot mode, improving the efficiency and convenience of hotspot connection, and improving the intelligence of hotspot connection.

[0247] In an alternative embodiment, the broadcast information further includes: a target parameter, where the target parameter is used to characterize the signal quality of the first-level network access point to which the first terminal device providing the second-level network access point is connected.

[0248] In an alternative embodiment, parsing the broadcast information to obtain the access point to be connected includes:

[0249] Parsing the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information;

[0250] If the target parameter is greater than the quality threshold, determine the second-level network access point corresponding to the target parameter greater than the quality threshold as the access point to be connected.

[0251] In an alternative embodiment, parsing the broadcast information to obtain the access point to be connected includes:

[0252] Parsing the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information;

[0253] Obtain the connected access point, where the connected access point is a first-level network access point, and the connected access point has established a first-level wireless network through the first communication device of the second terminal device;

[0254] If the target parameter is greater than the quality parameter of the connected access point, determine the second-level network access point corresponding to the target parameter greater than the quality parameter of the connected access point as the access point to be connected.

[0255] In an alternative embodiment, parsing the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information includes:

[0256] Parsing multiple broadcast information to obtain the second-level network access point and the target parameter included in each broadcast information;

[0257] Determine a candidate secondary network access point with the highest-ranked target parameter among multiple secondary network access points, where the candidate secondary network access point is used to determine an access point to be connected.

[0258] In an optional embodiment, after establishing a secondary wireless network with the access point to be connected through the first communication device of the second terminal device, the connection module 1004 is further configured to:

[0259] If a network scanning condition is satisfied, obtain a network connection list including at least one network access point based on the first communication device of the second terminal device;

[0260] Determine whether the network connection list includes a primary network access point based on the record information representing the primary network access point;

[0261] If the primary network access point exists in the network connection list, determine an access point to be connected from the network connection list based on a first policy;

[0262] Establish a primary wireless network between the first communication device and the access point to be connected

[0263] This application also provides an electronic device, which is a second terminal device. The second terminal device includes a first communication device, a second communication device, and at least one processor, where:

[0264] The first communication device is used to establish a wireless connection with a network access point; the first communication device and the processor can be independent components in the second terminal device, or the first communication device is a component of the processor. For example, the first communication device is a functional module provided by the processor.

[0265] The second communication device is used to receive or send information; the second communication device and the processor can be independent components in the second terminal device, or the second communication device is a component of the processor. For example, the second communication device is a functional module provided by the processor. As an example, the second communication device can be used to receive broadcast information or perform information broadcasting. As an example, the second communication device can also be used for information negotiation (such as negotiation of information related to enabling the hotspot mode).

[0266] The processor is configured to:

[0267] Obtain at least one broadcast information through the second communication device, where the broadcast information includes a secondary network access point;

[0268] Parse the broadcast information to obtain an access point to be connected;

[0269] Send a target request through the second communication device so that the first terminal device providing the access point to be connected activates the hotspot mode of the first communication device of the first terminal device;

[0270] Establish a secondary wireless network with the access point to be connected through the first communication device of the second terminal device.

[0271] In an optional embodiment, the broadcast information further includes: a target parameter, which is used to characterize the signal quality of the primary network access point to which the first terminal device providing the secondary network access point is connected.

[0272] In an optional embodiment, when the processor parses the broadcast information to obtain the access point to be connected, it is used for:

[0273] Parse the broadcast information to obtain the secondary network access point included in the broadcast information and the target parameter;

[0274] If the target parameter is greater than the quality threshold, determine the secondary network access point corresponding to the target parameter greater than the quality threshold as the access point to be connected.

[0275] An embodiment of the present application also provides an electronic device. Refer to Figure 11 As shown, it shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application can be a terminal device (such as, a car machine, a large screen device, a smart home, a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc.). Figure 11 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0276] As Figure 11 shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage device 1108 into the random access memory (RAM) 1103. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 1103. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.

[0277] Typically, the following devices can be connected to the I / O interface 1105: input devices 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1108 including, for example, a memory card, a hard disk, etc.; and a communication device 1109. The communication device 1109 can allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 11 an electronic device with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices can be implemented or had.

[0278] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions run on an electronic device, the electronic device is caused to implement the following steps:

[0279] Obtain at least one broadcast message through a second communication device, where the broadcast message includes a second-level network access point;

[0280] Parse the broadcast message to obtain an access point to be connected; the second communication device belongs to a second terminal device;

[0281] Send a target request through the second communication device so that a first terminal device providing the access point to be connected starts a hotspot mode of a first communication device of the first terminal device;

[0282] Establish a second-level wireless network with the access point to be connected through a first communication device of the second terminal device.

[0283] An embodiment of the present application also provides a computer-readable storage medium. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can be caused to implement the following steps:

[0284] Obtain at least one broadcast message through a second communication device, where the broadcast message includes a second-level network access point;

[0285] Parse the broadcast message to obtain an access point to be connected; the second communication device belongs to a second terminal device;

[0286] Send a target request through the second communication device so that a first terminal device providing the access point to be connected starts a hotspot mode of a first communication device of the first terminal device;

[0287] Establish a second-level wireless network with the access point to be connected through a first communication device of the second terminal device.

[0288] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided in this application, the connection relationships between the modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.

[0289] Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware. Of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or dedicated circuits, etc. However, for this application, in more cases, the software program implementation is a better implementation method. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disc of a computer, etc., and includes several instructions to enable a computer device (which can be a personal computer, training device, or network device, etc.) to execute the methods described in various embodiments of this application.

[0290] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. Professional technicians can use different methods to implement the described functions for each specific solution, but such implementation should not be considered to exceed the scope of this application.

[0291] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from a website, a computer, a training device, or a data center to another website, a computer, a training device, or a data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or a data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0292] The embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other.

[0293] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A control method, the method comprising: obtaining at least one broadcast information through a second communication device, wherein the broadcast information includes a second-level network access point; Parsing the broadcast information to obtain an access point to be connected; The second communication device belongs to a second terminal device; Sending a target request through the second communication device so that the first terminal device providing the access point to be connected starts the hotspot mode of the first communication device of the first terminal device; A second level wireless network with the access point to be connected is established through the first communication device of the second terminal device.

2. The method according to claim 1, wherein the broadcast information further comprises: A target parameter is used to characterize a signal quality of a first-level network access point to which a first terminal device providing the second-level network access point is connected.

3. The method according to claim 2, wherein parsing the broadcast information to obtain the access point to be connected comprises: Parsing the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information; If the target parameter is greater than the quality threshold, a second-level network access point corresponding to the target parameter greater than the quality threshold is determined as an access point to be connected.

4. The method according to claim 2, wherein parsing the broadcast information to obtain the access point to be connected comprises: Parsing the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information; Obtaining a connected access point, wherein the connected access point is a first-level network access point, and the connected access point is a first-level wireless network established by the first communication device of the second terminal device; If the target parameter is greater than the quality parameter of the connected access point, a second-level network access point corresponding to the target parameter greater than the quality parameter of the connected access point is determined as the access point to be connected.

5. The method according to claim 3 or 4, wherein the parsing the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information comprises: Parsing multiple broadcast information to obtain the second-level network access point and the target parameter included in each broadcast information; A candidate second-level network access point having the first target parameter ranking among the plurality of second-level network access points is determined from the plurality of second-level network access points, and the candidate second-level network access point is used to determine the access point to be connected.

6. The method according to claim 1, after establishing the second wireless network with the access point to be connected through the first communication device of the second terminal device, further comprising: If the network scanning condition is met, obtaining a network connection list including at least one network access point based on the first communication device of the second terminal device; Determining whether the network connection list includes the first-level network access point based on the record information representing the first-level network access point; If the first-level network access point exists in the network connection list, determining an access point to be connected from the network connection list based on a first strategy; A first level wireless network is established based on the first communication device and the access point to be connected.

7. A control device, comprising: A receiving module, configured to obtain at least one broadcast information through a second communication device, wherein the broadcast information includes a second-level network access point; A parsing module, used to parse the broadcast information to obtain an access point to be connected; the second communication device belongs to a second terminal device; a sending module, configured to send a target request through the second communication device, so that the first terminal device providing the access point to be connected starts a hotspot mode of the first communication device of the first terminal device; A connection module is used to establish a second-level wireless network with the access point to be connected through the first communication device of the second terminal device.

8. An electronic device, the electronic device being a second terminal device, the second terminal device comprising a first communication device, a second communication device and at least one processor, wherein: The first communication device is used to establish a wireless connection with a network access point; The second communication device is used to receive or send information; The processor is used to: obtaining at least one broadcast information through the second communication device, wherein the broadcast information includes a second-level network access point; Parsing the broadcast information to obtain an access point to be connected; Sending a target request through the second communication device so that the first terminal device providing the access point to be connected starts the hotspot mode of the first communication device of the first terminal device; A second level wireless network with the access point to be connected is established through the first communication device of the second terminal device.

9. The electronic device according to claim 8, wherein the broadcast information further comprises: A target parameter is used to characterize a signal quality of a first-level network access point to which a first terminal device providing the second-level network access point is connected.

10. The electronic device according to claim 9, wherein when the processor parses the broadcast information and obtains the access point to be connected, it is configured to: Parsing the broadcast information to obtain the second-level network access point and the target parameter included in the broadcast information; If the target parameter is greater than the quality threshold, a second-level network access point corresponding to the target parameter greater than the quality threshold is determined as an access point to be connected.