CN111225374A - Network sharing setting method, device, storage medium and terminal - Google Patents
Network sharing setting method, device, storage medium and terminal Download PDFInfo
- Publication number
- CN111225374A CN111225374A CN202010047144.8A CN202010047144A CN111225374A CN 111225374 A CN111225374 A CN 111225374A CN 202010047144 A CN202010047144 A CN 202010047144A CN 111225374 A CN111225374 A CN 111225374A
- Authority
- CN
- China
- Prior art keywords
- network
- sharing
- sample
- time length
- duration
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/60—Context-dependent security
- H04W12/69—Identity-dependent
- H04W12/73—Access point logical identity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/02—Access restriction performed under specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses a network sharing setting method, a network sharing setting device, a storage medium and a terminal. The network sharing setting method comprises the following steps: starting network sharing; acquiring the time length to be shared of the current network sharing; matching the time length to be shared with the sample sharing time length; if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration; after the sample share duration, network sharing is turned off. According to the embodiment of the application, the plurality of access point network identifications are set, each network identification corresponds to different network sharing time lengths, the problem that the flow of the mobile terminal is consumed up due to multiple times of unconscious access of other equipment under the condition that the mobile terminal does not close the network can be avoided, and the network flow of the terminal can be effectively saved.
Description
Technical Field
The application relates to the field of mobile terminal application, in particular to a network sharing setting method, a network sharing setting device, a storage medium and a terminal.
Background
At present, mobile terminals are all configured with a WIFI (Wireless Fidelity) function, so that users of the mobile terminals can surf the internet through the WIFI. It is a matter of fact to convert wired network signals into wireless signals, using wireless routers for reception by the relevant terminal devices etc. supporting its technology.
The mobile terminals are provided with WIFI chips, and connecting networks through WIFI is one of the most common operations, and when people are out, the mobile terminals are simulated into access points to enable other devices to be connected through WIFI. However, when the mobile terminal does not close the network, other devices are unintentionally accessed for many times, so that the traffic of the mobile terminal is consumed completely, and the economic loss is caused to the mobile terminal owner as the access point.
Disclosure of Invention
The embodiment of the application provides a network sharing setting method, a network sharing setting device, a storage medium and a terminal, which can effectively save network traffic of the terminal.
The embodiment of the application provides a network sharing setting method, which comprises the following steps:
starting network sharing;
acquiring the time length to be shared of the current network sharing;
matching the time length to be shared with the sample sharing time length;
if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration;
after the sample share duration, network sharing is turned off.
Correspondingly, an embodiment of the present application further provides a network sharing setting apparatus, including:
the starting unit is used for starting network sharing;
the first acquisition unit is used for acquiring the time length to be shared of the current network sharing;
the first matching unit is used for matching the time length to be shared with the sample sharing time length;
the first broadcasting unit is used for broadcasting the network identifier corresponding to the sample sharing duration if the matching is successful;
and the closing unit is used for closing the network sharing after the sample sharing duration.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the network sharing setting method as described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the network sharing setting method described above.
According to the embodiment of the application, the plurality of access point network identifications are set, each network identification corresponds to different network sharing time lengths, the problem that the flow of the mobile terminal is consumed up due to multiple times of unconscious access of other equipment under the condition that the mobile terminal does not close the network can be avoided, and the network flow of the terminal can be effectively saved.
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 description of the embodiments are briefly introduced 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 creative efforts.
Fig. 1 is a schematic flowchart of a first network sharing setting method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a second network sharing setting method according to an embodiment of the present application.
Fig. 3 is a block diagram of a first network sharing setting apparatus according to an embodiment of the present disclosure.
Fig. 4 is a block diagram of a second network sharing setting apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a first network sharing setting method, apparatus, storage medium, and terminal, which can effectively save network traffic of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a network sharing setting method according to an embodiment of the present disclosure. The network share setting method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the network sharing setting method may be as follows:
101. and starting network sharing.
Specifically, network sharing is started, and information exchange and resource sharing are performed by using terminal equipment such as a computer as a carrier and using the internet as a platform. For example, network sharing may refer to a terminal sharing a private network with other terminals, which requires specialized network receiving and transmitting devices. Such as routers, switches, computers, cell phones, etc.
Before the terminal starts network sharing, it needs to ensure that the network connection is started, that is, the terminal is in a network connection state at this time, for example, the terminal may start a mobile data network connection. The mobile data network connection refers to accessing the internet through a GPRS (General Packet Radio Service), LTE (Long Term Evolution), and other mobile communication technologies. Correspondingly, when the terminal performs network connection through mobile communication technologies such as GPRS and LTE, corresponding mobile data traffic may be generated, and the mobile data traffic may refer to data traffic generated when the terminal performs network connection through a mobile data network or by using a related data value-added service. The mobile data network is started by a network sharing object, and the network sharing object refers to a transmitter of the mobile data network.
In some embodiments, after the step "turn on network sharing", the following steps may be further included:
acquiring the current network residual flow, wherein the network residual flow is a data volume residual value for network transmission;
judging whether the network residual flow is larger than a preset threshold value or not;
and if so, determining the duration to be shared based on the network residual flow.
Specifically, the current network residual flow is obtained, the network residual flow may be a data volume residual value used for data transmission during network connection, the terminal flow refers to flow data generated by a terminal accessing the internet, data is exchanged with a server when the terminal opens software or performs internet operation, and the terminal flow refers to the size of the data.
For example, the current network remaining traffic may be 1024M (unit: mega).
After the current network remaining traffic is obtained, the current network remaining traffic may be compared with a preset threshold. The preset threshold value can represent a safety threshold value that the current terminal can start a data network to surf the internet, and current data flow is ensured to be sufficient.
When the network residual flow is greater than the preset threshold, the time length of the network to be shared can be determined according to the network residual flow, and the data flow can be guaranteed to be controlled within the preset range when the current network is shared with other terminals.
For example, the current network remaining traffic may be 1024M, and the time duration of the network to be shared may be set to be 30 minutes; if the current network remaining traffic can be 2048M, the duration of the network to be shared can be set to be 60 minutes, and the like.
In some embodiments, after the step "turn on network sharing", the following steps may be further included:
when the fact that a user inputs a network identifier to be shared is detected, matching the network identifier to be shared with a sample network identifier;
if the matching is successful, broadcasting the sample network identifier;
and if the matching fails, broadcasting the network identifier to be shared and adding the network identifier to the sample network identifier.
Specifically, detecting the user input to-be-shared network identifier may match the to-be-shared network identifier with the sample network identifier.
The network identifier (SSID) (service Set identifier) is used to distinguish different networks, and may have at most 32 characters, and the wireless network card may enter different networks if it is Set with different SSIDs, and the SSID is usually broadcast by an AP (wireless access Point), and the SSID in the current area may be checked through a scanning function of the terminal itself. For security reasons, the SSID may not be broadcast, and the user may manually set the SSID to access the corresponding network. In brief, the SSID is the name of a local area network, and only the terminals set to the value of the SSID with the same name can communicate with each other.
The sample network identifiers are preset by a user and stored in a network memory, and in order to ensure that when the terminal shares a network with other terminals, the flow of the terminal is not excessive, different network sharing durations may be set for each sample network identifier, for example, a sample network identifier may include a plurality of sample network identifiers such as a sample identifier 1, a sample identifier 2, and a sample identifier 3, a network sharing duration corresponding to the sample identifier 1 may be set to be 60 minutes, a network sharing duration corresponding to the sample identifier 2 may be 90 minutes, a network sharing duration corresponding to the sample identifier 3 may be 120 minutes, and the like.
For example, it is detected that the network identifier input by the user may be 12345ABC, the sample network identifier may include network identifier 1, network identifier 2, network identifier 3, and the like, where the network identifier corresponding to network identifier 1 may be 12345ABC, the network identifier corresponding to network identifier 2 may be 12345AAA, and the network identifier corresponding to network identifier 3 may be 12345CCC, and it may be determined that network identifier 1 is the same as the network identifier input by the user, network identifier 1 may be broadcast, so that other terminals may search for network identifier 1 and share the network of the terminal.
For another example, it is detected that the network identifier input by the user may be 1111ABC, the sample network identifier may include network identifier 1, network identifier 2, network identifier 3, and the like, where the network identifier corresponding to network identifier 1 may be 12345ABC, the network identifier corresponding to network identifier 2 may be 12345AAA, and the network identifier corresponding to network identifier 3 may be 12345CCC, it may be determined that a network identifier identical to the network identifier input by the user does not exist in the sample network identifier, and then a sharing duration may be set for the network identifier input by the user, the network identifier input by the user is broadcasted, and the network identifier input by the user is added to the sample network identifier and stored in the network memory.
102. And acquiring the time length to be shared of the current network sharing.
Specifically, the terminal obtains the to-be-shared duration of the current network sharing, and in the last step, the to-be-shared duration may be set by a user, for example, the to-be-shared duration for the network sharing obtained and set by the current terminal may be 60 minutes.
103. And matching the time length to be shared with the sample sharing time length.
Specifically, the time length to be shared is matched with the sample sharing time length, wherein the sample sharing time length stored in the network memory may include a plurality of time lengths, for example, 30 minutes, 60 minutes, 90 minutes, and so on.
For example, the to-be-shared duration may be 60 minutes, the sample sharing duration may include 30 minutes, 60 minutes, 90 minutes, and so on, and then the same duration as the to-be-shared duration may be determined from the sample sharing duration.
104. And if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration.
Specifically, when it is determined that the time length to be shared is successfully matched with the sample sharing time length, the network identifier corresponding to the sample sharing time length may be obtained, and then the network identifier corresponding to the sample sharing time length may be broadcasted.
For example, the sample sharing duration successfully matched with the network duration to be shared may be 60 minutes, the network identifier corresponding to the sample sharing duration obtained from the network memory of 60 minutes may be AAABBBCCC, and the network identifier AAABBBCCC may be broadcasted, so that the network identifier AAABBBCCC may be searched when other terminals search for a network.
In some embodiments, the network sharing setting method may further include the steps of:
if the matching of the time length to be shared and the sample sharing time length fails, obtaining a sample time length closest to the time length to be shared as a target sample time length;
and broadcasting the network identification corresponding to the target sample duration.
Specifically, if the matching between the time length to be shared and the sample sharing time length fails, the target sample time length may be determined again from the sample sharing time length in order to facilitate network sharing.
There may be various ways to lack the target sample duration from the sample sharing duration, for example, the sample duration closest to the duration to be shared may be obtained as the target sample duration.
In some embodiments, the step of "obtaining a sample duration closest to the duration to be shared" may include the following steps:
acquiring a difference value between the time length to be shared and the sample time length;
sorting according to the difference value of a preset rule to obtain a sorting result;
and determining the sample time length closest to the time length to be shared according to the sequencing result.
Specifically, the difference between the duration to be shared and the sample duration may be obtained, and the duration difference between the duration to be shared and each sample duration may be obtained, for example, the duration to be shared may be 40 minutes, the sample duration may include a sample duration a of 30 minutes, a sample duration B of 35 minutes, a sample duration C of 41 minutes, and the like, and then the duration difference between the duration to be shared and the sample duration a may be obtained as 10 minutes, the duration difference between the duration to be shared and the sample duration B is 5 minutes, and the duration difference between the duration to be shared and the sample duration C is 1 minute.
After obtaining the difference between the duration to be shared and the sample duration, the difference may be sorted according to a preset rule, for example, the preset rule may sort according to the order of the difference from small to large, and then a sorting result may be obtained.
For example, the difference between the duration to be shared and the sample duration a is 10 minutes, the difference between the duration to be shared and the sample duration B is 5 minutes, and the difference between the duration to be shared and the sample duration C is 1 minute, and the obtained difference ranking result may be: 1 minute, 5 minutes, and 10 minutes, the sample sharing time length corresponding to the difference of 1 minute may be determined to be the time length value closest to the time length to be shared, and then the sample time length corresponding to the sample time length having the difference of 1 minute from the time length to be shared may be taken as the target sample time length.
After the target sample duration is determined, the network identifier corresponding to the target sample duration can be broadcasted, and the efficiency of network sharing is ensured.
In some embodiments, after the step of "broadcasting the network identifier corresponding to the sample sharing duration", the following steps may be further included:
receiving a network connection request sent by a terminal of the other party;
judging whether the opposite terminal has the authority to share the network or not based on the network connection request;
and if so, carrying out network sharing with the opposite terminal based on the sample sharing duration.
Specifically, a network connection request sent by the opposite terminal is received, after the terminal broadcasts a network identifier used for sharing the network, the opposite terminal may start a network function, search for the network identifier, and when the terminal receives the network connection request initiated by the opposite terminal, it may be determined whether the opposite terminal has an authority to share the network, where the authority to share the network by the opposite terminal may refer to obtaining a network connection password corresponding to the network identifier, or having a history connection record, and the like.
When the other terminal is detected to have the authority to share the network, the other terminal can start to share the network connection with the other terminal based on the sample sharing duration.
105. After the sample share duration, network sharing is turned off.
Specifically, after the network identifier is determined to be broadcasted, timing is started, and when the timing duration reaches the sample sharing duration, network sharing can be closed, so that consumption of network traffic of the terminal can be avoided.
The embodiment of the application discloses a network sharing setting method, which comprises the following steps: starting network sharing; acquiring the time length to be shared of the current network sharing; matching the time length to be shared with the sample sharing time length; if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration; after the sample share duration, network sharing is turned off. According to the embodiment of the application, the plurality of access point network identifications are set, each network identification corresponds to different network sharing time lengths, the problem that the flow of the mobile terminal is consumed up due to multiple times of unconscious access of other equipment under the condition that the mobile terminal does not close the network can be avoided, and the network flow of the terminal can be effectively saved.
Referring to fig. 2, fig. 2 is a schematic flowchart of a second network sharing setting method according to an embodiment of the present application. The specific scene application of the network sharing setting method can be as follows:
201. the terminal opens the network connection and opens the network sharing.
Specifically, the terminal opens a network connection, and the network connection type may be multiple, for example, the network connection may be a wired network connection or a wireless network connection. A wired network refers to a computer network that uses coaxial cable, twisted pair, and optical fiber for connectivity; wireless networking refers to the transmission of data by means of electromagnetic waves as carriers, mainly using air as the transmission medium.
When the interruption detects that the user opens the network, the network connection can be started. After the terminal opens the network connection, the current network is used as the shared network according to the network sharing opening operation of the user, so that other terminals can be connected with the terminal through the SSID set by the connection terminal, and the terminal network is used.
202. The terminal acquires the time length to be shared set by the current user.
Specifically, after the terminal receives a user instruction to start network sharing, in order to avoid excessive use of network data traffic, the time duration to be shared may be set according to the remaining network traffic of the current terminal.
For example, if the obtained current remaining network traffic value may be 1024M, the network to-be-shared duration may be set to be 30 minutes, and the like.
203. And the terminal matches the time length to be shared with the sample sharing time length and judges whether the sample sharing time length is the same as the time length to be shared.
Specifically, in order to quickly determine the SSID shared by the terminal network, the time length of the network to be shared may be matched with the sample sharing time length, whether the time length of the network to be shared is the same as the sample sharing time length is determined, and the SSID for broadcasting is selected according to the determination result. The sample network duration may be a shared network connection duration preset by a user, and each shared network connection duration may correspond to one SSID.
For example, the network duration to be shared may be 30 minutes, and the sample network duration may include 20 minutes, 30 minutes, 40 minutes, and so on. Then there is a same time duration as the network duration to be shared in the sample network duration, step 204 may be performed.
As another example, the network duration to be shared may be 60 minutes, and the sample network duration may include 20 minutes, 30 minutes, 40 minutes, and so on. Then there is no time duration in the sample network time duration that is the same as the time duration of the network to be shared, then step 206 may be performed.
204. And the terminal acquires a target network identifier corresponding to the sample duration and broadcasts the target network identifier.
Specifically, it is determined that there is a time length that is the same as the time length of the network to be shared in the sample sharing time length, and the time length may be used as the target sharing time length. The terminal may obtain an SSID corresponding to the target sharing duration, and may then broadcast the SSID.
For example, the target sharing duration may be 30 minutes, the corresponding SSID when the sharing duration is 30 minutes may be 123AAA, and then the terminal may broadcast the SSID of 123 AAA.
205. And after the terminal detects that the opposite terminal shares the network, the terminal disconnects the network sharing with the opposite terminal after the sample time length.
Specifically, after the terminal broadcasts the target network identifier, other terminals may initiate network sharing connection to the terminal by searching for the target network identifier. The terminal may select a target device from the initiated devices for network sharing connection as a counterpart terminal that can be network-shared.
When the terminal and the opposite terminal start to share the network, the sharing duration can be a target sharing duration, namely, timing is started when the terminal and the opposite terminal start to share the network, and after the timing duration reaches the target sharing duration, the terminal can disconnect the network connection of the opposite terminal and finish network sharing with the opposite terminal, so that the consumption of network data flow caused by the condition that a terminal user forgets to close the network can be avoided, and the user can be helped to save the network data flow.
206. And the terminal acquires the sample sharing time length with the minimum time difference value with the time length to be shared as the target sharing time length.
Specifically, when the sample sharing duration does not have a duration that is the same as the duration to be shared, the sample duration may be obtained again from the sample duration as the target sample duration. The terminal can obtain the time difference between the sample time length and the time length to be shared, and the terminal can sort the time difference to obtain a sorting result of the time difference.
Further, the terminal may determine the sample sharing duration with the smallest time difference as the target sharing duration, where the target sharing duration is the network sharing duration closest to the duration to be shared.
For example, the network duration to be shared may be 30 minutes, and the sample sharing duration may include: 25 minutes, 40 minutes and 50 minutes, the network sharing duration closest to the to-be-shared duration can be determined as 25 minutes, the target sharing duration can be 25 minutes, the SSID broadcast when the terminal is used for sharing the network can be quickly determined, and the network sharing efficiency is improved.
207. And the terminal acquires the network identifier corresponding to the target sharing duration to broadcast.
Specifically, after determining the target sharing duration, the terminal may acquire the network identifier corresponding to the target sharing duration and broadcast the network identifier.
For example, the target sharing duration may be 25 minutes, and when the network sharing duration is 25 minutes, the corresponding network identifier may be 111AAA, and the terminal may broadcast the network identifier of 111AAA, so that other terminals may perform network sharing with the terminal according to the network identifier.
The embodiment of the application discloses a network sharing setting method, which comprises the following steps: starting network sharing; acquiring the time length to be shared of the current network sharing; matching the time length to be shared with the sample sharing time length; if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration; after the sample share duration, network sharing is turned off. According to the embodiment of the application, the plurality of access point network identifications are set, each network identification corresponds to different network sharing time lengths, the problem that the flow of the mobile terminal is consumed up due to multiple times of unconscious access of other equipment under the condition that the mobile terminal does not close the network can be avoided, and the network flow of the terminal can be effectively saved.
In order to better implement the network sharing setting method provided in the embodiments of the present application, an embodiment of the present application further provides a device based on the network sharing setting method. The terms are the same as those in the above network sharing setting method, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram illustrating a first network sharing apparatus according to an embodiment of the present disclosure, where the apparatus can be applied to a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Portable Media Player (PMP), and a fixed terminal such as a desktop computer, and the apparatus includes:
an opening unit 301 configured to open network sharing;
a first obtaining unit 302, configured to obtain a duration to be shared for current network sharing;
a first matching unit 303, configured to match the duration to be shared with a sample sharing duration;
a first broadcasting unit 304, configured to broadcast the network identifier corresponding to the sample sharing duration if the matching is successful;
a closing unit 305, configured to close the network sharing after the sample sharing duration.
In some embodiments, please refer to fig. 4, where fig. 4 is a block diagram of a second network sharing apparatus according to an embodiment of the present disclosure, the network sharing apparatus may further include:
a second obtaining unit 306, configured to, if matching between the to-be-shared duration and the sample sharing duration fails, obtain a sample duration closest to the to-be-shared duration as a target sample duration;
a second broadcasting unit 307, configured to broadcast the network identifier corresponding to the target sample duration.
In some embodiments, the second obtaining unit 306 may include:
the obtaining subunit is configured to obtain a difference between the duration to be shared and a sample duration;
the sorting subunit is used for sorting the difference values according to a preset rule to obtain a sorting result;
and the determining subunit is used for determining the sample time length closest to the time length to be shared according to the sequencing result.
In some embodiments, the network sharing device may further include:
a third obtaining unit, configured to obtain a current network remaining traffic, where the network remaining traffic is a data amount remaining value for network transmission;
the first judgment unit is used for judging whether the network residual flow is larger than a preset threshold value or not;
and the determining unit is used for determining the duration to be shared based on the network residual flow if the network residual flow exists.
In some embodiments, the network sharing device may further include:
the second matching unit is used for matching the network identifier to be shared with the sample network identifier when the fact that the user inputs the network identifier to be shared is detected;
the first execution unit is used for broadcasting the sample network identifier if the matching is successful;
and the second execution unit is used for broadcasting the network identifier to be shared and adding the network identifier to be shared to the sample network identifier if the matching fails.
In some embodiments, the network sharing device may further include:
a receiving unit, configured to receive a network connection request sent by a terminal of an opposite party;
a second judging unit, configured to judge whether the opposite terminal has an authority to share the network based on the network connection request;
and the sharing unit is used for carrying out network sharing with the opposite terminal based on the sample sharing duration if the sharing unit is used for carrying out network sharing with the opposite terminal based on the sample sharing duration.
The embodiment of the application discloses a network sharing setting device, which comprises: starting network sharing; acquiring the time length to be shared of the current network sharing; matching the time length to be shared with the sample sharing time length; if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration; after the sample share duration, network sharing is turned off. According to the embodiment of the application, the plurality of access point network identifications are set, each network identification corresponds to different network sharing time lengths, the problem that the flow of the mobile terminal is consumed up due to multiple times of unconscious access of other equipment under the condition that the mobile terminal does not close the network can be avoided, and the network flow of the terminal can be effectively saved.
The embodiment of the application also provides a terminal. As shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
starting network sharing;
acquiring the time length to be shared of the current network sharing;
matching the time length to be shared with the sample sharing time length;
if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration;
after the sample share duration, network sharing is turned off.
The embodiment of the application discloses a network sharing setting method, a network sharing setting device, a storage medium and a terminal. The network sharing setting method comprises the following steps: starting network sharing; acquiring the time length to be shared of the current network sharing; matching the time length to be shared with the sample sharing time length; if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration; after the sample share duration, network sharing is turned off. According to the embodiment of the application, the plurality of access point network identifications are set, each network identification corresponds to different network sharing time lengths, the problem that the flow of the mobile terminal is consumed up due to multiple times of unconscious access of other equipment under the condition that the mobile terminal does not close the network can be avoided, and the network flow of the terminal can be effectively saved.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any network sharing setting method provided in the present application. For example, the instructions may perform the steps of:
starting network sharing; acquiring the time length to be shared of the current network sharing; matching the time length to be shared with the sample sharing time length; if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration; after the sample share duration, network sharing is turned off. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any network sharing setting method provided in the embodiments of the present application, beneficial effects that can be achieved by any network sharing setting method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The network sharing setting method, device, storage medium and terminal provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A network sharing setting method, comprising:
starting network sharing;
acquiring the time length to be shared of the current network sharing;
matching the time length to be shared with the sample sharing time length;
if the matching is successful, broadcasting the network identification corresponding to the sample sharing duration;
after the sample share duration, network sharing is turned off.
2. The method of claim 1, further comprising:
if the matching of the time length to be shared and the sample sharing time length fails, obtaining a sample time length closest to the time length to be shared as a target sample time length;
and broadcasting the network identification corresponding to the target sample duration.
3. The method of claim 2, wherein obtaining the sample duration closest to the duration to be shared comprises:
acquiring a difference value between the time length to be shared and the sample time length;
sorting according to the difference value of a preset rule to obtain a sorting result;
and determining the sample time length closest to the time length to be shared according to the sequencing result.
4. The method of claim 1, further comprising, after the network sharing is turned on:
acquiring the current network residual flow, wherein the network residual flow is a data volume residual value for network transmission;
judging whether the network residual flow is larger than a preset threshold value or not;
and if so, determining the duration to be shared based on the network residual flow.
5. The method of claim 1, further comprising, after the network sharing is turned on:
when the fact that a user inputs a network identifier to be shared is detected, matching the network identifier to be shared with a sample network identifier;
if the matching is successful, broadcasting the sample network identifier;
and if the matching fails, broadcasting the network identifier to be shared and adding the network identifier to the sample network identifier.
6. The method of claim 1, further comprising, after broadcasting the network identifier corresponding to the sample share duration:
receiving a network connection request sent by a terminal of the other party;
judging whether the opposite terminal has the authority to share the network or not based on the network connection request;
and if so, carrying out network sharing with the opposite terminal based on the sample sharing duration.
7. A network sharing setting apparatus, comprising:
the starting unit is used for starting network sharing;
the first acquisition unit is used for acquiring the time length to be shared of the current network sharing;
the first matching unit is used for matching the time length to be shared with the sample sharing time length;
the first broadcasting unit is used for broadcasting the network identifier corresponding to the sample sharing duration if the matching is successful;
and the closing unit is used for closing the network sharing after the sample sharing duration.
8. The apparatus of claim 7, further comprising:
the second obtaining unit is used for obtaining the sample time length closest to the time length to be shared as the target sample time length if the matching of the time length to be shared and the sample sharing time length fails;
and the second broadcasting unit is used for broadcasting the network identifier corresponding to the target sample time length.
9. A storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of the network sharing setting method according to any one of claims 1 to 6.
10. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps of the network sharing setting method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010047144.8A CN111225374B (en) | 2020-01-16 | 2020-01-16 | Network sharing setting method, device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010047144.8A CN111225374B (en) | 2020-01-16 | 2020-01-16 | Network sharing setting method, device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111225374A true CN111225374A (en) | 2020-06-02 |
CN111225374B CN111225374B (en) | 2022-11-04 |
Family
ID=70831178
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010047144.8A Active CN111225374B (en) | 2020-01-16 | 2020-01-16 | Network sharing setting method, device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111225374B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050107089A1 (en) * | 2003-10-09 | 2005-05-19 | Hiroaki Fukui | Radio communication system and radio terminal |
CN102238693A (en) * | 2010-04-20 | 2011-11-09 | 深圳富泰宏精密工业有限公司 | System and method for automatically searching WiFi (wireless fidelity) hotspots |
CN103249047A (en) * | 2012-02-10 | 2013-08-14 | 中兴通讯股份有限公司 | Wireless local area network hotspot access authentication method and device |
CN103297467A (en) * | 2012-02-29 | 2013-09-11 | 宇龙计算机通信科技(深圳)有限公司 | Information sharing method and system based on wifi network and terminal device |
CN104243335A (en) * | 2014-09-30 | 2014-12-24 | 可牛网络技术(北京)有限公司 | Network sharing method and device |
US20150350911A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | System and Method for Temporarily Joining a WiFi Network |
CN105578516A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Hot spot configuration method and device |
CN105636176A (en) * | 2016-03-24 | 2016-06-01 | 北京小米移动软件有限公司 | Network sharing method and device |
CN106100865A (en) * | 2016-05-24 | 2016-11-09 | 中国联合网络通信集团有限公司 | Authorization method, server and the terminal device that focus is shared |
CN107343305A (en) * | 2016-05-03 | 2017-11-10 | 中兴通讯股份有限公司 | Network sharing method and apparatus based on hotspot |
CN107347195A (en) * | 2017-08-30 | 2017-11-14 | 努比亚技术有限公司 | Focus sharing method and mobile terminal |
WO2018068444A1 (en) * | 2016-10-11 | 2018-04-19 | 中兴通讯股份有限公司 | Transmission capacity sharing method, terminal, and storage medium |
-
2020
- 2020-01-16 CN CN202010047144.8A patent/CN111225374B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050107089A1 (en) * | 2003-10-09 | 2005-05-19 | Hiroaki Fukui | Radio communication system and radio terminal |
CN102238693A (en) * | 2010-04-20 | 2011-11-09 | 深圳富泰宏精密工业有限公司 | System and method for automatically searching WiFi (wireless fidelity) hotspots |
CN103249047A (en) * | 2012-02-10 | 2013-08-14 | 中兴通讯股份有限公司 | Wireless local area network hotspot access authentication method and device |
CN103297467A (en) * | 2012-02-29 | 2013-09-11 | 宇龙计算机通信科技(深圳)有限公司 | Information sharing method and system based on wifi network and terminal device |
US20150350911A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | System and Method for Temporarily Joining a WiFi Network |
CN104243335A (en) * | 2014-09-30 | 2014-12-24 | 可牛网络技术(北京)有限公司 | Network sharing method and device |
CN105578516A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Hot spot configuration method and device |
CN105636176A (en) * | 2016-03-24 | 2016-06-01 | 北京小米移动软件有限公司 | Network sharing method and device |
CN107343305A (en) * | 2016-05-03 | 2017-11-10 | 中兴通讯股份有限公司 | Network sharing method and apparatus based on hotspot |
CN106100865A (en) * | 2016-05-24 | 2016-11-09 | 中国联合网络通信集团有限公司 | Authorization method, server and the terminal device that focus is shared |
WO2018068444A1 (en) * | 2016-10-11 | 2018-04-19 | 中兴通讯股份有限公司 | Transmission capacity sharing method, terminal, and storage medium |
CN107347195A (en) * | 2017-08-30 | 2017-11-14 | 努比亚技术有限公司 | Focus sharing method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN111225374B (en) | 2022-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108924805B (en) | Bluetooth connection method, medium, first electronic device, second electronic device and computing device | |
US10069818B2 (en) | Method, system, device, and terminal for network initialization of multimedia playback device | |
CN106714250B (en) | Cell registration method and device and computer readable storage medium | |
CN108255683B (en) | Method for prompting message in terminal and terminal | |
CN110162314B (en) | Software upgrading management method, server, terminal, device and storage medium | |
CN106413036B (en) | Network access processing method and terminal equipment | |
CN106961710B (en) | Network access method and terminal | |
CN110418311B (en) | Interconnection method and device based on multiple terminals and terminal | |
CN110944313B (en) | Bluetooth connection method, device, storage medium and terminal | |
CN112269842A (en) | Information processing method and device, storage medium and computer equipment | |
CN106303616B (en) | Play control method, device and terminal | |
CN103336677B (en) | A kind of methods, devices and systems to display device output image | |
CN110944318B (en) | Lock card setting method and device, storage medium and terminal | |
CN110891262A (en) | Bluetooth pairing method, system and terminal equipment | |
CN111225374B (en) | Network sharing setting method, device, storage medium and terminal | |
CN106817370B (en) | Method and device for transmitting network data | |
CN110582079B (en) | Bluetooth connection setting method and device, computer readable storage medium and terminal | |
CN105635379B (en) | Noise suppression method and device | |
CN113613310A (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN112492554A (en) | Data transmission method, device, storage medium and terminal | |
CN108566649B (en) | Network segment management method of personal hotspot and related products | |
CN112261634A (en) | Bluetooth transmission control method, device, terminal equipment and storage medium | |
CN108322943B (en) | Local area network allocation method, terminal and storage medium | |
CN110913022A (en) | Method, device and system for downloading network file of mobile terminal and storage medium | |
CN110913454A (en) | Cell determination method and terminal equipment |
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 |