CN108391281B - Bridging method of wireless network, terminal equipment and storage medium - Google Patents

Bridging method of wireless network, terminal equipment and storage medium Download PDF

Info

Publication number
CN108391281B
CN108391281B CN201810114228.1A CN201810114228A CN108391281B CN 108391281 B CN108391281 B CN 108391281B CN 201810114228 A CN201810114228 A CN 201810114228A CN 108391281 B CN108391281 B CN 108391281B
Authority
CN
China
Prior art keywords
network
wireless network
currently connected
state
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810114228.1A
Other languages
Chinese (zh)
Other versions
CN108391281A (en
Inventor
候祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810114228.1A priority Critical patent/CN108391281B/en
Publication of CN108391281A publication Critical patent/CN108391281A/en
Application granted granted Critical
Publication of CN108391281B publication Critical patent/CN108391281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/14Backbone network devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/02Inter-networking arrangements

Abstract

The application is applicable to the technical field of wireless networks, and provides a wireless network bridging method, terminal equipment and a storage medium, wherein the method comprises the following steps: when the method for establishing the wireless network is used for detecting that the terminal equipment is connected with the wireless network, the network state of the currently connected wireless network is obtained, if the network state of the wireless network is a preset network state, the bridging function of the terminal equipment is set to be allowed to operate, and if the bridging function of the terminal equipment is started by a user in the state of allowing the operation, the hot spot is established through the currently connected wireless network of the terminal equipment, the stability of the bridged wireless network is improved through the method, and the experience of the user is improved.

Description

Bridging method of wireless network, terminal equipment and storage medium
Technical Field
The present application relates to the field of wireless network technologies, and in particular, to a wireless network bridging method, a terminal device, and a storage medium.
Background
With the development of information technology, the application of terminal equipment is more and more extensive, and the terminal equipment can be connected with a wireless network to surf the internet so as to realize functions of shopping, consumption, information inquiry and the like. Wireless local area networks are becoming one of the more mainstream internet access methods.
Currently, some terminal devices provide a function of "wireless network bridging", where the function of wireless network bridging refers to that after a terminal device is connected to a wireless network, the currently connected wireless network is shared with other terminal devices in a manner of creating a personal hotspot. However, the existing wireless network bridging method has poor internet access stability and poor user experience.
Disclosure of Invention
In view of this, embodiments of the present application provide a bridging method for a wireless network, a terminal device, and a storage medium, so as to solve the problem of poor internet access stability in the current wireless network bridging manner.
A first aspect of an embodiment of the present application provides a method for bridging a wireless network, including:
when the terminal equipment is detected to be connected with a wireless network, acquiring the network state of the currently connected wireless network;
if the network state of the wireless network is a preset network state, setting the bridging function of the terminal equipment to be allowed to operate;
and if the bridging function of the terminal equipment is in a state of allowing operation, if the fact that a user opens the bridging function is detected, creating a hot spot through a wireless network currently connected with the terminal equipment.
A second aspect of an embodiment of the present application provides a terminal device, including:
the acquisition module is used for acquiring the network state of the currently connected wireless network when the connection of the terminal equipment to the wireless network is detected;
the first processing module is used for setting the bridging function of the terminal equipment to be allowed to operate if the network state of the wireless network is a preset network state;
and the hot spot creation module is used for creating a hot spot through a wireless network currently connected with the terminal equipment if detecting that a user opens the bridging function in a state that the bridging function of the terminal equipment is allowed to operate.
A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method provided in the first aspect of the embodiment of the present application when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product comprising a computer program that, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
The embodiment of the application acquires the network state of the currently connected wireless network when detecting that the terminal equipment is connected with the wireless network, sets the bridging function of the terminal equipment to be allowed to operate if the network state of the wireless network is a preset network state, and creates a hot spot through the currently connected wireless network of the terminal equipment if detecting that a user opens the bridging function if the bridging function of the terminal equipment is the allowed to operate state, because the hot spot is created through the wireless network only if the network state of the currently connected wireless network is the preset network state, other terminal equipment is prevented from being successfully connected with the hot spot after the hot spot is created through the wireless network which does not conform to the preset network state, however, the networking efficiency of other terminal equipment through the bridged wireless network is low, even the internet can not be accessed, so that invalid wireless network bridging is caused, the experience degree of the user is not good, and the stability of the bridged wireless network and the experience degree of the user can be improved through the method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a bridging method for a wireless network according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an implementation of a bridging method for a wireless network according to another embodiment of the present application;
fig. 3 is a schematic block diagram of a terminal device provided in an embodiment of the present application;
fig. 4 is a schematic block diagram of a terminal device according to another embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Fig. 1 is a schematic implementation flow diagram of a bridging method for a wireless network according to an embodiment of the present application, and as shown in the figure, the method may include the following steps:
step S101, when it is detected that the terminal device is connected to the wireless network, the network state of the currently connected wireless network is acquired.
In this embodiment of the application, the wireless network may be an internet access mode provided without a wired line, for example, a wireless local area network, a GPRS mobile phone, and the like. When a terminal device is connected to a wireless network, a communication channel currently used by the terminal device is determined, for example, a mobile phone simultaneously starts a GPRS internet service and establishes a communication connection with a wireless local area network, but since the priority of the wireless local area network is generally set in the mobile phone higher than the GPRS internet service, the communication channel currently used by the mobile phone is the wireless local area network, and the network state of the currently connected wireless local area network needs to be acquired, specifically, a preset server can be accessed through the currently connected wireless local area network, and an access result is acquired, for example, a preset website is accessed through the currently connected wireless local area network, and the access result is acquired. In practical application, the network speed of the currently connected wireless network can be acquired.
As another embodiment of the present application, the wireless network is a wireless local area network.
Step S102, if the network state of the wireless network is a preset network state, setting the bridging function of the terminal device to be allowed to operate.
In this embodiment of the present application, if a preset server is accessed through a currently connected wireless network and an access result is obtained as a way of obtaining a network state of the currently connected wireless network, and correspondingly, if the network state of the wireless network is a preset network state, the preset network state is: if the access result is successful, if the network state of the wireless network is not the preset network state, the method comprises the following steps: if the access result is access failure; if the network state of the wireless network connected currently is acquired as follows: acquiring the network speed of the currently connected wireless network, and if the network state of the wireless network is a preset network state: if the network speed of the currently connected wireless network is greater than the network speed threshold, if the network state of the wireless network is not the preset network state, the network state is as follows: and if the network speed of the currently connected wireless network is less than or equal to the network speed threshold value. The wire speed threshold may be any value greater than or equal to 0. In other words, the network status of the currently connected wireless network is obtained, that is, whether the currently connected wireless network can access the internet or not is obtained, or the internet speed is obtained. When the currently connected wireless network can be on line or the network speed is greater than the network speed threshold, the currently connected wireless network is allowed to create a hotspot, that is, the bridging function of the terminal device is set to be allowed to operate, for example, a button bridged in a visual interface may be set to be in an operable state, which is operable to allow turning on and turning off.
When the network speed threshold is a value greater than 0, it is to ensure that the current terminal device can normally surf the internet, for example, the network speed threshold may be set to a value that can ensure that the terminal device can normally surf the internet. When the speed of the currently connected network is low, even if the terminal device accesses the internet through the created hot spot, the efficiency of accessing the internet may be low. In practical application, the number of other terminal devices which can be connected through the created hot spot can be set according to the network speed of the currently connected wireless network. The other terminal devices are terminal devices other than the terminal device creating the hotspot. And when the number of the other terminal devices connected with the hot spot is larger than the number threshold, prohibiting the other terminal devices from being connected with the hot spot.
Step S103, in a state that the bridging function of the terminal device is allowed to operate, if it is detected that the user opens the bridging function, a hotspot is created through a wireless network currently connected with the terminal device.
In the embodiment of the application, if the bridging function of the terminal device is allowed to operate, a user can open the bridging function through a visual interface, and if it is detected that the user opens the bridging function, a hotspot can be created through a wireless network to which the terminal device is currently connected. Meanwhile, the user can also close the bridging function through the visual interface, and if the condition that the user closes the bridging function is detected, the currently created hot spot can be closed. And other terminal equipment can establish communication connection with the created hot spot so as to surf the internet through the wireless network.
According to the embodiment of the application, the hotspot can be created through the wireless network only when the network state of the currently connected wireless network is the preset network state, so that the situation that other terminal equipment is successfully connected with the hotspot after the hotspot is created through the wireless network which is not in accordance with the preset network state is avoided, however, the internet surfing efficiency of other terminal equipment through the bridged wireless network is low, even the internet can not be surfed, invalid wireless network bridging is caused, and the user experience is not good.
Fig. 2 is a flowchart illustrating a bridging method for a wireless network according to another embodiment of the present application, where the method includes the following steps:
step S201, when it is detected that the terminal device is connected to the wireless network, accessing a preset server through the currently connected wireless network, and acquiring an access result.
In this embodiment of the present application, the preset server may be a website preset by a user, for example: http:// www. If the website can be logged in, an access result with successful access is generated, and if the website cannot be logged in, an access result with failed access is generated, so that the problem that the actual currently connected wireless network can be on the internet due to the absence of the website is avoided, but the access result with failed access is generated, and therefore, a user can set the homepages of some websites logged in when the website can be on the internet as a preset server. Of course, the following can also be avoided by actually accessing the preset server: although the network speed in the detected network state is greater than the network speed threshold value, the network cannot be accessed due to setting or other reasons.
Step S202, if the access result is successful, setting the bridging function of the terminal device to be allowed to operate.
Step S203, detecting a network state of a wireless network currently connected to the terminal device at a preset time interval in a state that the bridge function of the terminal device is allowed to operate.
In this embodiment of the present application, in a state where the bridging function of the terminal device is allowed to operate, no matter whether the bridging function of the terminal device is turned on or not, and whether a hotspot is created through a currently connected wireless network or not, a preset time interval is required to detect a network state of the currently connected wireless network of the terminal device, so that: if the wireless network is available when the wireless network is just connected, the bridging function is set to be in an operation-permitted state, however, after a certain time, when the network state of the wireless network is not the preset network state, the bridging function is still in the operation-permitted state, and even if a hotspot is created by the user through the currently connected wireless network, the user of other terminal equipment which can surf the internet through the hotspot cannot obtain good internet experience.
Therefore, in a state where the bridging function of the terminal device is allowed to operate, the network state of the wireless network to which the terminal device is currently connected is still monitored.
Step S204, if the wireless network currently connected with the terminal equipment is detected to be switched to a non-preset network state, the bridging function is set to be forbidden.
In this embodiment, the non-preset network status is a network status other than the preset network status, for example, the above-mentioned access failure (status other than access success) may also be that the above-mentioned network speed is less than or equal to the network speed threshold (is greater than the network speed threshold). The step of disabling the bridging function may be setting a bridging button in the visual interface to be gray, which is a state in which a user cannot operate, that is, the user cannot open the bridging function.
Step S205, if the access result is access failure, setting the bridge function of the terminal device to be disabled.
In the embodiment of the application, when it is detected that the terminal device is connected to the wireless network, if the network state of the current connection is not the preset network state, the bridging function of the terminal device is set to be disabled.
Step S206, detecting a network state of a wireless network currently connected to the terminal device at a preset time interval when the bridging function of the terminal device is disabled.
Step S207, if it is detected that the wireless network currently connected to the terminal device is switched to a preset network state, setting the bridging function to allow operation.
In this embodiment of the application, in the state where the bridging function of the terminal device is disabled, it is also necessary to detect the network state of the wireless network currently connected to the terminal device at preset time intervals, so that when the network state of the wireless network currently connected to the terminal device is switched to the preset network state, the bridging function is set to allow operation in time, and a user may create a hotspot through a bridging button of the visual interface.
And step S208, when the disconnection between the terminal equipment and the wireless network is detected, the bridging function is set to be forbidden.
As another embodiment of the present application, it may be further configured that the hot spot is created only when the wireless local area network is used as an internet access channel, and the hot spot cannot be created when other networks (for example, a mobile data network) are used, because the mobile data network is generally a network that a user needs to pay for use. Thus, the bridging function may be arranged to be disabled upon detection of disconnection of the terminal device from the wireless network.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 3 is a schematic block diagram of a terminal device according to an embodiment of the present application, and only a part related to the embodiment of the present application is shown for convenience of description.
The terminal device 3 may be a software unit, a hardware unit, or a combination of software and hardware unit built in an existing terminal device such as a mobile phone and a notebook, may be integrated into the existing terminal device such as a mobile phone and a notebook as an independent pendant, and may exist as an independent terminal device.
The terminal device 3 includes:
the acquiring module 31 is configured to acquire a network state of a currently connected wireless network when it is detected that the terminal device is connected to the wireless network;
a first processing module 32, configured to set a bridging function of the terminal device to be allowed to operate if the network state of the wireless network is a preset network state;
the hotspot creating module 33 is configured to, in a state where the bridge function of the terminal device is allowed to operate, if it is detected that the user opens the bridge function, create a hotspot through a wireless network to which the terminal device is currently connected.
Optionally, the terminal device 3 further includes:
the first disabling module 34 is configured to, after detecting a network state of a currently connected wireless network, set the bridging function of the terminal device to be disabled if the network state of the wireless network is not a preset network state.
Optionally, the terminal device 3 further includes:
a first detecting module 35, configured to detect, at a preset time interval, a network state of a wireless network to which the terminal device is currently connected, when the bridge function of the terminal device is in a state of allowing operation;
a second disabling module 36, configured to set the bridging function to be disabled if it is detected that the wireless network to which the terminal device is currently connected is switched to a non-preset network state;
optionally, the terminal device 3 further includes:
a second detecting module 37, configured to detect, at a preset time interval, a network state of a wireless network to which the terminal device is currently connected, when the bridge function of the terminal device is disabled;
a second processing module 38, configured to set the bridging function to be allowed to operate if it is detected that the wireless network currently connected to the terminal device is switched to a preset network state.
Optionally, the terminal device 3 further includes:
a third disabling module 39, configured to set the bridging function to be disabled when it is detected that the terminal device is disconnected from the wireless network.
Optionally, the obtaining module 31 is further configured to:
accessing a preset server through a currently connected wireless network, and acquiring an access result;
correspondingly, the first processing module 32 is further configured to:
and if the access result is successful, setting the bridging function of the terminal equipment to be allowed to operate.
Optionally, the obtaining module 31 is further configured to:
acquiring the network speed of a currently connected wireless network;
correspondingly, the first processing module 32 is further configured to:
and if the network speed of the currently connected wireless network is greater than the network speed threshold, setting the bridging function of the terminal equipment to be allowed to operate.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is merely used as an example, and in practical applications, the foregoing function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the terminal device is divided into different functional units or modules to perform all or part of the above-described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 4 is a schematic block diagram of a terminal device according to another embodiment of the present application. As shown in fig. 4, the terminal device 4 of this embodiment includes: one or more processors 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processors 40. The processor 40 executes the computer program 42 to implement the steps in the above-mentioned embodiments of the bridging method for wireless networks, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the terminal device embodiments described above, such as the functions of the modules 31 to 33 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4. For example, the computer program 42 may be divided into an acquisition module, a first processing module, a hotspot creation module.
The acquisition module is used for acquiring the network state of the currently connected wireless network when the terminal equipment is detected to be connected with the wireless network;
the first processing module is configured to set a bridging function of the terminal device to be allowed to operate if the network state of the wireless network is a preset network state;
the hotspot creating module is configured to, in a state where the bridge function of the terminal device is an operation-allowed state, create a hotspot through a wireless network to which the terminal device is currently connected if it is detected that the user opens the bridge function.
Other modules or units can refer to the description of the embodiment shown in fig. 3, and are not described again here.
The terminal device includes, but is not limited to, a processor 40, and a memory 41. Those skilled in the art will appreciate that fig. 4 is only one example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, for example, the terminal device may also include an input device, an output device, a network access device, a bus, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed terminal device and method may be implemented in other ways. For example, the above-described terminal device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A method of bridging a wireless network, comprising:
when the terminal equipment is detected to be connected with a wireless network, acquiring the network state of the currently connected wireless network;
if the network state of the wireless network is a preset network state, setting the bridging function of the terminal equipment to be allowed to operate; wherein the preset network state comprises: the result of accessing the preset server through the currently connected wireless network is successful access, or the network speed of the currently connected wireless network is greater than the network speed threshold;
if the bridging function of the terminal equipment is detected to be started by a user in a state that the bridging function of the terminal equipment is allowed to operate, establishing a hot spot through a wireless network currently connected with the terminal equipment; detecting the network state of a wireless network currently connected with the terminal equipment at preset time intervals;
if the wireless network currently connected with the terminal equipment is detected to be switched into a non-preset network state, setting the bridging function to be forbidden; the non-preset network state is a network state other than the preset network state, and the non-preset network state comprises that the result of accessing a preset server through the currently connected wireless network is access failure, or the network speed of the currently connected wireless network is less than or equal to a network speed threshold value.
2. A bridging method for a wireless network as recited in claim 1, further comprising, after detecting the network status of the currently connected wireless network:
and if the network state of the wireless network is not the preset network state, setting the bridging function of the terminal equipment to be forbidden.
3. The bridging method for a wireless network according to claim 2, wherein in a state where the bridging function of the terminal device is disabled, further comprising:
detecting the network state of a wireless network currently connected with the terminal equipment at preset time intervals;
and if the wireless network currently connected with the terminal equipment is detected to be switched into a preset network state, setting the bridging function as an operation permission.
4. A method of bridging a wireless network as recited in claim 1, further comprising:
and when the disconnection of the terminal equipment and the wireless network is detected, the bridging function is set to be forbidden.
5. A bridging method for a wireless network as recited in any of claims 1 to 4, wherein the obtaining the network status of the currently connected wireless network comprises:
accessing a preset server through a currently connected wireless network, and acquiring an access result;
correspondingly, if the network state of the wireless network is a preset network state, setting the bridging function of the terminal device to allow operation includes:
and if the access result is successful, setting the bridging function of the terminal equipment to be allowed to operate.
6. A bridging method for a wireless network as recited in any of claims 1 to 4, wherein the obtaining the network status of the currently connected wireless network comprises:
acquiring the network speed of a currently connected wireless network;
correspondingly, if the network state of the wireless network is a preset network state, setting the bridging function of the terminal device to allow operation includes:
and if the network speed of the currently connected wireless network is greater than the network speed threshold, setting the bridging function of the terminal equipment to be allowed to operate.
7. A terminal device, comprising:
the acquisition module is used for acquiring the network state of the currently connected wireless network when the connection of the terminal equipment to the wireless network is detected;
the first processing module is used for setting the bridging function of the terminal equipment to be allowed to operate if the network state of the wireless network is a preset network state; wherein the preset network state comprises: the result of accessing the preset server through the currently connected wireless network is successful access, or the network speed of the currently connected wireless network is greater than the network speed threshold;
the hot spot creation module is used for creating a hot spot through a wireless network currently connected with the terminal equipment if detecting that a user opens the bridging function in a state that the bridging function of the terminal equipment is allowed to operate; detecting the network state of a wireless network currently connected with the terminal equipment at preset time intervals;
if the wireless network currently connected with the terminal equipment is detected to be switched into a non-preset network state, setting the bridging function to be forbidden; the non-preset network state is a network state other than the preset network state, and the non-preset network state comprises that the result of accessing a preset server through the currently connected wireless network is access failure, or the network speed of the currently connected wireless network is less than or equal to a network speed threshold value.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by one or more processors, implements the steps of the method according to any one of claims 1 to 6.
CN201810114228.1A 2018-02-05 2018-02-05 Bridging method of wireless network, terminal equipment and storage medium Active CN108391281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810114228.1A CN108391281B (en) 2018-02-05 2018-02-05 Bridging method of wireless network, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810114228.1A CN108391281B (en) 2018-02-05 2018-02-05 Bridging method of wireless network, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108391281A CN108391281A (en) 2018-08-10
CN108391281B true CN108391281B (en) 2022-01-07

Family

ID=63075107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810114228.1A Active CN108391281B (en) 2018-02-05 2018-02-05 Bridging method of wireless network, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108391281B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225543B (en) * 2019-05-30 2021-11-30 上海交通大学 Mobile terminal software quality situation perception system and method based on network request data
WO2021163891A1 (en) * 2020-02-18 2021-08-26 Oppo广东移动通信有限公司 Communication method, apparatus, device, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486819A (en) * 2014-12-31 2015-04-01 广州视源电子科技股份有限公司 Wireless network access method and system
CN105338550A (en) * 2015-09-22 2016-02-17 网易传媒科技(北京)有限公司 Method and device for managing connection of wireless network
CN106100865A (en) * 2016-05-24 2016-11-09 中国联合网络通信集团有限公司 Authorization method, server and the terminal device that focus is shared
CN106559789A (en) * 2016-11-15 2017-04-05 努比亚技术有限公司 Focus sharing means, method and system
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium
CN107370646A (en) * 2017-07-19 2017-11-21 深圳Tcl数字技术有限公司 Network share method, TV and computer-readable recording medium
CN107529204A (en) * 2017-08-21 2017-12-29 奇酷互联网络科技(深圳)有限公司 Data sharing method, device and storage medium
CN107580359A (en) * 2017-09-29 2018-01-12 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer-readable recording medium
CN107635232A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 A kind of network share method, terminal and computer-readable recording medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012112607A1 (en) * 2011-02-14 2012-08-23 Devicescape Software, Inc. Systems and methods for network curation
CN105828395A (en) * 2015-07-28 2016-08-03 维沃移动通信有限公司 Method and device of WiFi adaptive selection and connection
CN107453945A (en) * 2017-07-14 2017-12-08 上海斐讯数据通信技术有限公司 Because router netting twine disconnects the solution method and system for causing network not connect

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486819A (en) * 2014-12-31 2015-04-01 广州视源电子科技股份有限公司 Wireless network access method and system
CN105338550A (en) * 2015-09-22 2016-02-17 网易传媒科技(北京)有限公司 Method and device for managing connection of wireless network
CN106100865A (en) * 2016-05-24 2016-11-09 中国联合网络通信集团有限公司 Authorization method, server and the terminal device that focus is shared
CN106559789A (en) * 2016-11-15 2017-04-05 努比亚技术有限公司 Focus sharing means, method and system
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium
CN107370646A (en) * 2017-07-19 2017-11-21 深圳Tcl数字技术有限公司 Network share method, TV and computer-readable recording medium
CN107529204A (en) * 2017-08-21 2017-12-29 奇酷互联网络科技(深圳)有限公司 Data sharing method, device and storage medium
CN107580359A (en) * 2017-09-29 2018-01-12 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer-readable recording medium
CN107635232A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 A kind of network share method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN108391281A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
US8281366B1 (en) Systems and methods for using guardian proximity to control computing activities of children
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN109814524B (en) Vehicle diagnosis method, device and system
CN108391281B (en) Bridging method of wireless network, terminal equipment and storage medium
CN108337706B (en) Wireless network switching method, mobile terminal and storage medium
CN107395633A (en) A kind of network detecting method, network detection means and intelligent terminal
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN107819768B (en) Method for server to actively disconnect illegal long connection, terminal equipment and storage medium
US11816200B2 (en) Terminal and method for managing launch of an application of a terminal
CN106209970A (en) Determine the method and apparatus of the network state being connected between subscriber equipment with routing device
CN108650702B (en) Broadcast information processing method and user terminal
CN107708141B (en) Wireless network scanning method, mobile terminal and storage medium
CN107526955B (en) Screen-off unlocking method and device
CN106302519A (en) The method of a kind of internet security management and terminal
CN112069499A (en) Detection method, detection device, storage medium and electronic equipment
KR101206086B1 (en) Sytstem and method for protecting phishing by authenticaion of calling number
CN107969027B (en) Wireless network management method, wireless network management device and intelligent terminal
CN111596929A (en) Burning method, device, system, equipment and medium
CN107819761B (en) Data processing method and device and readable storage medium
CN106060825B (en) Client identification card copying reminding method and server
CN111475488B (en) Data processing method, device, terminal equipment and readable storage medium
CN108650716B (en) Terminal device control method, terminal device and storage medium
CN106376096B (en) Wireless network connection method and equipment thereof
US10608836B2 (en) Tailoring the availability of network resources to on-demand, user proximity, and schedule time
CN112948013B (en) Application probe configuration method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant