CN112702739A - Wireless network sharing method, device, readable storage medium and mobile terminal - Google Patents

Wireless network sharing method, device, readable storage medium and mobile terminal Download PDF

Info

Publication number
CN112702739A
CN112702739A CN202011549425.XA CN202011549425A CN112702739A CN 112702739 A CN112702739 A CN 112702739A CN 202011549425 A CN202011549425 A CN 202011549425A CN 112702739 A CN112702739 A CN 112702739A
Authority
CN
China
Prior art keywords
network
mobile terminal
mobile
data network
mobile data
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.)
Granted
Application number
CN202011549425.XA
Other languages
Chinese (zh)
Other versions
CN112702739B (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.)
Nanchang Black Shark Technology Co Ltd
Original Assignee
Nanchang Black Shark Technology Co 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 Nanchang Black Shark Technology Co Ltd filed Critical Nanchang Black Shark Technology Co Ltd
Priority to CN202011549425.XA priority Critical patent/CN112702739B/en
Publication of CN112702739A publication Critical patent/CN112702739A/en
Application granted granted Critical
Publication of CN112702739B publication Critical patent/CN112702739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • 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/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

A wireless network sharing method, a wireless network sharing device, a readable storage medium and a mobile terminal are applied to a first mobile terminal, the first mobile terminal is provided with two network access ports, one port adopts a first mobile data network for data transmission, and the other port adopts a wifi network for data transmission, the method comprises the following steps: when the network acceleration function is started and no wifi network is detected, detecting whether a second mobile data network shared by a second mobile terminal exists currently; when a second mobile data network shared by a second mobile terminal exists, locally stored identity authentication information is acquired; the wireless network sharing request and the identity authentication information are sent to a second mobile terminal, the second mobile terminal carries out identity authentication on the first mobile terminal, if the authentication is qualified, the first mobile terminal is authorized to share the network, and an authorization signal is returned at the same time; and when the authorization signal returned by the second mobile terminal is acquired, accessing the second mobile data network through the second port.

Description

Wireless network sharing method, device, readable storage medium and mobile terminal
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a wireless network sharing method and apparatus, a readable storage medium, and a mobile terminal.
Background
With the improvement of the living standard of modern people, mobile terminals such as smart phones and PAD (tablet personal computer) become necessities in life. Many functions of the mobile terminal cannot be completed without leaving the network, for example, when a user needs to download videos and download/upload photos, a large amount of traffic is consumed. The current mobile terminal generally has two network communication functions, one is to communicate with the internet through WiFi (Wireless Fidelity) to realize network access, and the other is to perform networking through a mobile data network such as 3G, 4G or 5G.
The current mobile terminal is generally provided with a network acceleration function, namely, the mobile terminal supports two channels to surf the internet at the same time, and when the network acceleration function is started, the mobile terminal can be connected with a mobile data network and a wifi network at the same time, so that the network speed of the mobile phone is accelerated and stabilized. However, in an actual scenario, when a user starts a network acceleration function, a wifi network is disconnected frequently, so that the network speed is greatly reduced, and normal use of the current application is low affected.
Disclosure of Invention
In view of the above, it is desirable to provide a wireless network sharing method, apparatus, readable storage medium and mobile terminal to meet the requirement of the user on the network speed.
A wireless network sharing method is applied to a first mobile terminal, wherein the first mobile terminal is provided with two network access ports, the first port adopts a first mobile data network for data transmission, the second port adopts a wifi network for data transmission, and the wireless network sharing method comprises the following steps:
when the network acceleration function is started and no wifi network is detected, detecting whether a second mobile data network shared by a second mobile terminal exists currently;
when a second mobile data network shared by a second mobile terminal exists, inquiring locally stored identity authentication information corresponding to the second mobile data network, and acquiring the identity authentication information;
sending a wireless network sharing request and the identity authentication information to the second mobile terminal so that the second mobile terminal can carry out identity authentication on the first mobile terminal based on the identity authentication information, if the authentication is qualified, authorizing the first mobile terminal to share the network, and simultaneously returning an authorization signal;
and when an authorization signal returned by the second mobile terminal is acquired, accessing the second mobile data network through the second port, and performing data transmission through the first port and the second port.
Further, the above wireless network sharing method, wherein the step of detecting whether there exists a second mobile data network shared by the second mobile terminal further includes:
detecting data transmission delay of the first mobile data network;
and when the data transmission delay is larger than a threshold value, executing the step of detecting whether a second mobile data network shared by a second mobile terminal exists currently.
Further, the above wireless network sharing method, wherein the step of accessing the second mobile data network through the second port includes:
and enabling the second port to be accessed to the second mobile data network based on a mode of sharing a wireless network hotspot, or enabling the second port to be accessed to the second mobile data network based on a Bluetooth sharing network mode.
Further, in the above wireless network sharing method, when it is detected that a plurality of second mobile terminals all share a second mobile data network and identity verification information corresponding to a plurality of target second mobile data networks is found in all the second mobile data networks, the step of acquiring the stored identity verification information includes:
acquiring traffic use information corresponding to each target second mobile data network, wherein the traffic use information comprises residual traffic in a traffic package and the number of terminals connected with the mobile data network;
determining the access priority of each target second mobile data network according to the residual flow and the number of terminals connected with the target second mobile data network, wherein the more the residual flow is, the fewer the number of the terminals connected with the residual flow is, the higher the corresponding priority is;
acquiring identity authentication information corresponding to the target second mobile data network with the highest priority;
the step of accessing the second mobile data network through the second port comprises:
and accessing the target second mobile data network through the second port.
Further, in the above wireless network sharing method, the step of detecting the data transmission delay of the first mobile data network includes:
respectively sending test data packets to the first mobile data network by adopting an icmp protocol, and acquiring a return time difference of the first mobile data network based on the test data packets;
and determining the data transmission delay of the first mobile data network according to the return time difference.
Further, the above wireless network sharing method, wherein the step of sending the wireless network sharing request and the authentication information to the second mobile terminal further includes:
and when the identity authentication information corresponding to the second mobile data network is not inquired, providing an identity authentication information input window, and acquiring the identity authentication information input by the user in the identity authentication information input window.
Further, in the above wireless network sharing method, the step of transmitting data through the first port and the second port includes:
detecting data transmission delay of the first mobile data network and data transmission delay of the second mobile data network;
comparing data transmission delays of the first mobile data network and the second mobile data network;
and when the data transmission delay of the first mobile network is greater than the data transmission delay of the second mobile data network, controlling a plurality of preset target applications to perform data transmission through the second port, and controlling other applications to perform data transmission through the first port.
The technical scheme of the invention also discloses a wireless network sharing device, which is applied to a first mobile terminal, wherein the first mobile terminal is provided with two network access ports, the first port adopts a first mobile data network for data transmission, and the second port adopts a wifi network for data transmission, and the wireless network sharing device comprises:
the detection module is used for detecting whether a second mobile data network shared by a second mobile terminal exists currently or not when the network acceleration function is started and no wifi network is detected;
the system comprises an inquiry module, a first mobile terminal and a second mobile terminal, wherein the inquiry module is used for inquiring locally stored identity authentication information corresponding to a second mobile data network shared by the second mobile terminal;
the acquisition module is used for acquiring the identity authentication information;
the sending module is used for sending a wireless network sharing request and the identity authentication information to the second mobile terminal so that the second mobile terminal can carry out identity authentication on the first mobile terminal based on the identity authentication information, if the authentication is qualified, the first mobile terminal is authorized to share the network, and an authorization signal is returned at the same time;
and the network access module is used for accessing the second mobile data network through the second port and carrying out data transmission through the first port and the second port when the authorization signal returned by the second mobile terminal is acquired.
Further, in the above wireless network sharing apparatus, the detection module is further configured to detect a data transmission delay of the first mobile data network;
and the network access module is used for detecting whether a second mobile data network shared by a second mobile terminal exists currently or not when the data transmission delay is greater than a threshold value.
Further, in the above wireless network sharing apparatus, the step of accessing the second mobile data network through the second port includes:
and enabling the second port to be accessed to the second mobile data network based on a mode of sharing a wireless network hotspot, or enabling the second port to be accessed to the second mobile data network based on a Bluetooth sharing network mode.
Further, in the above wireless network sharing apparatus, when it is detected that a plurality of second mobile terminals all share a second mobile data network and identity verification information corresponding to a plurality of target second mobile data networks is found in all the second mobile data networks, the step of acquiring the stored identity verification information includes:
acquiring traffic use information corresponding to each target second mobile data network, wherein the traffic use information comprises residual traffic in a traffic package and the number of terminals connected with the mobile data network;
determining the access priority of each target second mobile data network according to the residual flow and the number of terminals connected with the target second mobile data network, wherein the more the residual flow is, the fewer the number of the terminals connected with the residual flow is, the higher the corresponding priority is;
acquiring identity authentication information corresponding to the target second mobile data network with the highest priority;
the step of accessing the second mobile data network through the second port comprises:
and accessing the target second mobile data network through the second port.
Further, in the above wireless network sharing apparatus, the obtaining module is further configured to:
and when the identity authentication information corresponding to the second mobile data network is not inquired, providing an identity authentication information input window, and acquiring the identity authentication information input by the user in the identity authentication information input window.
Further, in the above wireless network sharing apparatus, the step of transmitting data through the first port and the second port includes:
detecting data transmission delay of the first mobile data network and data transmission delay of the second mobile data network;
comparing data transmission delays of the first mobile data network and the second mobile data network;
and when the data transmission delay of the first mobile network is greater than the data transmission delay of the second mobile data network, controlling a plurality of preset target applications to perform data transmission through the second port, and controlling other applications to perform data transmission through the first port.
The technical scheme of the invention also discloses a readable storage medium, wherein a program is stored on the readable storage medium, and the program realizes any one of the methods when being executed by a processor.
The technical scheme of the invention also discloses a mobile terminal which comprises a memory, a processor and a program which is stored on the memory and can be run on the processor, wherein the processor realizes the method of any one item when executing the program.
In the invention, when the network acceleration function is in an open state, if no WiFi network exists, whether a second mobile data network shared by a second mobile terminal exists is detected, if the second mobile data network exists and the first mobile terminal stores the authentication information of the second mobile data network, the authentication information is sent to the second mobile terminal for authentication, the second mobile terminal authorizes the first mobile terminal to share the second mobile data network after the authentication is passed, and the first mobile terminal accesses the second mobile data network through a second port. The first mobile data network and the second mobile data network are used for surfing the Internet together under the WiFi-free condition, so that the network acceleration of the first mobile terminal is realized, the network speed of the first mobile terminal is guaranteed, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a wireless network sharing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a wireless network sharing method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a wireless network sharing device according to a third embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
These and other aspects of embodiments of the invention will be apparent with reference to the following description and attached drawings. In the description and drawings, particular embodiments of the invention have been disclosed in detail as being indicative of some of the ways in which the principles of the embodiments of the invention may be practiced, but it is understood that the scope of the embodiments of the invention is not limited correspondingly. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Please refer to fig. 1, which illustrates a wireless network sharing method according to a first embodiment of the present invention. The first mobile terminal is provided with two network access ports, namely a first port and a second port, wherein the first port adopts a first mobile data network for data transmission, and the second port adopts a wifi network for data transmission. The first terminal includes, but is not limited to, a mobile terminal, a tablet computer, a smart watch, a smart bracelet, a notebook computer, an MP3, an MP4, and the like. The wireless network sharing method includes steps S11-S15.
And step S11, when the network acceleration function is started and no wifi network is detected, detecting whether a second mobile data network shared by the second mobile terminal exists currently.
Step S12, when there is a second mobile data network shared by the second mobile terminal, querying locally stored authentication information corresponding to the second mobile data network.
Step S13, acquiring the authentication information.
Step S14, sending a wireless network sharing request and the authentication information to the second mobile terminal, so that the second mobile terminal performs authentication on the first mobile terminal based on the authentication information, and if the authentication is qualified, authorizing the first mobile terminal to share the network, and returning an authorization signal.
And step S15, when the authorization signal returned by the second mobile terminal is acquired, accessing the second mobile data network through the second port, and performing data transmission through the first port and the second port.
A general mobile terminal, for example, a mobile phone, has two network transmission channels, one of which is a mobile data transmission channel, and the other is a WiFi channel. And the mobile terminal also has a wireless hotspot sharing function, namely the mobile terminal can provide wireless network hotspots by accessing other terminal equipment and share the internet access resources of the terminal equipment. Based on the function, the second port is accessed to the mobile data network (second mobile data network) shared by the second mobile terminal under the condition that no WiFi is available and the network acceleration function is started, so as to ensure the network speed of the first mobile terminal. The second mobile terminal is a mobile terminal except the first mobile terminal. In specific implementation, the first mobile terminal may access the second mobile data network in two ways:
in a first mode, a second port is accessed to the second mobile data network based on a mode of sharing a wireless network hotspot;
and the second port is accessed to the second mobile data network based on the Bluetooth sharing network mode.
In the first method, the second mobile terminal first needs to open the wireless network hotspot to share the second mobile data network. When the first mobile terminal detects the wireless network hotspot, namely detects that a sharable mobile data network exists currently, identity authentication information corresponding to the second mobile data network is inquired. The authentication information is, for example, a connection password of the second mobile data network (e.g., a password set by the user when the second mobile terminal establishes the WiFi hotspot) or authentication information agreed by the second mobile terminal.
Generally, when a first mobile terminal connects to a second mobile data network for the first time, it needs to input authentication information corresponding to the second mobile data network. And after acquiring the identity authentication information, the first mobile terminal correspondingly stores the network identifier of the second mobile data network and the identity authentication information so as to directly call the identity authentication information in the next use. The network identification of the second mobile data network is, for example, the name of a hotspot set for the user.
In the second mode, the user first needs to open the bluetooth of the first mobile terminal and the bluetooth of the second mobile terminal, and perform pairing connection. If the Bluetooth of the first mobile terminal and the Bluetooth of the second mobile terminal are successfully paired before, when the first mobile terminal detects the Bluetooth equipment of the second mobile terminal, the first mobile terminal is directly connected with the Bluetooth. When the first mobile terminal is connected to the second mobile terminal through the Bluetooth, the authentication information corresponding to the second mobile data network is inquired, and if the authentication information is inquired, the wireless network sharing request and the authentication information are sent to the second mobile terminal. And the second mobile terminal carries out identity authentication on the first mobile terminal according to the identity authentication information, if the authentication is successful, the first mobile terminal is authorized to share the second mobile data network, and an authorization signal is sent to the first mobile terminal. And when the first mobile terminal acquires the authorization signal, the first mobile terminal accesses the second mobile data network through the second port and performs wireless network sharing through the Bluetooth module.
In this embodiment, when the network acceleration function is in an on state, if there is no WiFi network, it is detected whether there is a second mobile data network shared by the second mobile terminal, if there is the second mobile data network and the first mobile terminal stores the authentication information of the second mobile data network, the authentication information is sent to the second mobile terminal for authentication, after the authentication is passed, the second mobile terminal authorizes the first mobile terminal to share the second mobile data network, and the first mobile terminal accesses the second mobile data network through the second port. The first mobile data network and the second mobile data network are used for surfing the Internet together under the WiFi-free condition, so that the network acceleration of the first mobile terminal is realized, the network speed of the first mobile terminal is guaranteed, and the user experience is improved.
In another embodiment of the present invention, the step of transmitting data through the first port and the second port includes:
detecting data transmission delay of the first mobile data network and data transmission delay of the second mobile data network;
comparing data transmission delays of the first mobile data network and the second mobile data network;
and when the data transmission delay of the first mobile network is greater than the data transmission delay of the second mobile data network, controlling a plurality of preset target applications to perform data transmission through the second port, and controlling other applications to perform data transmission through the first port.
That is, the first mobile terminal may allocate a data transmission port of each application according to the data transmission delay of the first mobile data network and the second mobile data network, and surf the internet for one or more preset applications through the mobile data network with a small data transmission delay. And other applications are connected to the Internet through the mobile data network with large data transmission delay. For example, a user may mark a game application or a video in a first mobile terminal as a target application, and when the data transmission delay of a first mobile data network is smaller than the data transmission delay of a second mobile data network, the target application is used for surfing the internet by using the first mobile data network, and other applications are used for surfing the internet by using the first mobile data network. In this embodiment, a preset target application is networked through a mobile data network with a small data transmission delay to ensure the network speed of the target application, and other applications are networked through another mobile data network.
Referring to fig. 2, a wireless network sharing method according to a second embodiment of the present invention includes steps S21-S27.
And step S21, when the network acceleration function is started and no wifi network is detected, detecting the data transmission delay of the first mobile data network.
Step S22, when the data transmission delay is greater than the threshold, detecting whether a second mobile data network shared by the second mobile terminal exists currently.
In this embodiment, when the first mobile terminal starts the network acceleration function and the WiFi network of the first mobile terminal is disconnected, the data transmission delay of the mobile data network (i.e., the first mobile data network) of the first mobile terminal is detected. And if the data transmission delay is smaller than or equal to the threshold value, the network transmission rate of the first mobile terminal meets the requirement of the current running application, and the mobile data networks of other mobile terminals do not need to be shared. And if the data transmission delay of the first mobile data network is greater than the threshold, indicating that the network transmission rate of the first mobile terminal does not meet the requirement of the current running application, and sharing other mobile data networks. At this time, a step of detecting whether a second mobile data network shared by the second mobile terminal currently exists is performed.
Specifically, the step of detecting the data transmission delay of the first mobile data network includes:
respectively sending test data packets to the first mobile data network by adopting an icmp protocol, and acquiring a return time difference of the first mobile data network based on the test data packets;
and determining the data transmission delay of the first mobile data network according to the return time difference.
In this embodiment, the data transmission delay of the network is detected by using the ping data packet, the icmp protocol is used to continuously send test data packets to the network, and the smaller the time difference is, the smaller the data transmission delay is.
Step S23, when a second mobile data network shared by a second mobile terminal exists, querying whether authentication information corresponding to the second mobile data network is stored locally.
Step S24, if the authentication information corresponding to the second data network is stored, acquiring the stored authentication information.
Step S25, if the authentication information corresponding to the second data network is not stored, providing an authentication information input window, and acquiring the authentication information input by the user in the authentication information input window.
The first mobile terminal searches whether a mobile data network shared by the second mobile terminal exists or not, and if the mobile data network shared by the second mobile terminal exists, whether identity authentication information corresponding to the second mobile data network is stored locally or not is inquired. And if the first mobile terminal stores the authentication information corresponding to the second mobile data network, acquiring the locally stored authentication information.
When the first mobile terminal inquires that the authentication information corresponding to the second mobile data network is not stored locally, an authentication information input window is displayed on the current display interface, and a user can input the authentication information of the second mobile data network in the authentication information input window. The first mobile terminal acquires the authentication information input in the authentication information input window.
Step S26, sending a wireless network sharing request and the authentication information to the second mobile terminal, so that the second mobile terminal verifies the authentication information of the first mobile terminal based on the authentication information, and if the verification is qualified, authorizing the first mobile terminal to share the network, and simultaneously returning an authorization signal.
And after the first mobile terminal acquires the identity authentication information, sending the identity authentication information and wireless network sharing request information to the second mobile terminal. And when the second mobile terminal acquires the request information and the identity authentication information, the second mobile terminal authenticates the identity authentication information, authorizes the first mobile terminal to share the network if the authentication is qualified, and simultaneously returns an authorization signal.
By the method, when a first mobile terminal user needs to operate important applications, such as game applications, a network acceleration function can be started to guarantee the application running speed, and when WiFi is disconnected, the first mobile terminal can be directly connected with a second mobile data network shared by a second mobile terminal according to the stored identity authentication information without quitting the application to connect the second mobile data network, so that the applications can run normally, and the user experience is improved.
Further, when the second mobile terminal verifies that the identity verification information is qualified, prompt information can be displayed on a current display interface to prompt whether a user of the second mobile terminal authorizes the first mobile terminal to share the mobile data network, when a confirmation signal input by the user is obtained, the first mobile terminal is authorized to share the network, and an authorization signal is returned to the first mobile terminal. In this way, the user authorization of the second mobile terminal is required, and the user can connect to the second mobile data network to ensure the normal use of the second mobile terminal.
It will be appreciated that in practice the authentication information of the mobile data network in the second mobile terminal is typically modified, at which point the authentication information stored in the first mobile terminal is invalidated. When the first mobile terminal sends the locally stored identity authentication information to the second mobile terminal, the second terminal fails to verify the identity authentication information, and the second mobile terminal sends prompt information to the first mobile terminal under the condition. The first prompt message user prompts the user that the authentication fails and re-inputs the authentication information. And after the first mobile terminal acquires the prompt message, displaying the verification message input window for the user to input the identity verification message again.
And step S27, when the authorization signal returned by the second mobile terminal is acquired, accessing the second mobile data network through the second port, and performing data transmission through the first port and the second port.
And when the first mobile terminal acquires the authorization signal sent by the second mobile terminal, accessing the second mobile data network through the second port. The first mobile terminal can access the internet through the first mobile data network and the second mobile data network together, and the running speed of the terminal is guaranteed.
It can be understood that, in this embodiment, when the WiFi network is detected again, the second mobile data network is cut out from the second port, and the WiFi network is re-accessed.
Further, in another embodiment of the present invention, when the first mobile terminal detects that a plurality of second mobile terminals all share the second mobile data network, the first mobile terminal queries whether identity authentication information corresponding to each of the second mobile terminals is locally stored. When the identity authentication information corresponding to a plurality of target second mobile data networks is found in all the second mobile data networks, the step of obtaining the stored identity authentication information comprises the following steps:
acquiring traffic use information corresponding to each target second mobile data network, wherein the traffic use information comprises residual traffic in a traffic package and the number of terminals connected with the mobile data network;
determining the access priority of each target second mobile data network according to the residual flow and the number of terminals connected with the target second mobile data network, wherein the more the residual flow is, the fewer the number of the terminals connected with the residual flow is, the higher the corresponding priority is;
acquiring identity authentication information corresponding to the target second mobile data network with the highest priority;
the step of accessing the second mobile data network through the second port comprises:
and accessing the target second mobile data network through the second port.
For example, when the first mobile terminal detects five sharable second mobile data networks and inquires in the local memory that three target second mobile data networks among the five second mobile data networks store corresponding authentication information, the first mobile terminal obtains the remaining traffic of the mobile package of each second mobile data network and the number of terminals connected to each second mobile data network. And, determining the priority according to the remaining traffic and the number of connected terminals of each second mobile data network, wherein the priority is higher when the remaining traffic is larger and the number of connected terminals is smaller. Specifically, the target second mobile data network with the minimum number of connected terminals is determined, if only one target second mobile data network with the minimum number of connected terminals is available, the target second mobile data network is determined as the network to which the second port is accessed, and if there are a plurality of target second mobile data networks with the minimum number of connected terminals, the network to which the second port is accessed is determined as the one with the maximum remaining traffic of the mobile package. By the method, the second mobile data network accessed by the second port has the maximum network speed and enough package service flow as much as possible, and the network speed and the stability of the first mobile terminal are guaranteed.
Referring to fig. 3, a wireless network sharing device in a third embodiment of the present invention is applied to a first mobile terminal, where the first mobile terminal has two network access ports, a first port uses a first mobile data network for data transmission, and a second port uses a wifi network for data transmission, and the wireless network sharing device includes:
the detection module 10 is configured to detect whether a second mobile data network shared by a second mobile terminal exists currently when the network acceleration function is started and no wifi network is detected;
the query module 20 is configured to query, when a second mobile data network shared by a second mobile terminal exists, locally stored authentication information corresponding to the second mobile data network;
an obtaining module 30, configured to obtain the authentication information;
a sending module 40, configured to send a wireless network sharing request and the authentication information to the second mobile terminal, so that the second mobile terminal performs authentication on the first mobile terminal based on the authentication information, and if the authentication is qualified, authorizes the first mobile terminal to share a network, and meanwhile returns an authorization signal;
and the network access module 50 is configured to access the second mobile data network through the second port and perform data transmission through the first port and the second port when the authorization signal returned by the second mobile terminal is acquired.
Further, in the above wireless network sharing apparatus, the detecting module 10 is further configured to detect a data transmission delay of the first mobile data network;
the network access module 50 is configured to detect whether a second mobile data network shared by a second mobile terminal currently exists when the data transmission delay is greater than a threshold.
Further, in the above wireless network sharing apparatus, the step of accessing the second mobile data network through the second port includes:
and enabling the second port to be accessed to the second mobile data network based on a mode of sharing a wireless network hotspot, or enabling the second port to be accessed to the second mobile data network based on a Bluetooth sharing network mode.
Further, in the above wireless network sharing apparatus, when it is detected that a plurality of second mobile terminals all share a second mobile data network and identity verification information corresponding to a plurality of target second mobile data networks is found in all the second mobile data networks, the step of acquiring the stored identity verification information includes:
acquiring traffic use information corresponding to each target second mobile data network, wherein the traffic use information comprises residual traffic in a traffic package and the number of terminals connected with the mobile data network;
determining the access priority of each target second mobile data network according to the residual flow and the number of terminals connected with the target second mobile data network, wherein the more the residual flow is, the fewer the number of the terminals connected with the residual flow is, the higher the corresponding priority is;
acquiring identity authentication information corresponding to the target second mobile data network with the highest priority;
the step of accessing the second mobile data network through the second port comprises:
and accessing the target second mobile data network through the second port.
Further, in the above wireless network sharing apparatus, the obtaining module 30 is further configured to:
and when the identity authentication information corresponding to the second mobile data network is not inquired, providing an identity authentication information input window, and acquiring the identity authentication information input by the user in the identity authentication information input window.
Further, in the above wireless network sharing apparatus, the step of transmitting data through the first port and the second port includes:
detecting data transmission delay of the first mobile data network and data transmission delay of the second mobile data network;
comparing data transmission delays of the first mobile data network and the second mobile data network;
and when the data transmission delay of the first mobile network is greater than the data transmission delay of the second mobile data network, controlling a plurality of preset target applications to perform data transmission through the second port, and controlling other applications to perform data transmission through the first port.
The wireless network sharing apparatus provided in the embodiment of the present invention has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the parts of the apparatus embodiments that are not mentioned.
The invention also proposes a readable storage medium on which a computer program is stored which, when executed by a processor, implements the method of indicating a sound bearing as described above.
The embodiment of the invention also provides a mobile terminal, which comprises a memory, a processor and a program which is stored on the memory and can be run on the processor, wherein the processor executes the program to realize the method.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A wireless network sharing method is characterized in that the method is applied to a first mobile terminal, the first mobile terminal is provided with two network access ports, wherein the first port adopts a first mobile data network for data transmission, and the second port adopts a wifi network for data transmission, and the wireless network sharing method comprises the following steps:
when the network acceleration function is started and no wifi network is detected, detecting whether a second mobile data network shared by a second mobile terminal exists currently;
when a second mobile data network shared by a second mobile terminal exists, inquiring locally stored identity authentication information corresponding to the second mobile data network, and acquiring the identity authentication information;
sending a wireless network sharing request and the identity authentication information to the second mobile terminal so that the second mobile terminal can carry out identity authentication on the first mobile terminal based on the identity authentication information, if the authentication is qualified, authorizing the first mobile terminal to share the network, and simultaneously returning an authorization signal;
and when an authorization signal returned by the second mobile terminal is acquired, accessing the second mobile data network through the second port, and performing data transmission through the first port and the second port.
2. The wireless network sharing method of claim 1, wherein the step of detecting whether there is currently a second mobile data network shared by the second mobile terminal further comprises, before the step of:
detecting data transmission delay of the first mobile data network;
and when the data transmission delay is larger than a threshold value, executing the step of detecting whether a second mobile data network shared by a second mobile terminal exists currently.
3. The wireless tethering method of claim 1 wherein the step of accessing the second mobile data network through the second port comprises:
and enabling the second port to be accessed to the second mobile data network based on a mode of sharing a wireless network hotspot, or enabling the second port to be accessed to the second mobile data network based on a Bluetooth sharing network mode.
4. The wireless network sharing method according to claim 1, wherein when it is detected that a plurality of second mobile terminals all share a second mobile data network and authentication information corresponding to a plurality of target second mobile data networks is queried in all of the second mobile data networks, the step of obtaining the stored authentication information comprises:
acquiring traffic use information corresponding to each target second mobile data network, wherein the traffic use information comprises residual traffic in a traffic package and the number of terminals connected with the mobile data network;
determining the access priority of each target second mobile data network according to the residual flow and the number of terminals connected with the target second mobile data network, wherein the more the residual flow is, the fewer the number of the terminals connected with the residual flow is, the higher the corresponding priority is;
acquiring identity authentication information corresponding to the target second mobile data network with the highest priority;
the step of accessing the second mobile data network through the second port comprises:
and accessing the target second mobile data network through the second port.
5. The wireless tethering method of claim 2 wherein the step of detecting a data transmission delay of the first mobile data network comprises:
respectively sending test data packets to the first mobile data network by adopting an icmp protocol, and acquiring a return time difference of the first mobile data network based on the test data packets;
and determining the data transmission delay of the first mobile data network according to the return time difference.
6. The wireless tethering method of claim 1 wherein the step of sending a tethering request and the authentication information to the second mobile terminal is preceded by the step of:
and when the identity authentication information corresponding to the second mobile data network is not inquired, providing an identity authentication information input window, and acquiring the identity authentication information input by the user in the identity authentication information input window.
7. The wireless tethering method of claim 1 wherein the step of transmitting data through the first port and the second port comprises:
detecting data transmission delay of the first mobile data network and data transmission delay of the second mobile data network;
comparing data transmission delays of the first mobile data network and the second mobile data network;
and when the data transmission delay of the first mobile network is greater than the data transmission delay of the second mobile data network, controlling a plurality of preset target applications to perform data transmission through the second port, and controlling other applications to perform data transmission through the first port.
8. The utility model provides a wireless network sharing device, its characterized in that is applied to first mobile terminal, first mobile terminal has two network access ports, and wherein, first port adopts first mobile data network to carry out data transmission, and the second port adopts the wifi network to carry out data transmission, wireless network sharing device includes:
the detection module is used for detecting whether a second mobile data network shared by a second mobile terminal exists currently or not when the network acceleration function is started and no wifi network is detected;
the system comprises an inquiry module, a first mobile terminal and a second mobile terminal, wherein the inquiry module is used for inquiring locally stored identity authentication information corresponding to a second mobile data network shared by the second mobile terminal;
the acquisition module is used for acquiring the identity authentication information;
the sending module is used for sending a wireless network sharing request and the identity authentication information to the second mobile terminal so that the second mobile terminal can carry out identity authentication on the first mobile terminal based on the identity authentication information, if the authentication is qualified, the first mobile terminal is authorized to share the network, and an authorization signal is returned at the same time;
and the network access module is used for accessing the second mobile data network through the second port and carrying out data transmission through the first port and the second port when the authorization signal returned by the second mobile terminal is acquired.
9. A readable storage medium on which a program is stored, which program, when executed by a processor, carries out the method according to any one of claims 1 to 7.
10. A mobile terminal comprising a memory, a processor and a program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-7 when executing the program.
CN202011549425.XA 2020-12-23 2020-12-23 Wireless network sharing method and device, readable storage medium and mobile terminal Active CN112702739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011549425.XA CN112702739B (en) 2020-12-23 2020-12-23 Wireless network sharing method and device, readable storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011549425.XA CN112702739B (en) 2020-12-23 2020-12-23 Wireless network sharing method and device, readable storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112702739A true CN112702739A (en) 2021-04-23
CN112702739B CN112702739B (en) 2023-06-09

Family

ID=75509791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011549425.XA Active CN112702739B (en) 2020-12-23 2020-12-23 Wireless network sharing method and device, readable storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112702739B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115296951A (en) * 2022-07-05 2022-11-04 青岛海信移动通信技术股份有限公司 Data packet sending method, device, equipment and medium
CN116155729A (en) * 2021-11-22 2023-05-23 荣耀终端有限公司 Network acceleration method based on user traffic portrayal and related electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106358237A (en) * 2016-11-10 2017-01-25 捷开通讯(深圳)有限公司 Mobile terminal and traffic sharing control method thereof
CN106658571A (en) * 2017-01-03 2017-05-10 努比亚技术有限公司 Terminal and network acceleration control method thereof
US20170141932A1 (en) * 2014-07-03 2017-05-18 Zte Corporation Internet Access Traffic Sharing Method, Device and Terminal
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium
CN107295574A (en) * 2016-04-01 2017-10-24 努比亚技术有限公司 Terminal and its network acceleration control method
CN107371204A (en) * 2017-09-04 2017-11-21 广东工业大学 A kind of flow based on mobile terminal shares switching method, apparatus and system
CN110233937A (en) * 2019-07-30 2019-09-13 腾讯科技(深圳)有限公司 A kind of data transmission method, device, equipment and storage medium
CN111371896A (en) * 2020-03-13 2020-07-03 Oppo广东移动通信有限公司 Network acceleration method, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170141932A1 (en) * 2014-07-03 2017-05-18 Zte Corporation Internet Access Traffic Sharing Method, Device and Terminal
CN107295574A (en) * 2016-04-01 2017-10-24 努比亚技术有限公司 Terminal and its network acceleration control method
CN107295571A (en) * 2016-04-01 2017-10-24 努比亚技术有限公司 User equipment and its network accelerating method
CN106358237A (en) * 2016-11-10 2017-01-25 捷开通讯(深圳)有限公司 Mobile terminal and traffic sharing control method thereof
CN106658571A (en) * 2017-01-03 2017-05-10 努比亚技术有限公司 Terminal and network acceleration control method thereof
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium
CN107371204A (en) * 2017-09-04 2017-11-21 广东工业大学 A kind of flow based on mobile terminal shares switching method, apparatus and system
CN110233937A (en) * 2019-07-30 2019-09-13 腾讯科技(深圳)有限公司 A kind of data transmission method, device, equipment and storage medium
CN111371896A (en) * 2020-03-13 2020-07-03 Oppo广东移动通信有限公司 Network acceleration method, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
喻丽春等: "基于Wi-Fi Direct和Socks5的网络共享", 《北京信息科技大学学报(自然科学版)》 *
崔嵘: "自助旅游服务系统功能设计研究", 《科技视界》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116155729A (en) * 2021-11-22 2023-05-23 荣耀终端有限公司 Network acceleration method based on user traffic portrayal and related electronic equipment
CN115296951A (en) * 2022-07-05 2022-11-04 青岛海信移动通信技术股份有限公司 Data packet sending method, device, equipment and medium

Also Published As

Publication number Publication date
CN112702739B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN110267327B (en) Service transmission method and device
CN105759937B (en) Method for reducing power consumption of terminal and terminal
KR102094574B1 (en) Efficient automatic sharing of network access among devices
CN112136304A (en) Electronic device for performing network connection based on data transmission of application and method thereof
US9538445B2 (en) Communication method and apparatus for electronic device in mobile communication system
EP3695588B1 (en) Context-based device address generation
US10716043B2 (en) Access point handover method and device
CN112702739B (en) Wireless network sharing method and device, readable storage medium and mobile terminal
US9763126B2 (en) Electronic device and method for processing packet in internet protocol-based network
CN111884836B (en) Service transmission method and device
KR102050379B1 (en) Method and appratus for moving call
US9408111B2 (en) Time-sliced WiFi associations for make-before-break handover
WO2018049970A1 (en) Hotspot network switching method and terminal
WO2018040621A1 (en) Hotspot sharing method, terminal, system and computer storage medium
US8249550B2 (en) Method and apparatus for achieving good usability for networked applications in multi mode mobile terminals
CN106792434B (en) Hotspot establishing method and terminal equipment
CN111615143B (en) Information reporting method, information receiving method, terminal and network control entity
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
CN108391288B (en) Method for optimizing communication service quality and mobile terminal
CN112566262B (en) Data processing method and device, communication equipment and storage medium
CN114423041A (en) Communication method, intelligent terminal and storage medium
KR20140030553A (en) Apparatus and method for displaying indicator according to interwork network
CN111818655B (en) Transmission method, terminal and network equipment
KR102112627B1 (en) Apparatus and Method for Displaying Indicator According to Interwork Network
KR100787575B1 (en) Method for automatic update of terminal profile, mobile communication terminal and subscriber identity module card apparatus therefor

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
GR01 Patent grant
GR01 Patent grant