CN109819092A - A kind of network connection management-control method and device - Google Patents
A kind of network connection management-control method and device Download PDFInfo
- Publication number
- CN109819092A CN109819092A CN201711160641.3A CN201711160641A CN109819092A CN 109819092 A CN109819092 A CN 109819092A CN 201711160641 A CN201711160641 A CN 201711160641A CN 109819092 A CN109819092 A CN 109819092A
- Authority
- CN
- China
- Prior art keywords
- network
- network connection
- legal power
- connection state
- terminal
- 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.)
- Pending
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention relates to mobile network fields more particularly to a kind of network connection management-control method and device, this method to be, monitors whether network connection state changes;If it is determined that network connection state changes, and determine that network connection state is to open, then according to the network legal power pre-seted, determine whether that opening network connects, in this way, only need the network legal power for setting terminal at the terminal in advance, after network legal power is set, it monitors whether network connection state changes in real time, and then network connection is managed, realize very simple, the participation of server is not needed, network connection can be effectively controlled by the resource of terminal itself, limits the internet behavior of user, resource utilization is high.
Description
Technical field
The present invention relates to mobile network field more particularly to a kind of network connection management-control methods and device.
Background technique
With the rapid development of mobile Internet, mobile phone becomes increasingly popular, and user can easily pass through surfing Internet with cell phone,
And browse and watch various websites and video, the daily life of user is greatly facilitated, still, for minor, especially
Student, minor manage ability may it is poor etc. due to, the use of surfing Internet with cell phone is likely to result in and sinks to network
It is confused, play games adverse effects, the growth and school grade to student such as more frequent, the unsound website of browsing produce serious
It influences, as long as mobile phone can connect network, user can be carried out various operations, can not manage user.
The prior art mainly utilizes mobile phone, gateway server, server-side to the method for surfing Internet with cell phone control, and mobile phone is set
The mobile phone string number of cell phone apparatus or mobile phone card number are set in central server by standby manager by common carrier, and are passed through
Internet is arranged interface access gateway server, upper corresponding to equipment string number or cell phone apparatus card to the mobile phone after authenticated
Net behavior is configured.
But this method, when user passes through surfing Internet with cell phone, by central server and NM server to online
Behavior is limited or is filtered, and server is needed to participate in, and does not utilize terminal resource itself, and resource utilization is lower.
Summary of the invention
The embodiment of the present invention provides a kind of network connection management-control method and device, to solve network connection pipe in the prior art
The lower problem of prosecutor method resource utilization.
Specific technical solution provided in an embodiment of the present invention is as follows:
A kind of network connection management-control method, comprising:
Monitor whether network connection state changes;
If it is determined that network connection state changes, and determines that network connection state is to open, then according to the net pre-seted
Network permission, it is determined whether opening network connection.
Preferably, monitoring whether network connection state changes, specifically include:
The corresponding state change broadcast of network connection whether is received by monitoring, to monitor whether network connection state is sent out
Changing.
Preferably, further comprising:
After determining that the authentication of management user passes through, if receiving the network legal power setting instruction of the management user,
Then it is arranged according to the network legal power and is instructed, the network legal power of terminal is configured;Or,
According to preset interface, the network legal power of terminal is configured.
Preferably, according to the network legal power pre-seted, it is determined whether opening network connection specifically includes:
If it is determined that the network legal power pre-seted is to forbid being connected to the network, then network connection is closed;
If it is determined that the network legal power pre-seted is to allow to be connected to the network, then opening network is allowed to connect.
Preferably, network legal power, including a kind of following or any combination: data traffic permission, wifi permission, wifi hotspot
Permission, bluetooth permission.
A kind of network connection control device, comprising:
Monitoring unit, for monitoring whether network connection state changes;
Control unit for if it is determined that network connection state changes, and determines that network connection state is to open, then root
According to the network legal power pre-seted, it is determined whether opening network connection.
Preferably, monitoring whether network connection state changes, monitoring unit is specifically used for:
The corresponding state change broadcast of network connection whether is received by monitoring, to monitor whether network connection state is sent out
Changing.
Preferably, further comprising priority assignation unit, it is used for:
After determining that the authentication of management user passes through, if receiving the network legal power setting instruction of the management user,
Then it is arranged according to the network legal power and is instructed, the network legal power of terminal is configured;Or,
According to preset interface, the network legal power of terminal is configured.
Preferably, according to the network legal power pre-seted, it is determined whether opening network connection, control unit are specifically used for:
If it is determined that the network legal power pre-seted is to forbid being connected to the network, then network connection is closed;
If it is determined that the network legal power pre-seted is to allow to be connected to the network, then opening network is allowed to connect.
Preferably, network legal power, including a kind of following or any combination: data traffic permission, wifi permission, wifi hotspot
Permission, bluetooth permission.
A kind of computer equipment, comprising:
At least one processor, for storing computer program;
At least one processor is realized in the embodiment of the present invention when for executing the computer program stored in memory
The step of being connected to the network management-control method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of network connection management-control method in the embodiment of the present invention is realized when row.
In the embodiment of the present invention, monitor whether network connection state changes;If it is determined that network connection state becomes
Change, and determine that network connection state is to open, then according to the network legal power pre-seted, it is determined whether opening network connection, in this way,
Monitor whether network connection state changes in real time, and then according to the network legal power pre-seted to terminal, to be connected to the network into
Row control only needs the network legal power for setting terminal at the terminal in advance, after network legal power is arranged, carries out to network connection state
The participation that server is not needed when control can effectively control network connection by the resource of terminal itself, limit user's
Internet behavior realizes simple, resource utilization height.
Detailed description of the invention
Fig. 1 is the flow chart that management-control method is connected to the network in the embodiment of the present invention;
Fig. 2 is the data traffic management-control method flow chart of Android terminal in the embodiment of the present invention;
Fig. 3 is the wifi management-control method flow chart of Android terminal in the embodiment of the present invention;
Fig. 4 is the wifi hotspot management-control method flow chart of Android terminal in the embodiment of the present invention;
Fig. 5 is the bluetooth management-control method flow chart of Android terminal in the embodiment of the present invention;
Fig. 6 is that control device structural schematic diagram is connected to the network in the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of terminal in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, is not whole embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in fig.1, network connection management-control method provided in an embodiment of the present invention, specifically includes the following steps:
Step 100: monitoring whether network connection state changes.
Network connection management-control method in the embodiment of the present invention, mainly for Android terminal, such as Android phone
Or tablet computer etc., be of course not solely limited to Android terminal, for use the terminal of other operating systems be also it is applicable,
It is only illustrated by taking Android terminal as an example in the embodiment of the present invention.
Wherein, network connection can for data traffic connection, wifi connection, wifi hotspot connects or bluetooth connection etc.,
It in the embodiment of the present invention and is not limited, indicates the function connects that can be used for surfing the Internet.
When executing step 100, specifically include:
The corresponding state change broadcast of network connection whether is received by monitoring, to monitor whether network connection state is sent out
Changing.
In the embodiment of the present invention, terminal can monitor network connection state in real time, when network connection state changes, example
If user opens or closes network connection, system can send corresponding broadcast, and then can be by judging whether to receive these
Broadcast detects operation of the user to network connecting function, knows whether network connection state is changed.
For example, user executes predetermined registration operation to the switch of data traffic, turn-on data flow is selected, data traffic connects shape
State is changed, at this moment for Android (Android) system, it may occur that a broadcast, for example,
The broadcast of " android.intent.action.ANY_DATA_STATE " listens to the broadcast, then can determine data traffic
Connection status is changed.
Step 110: if it is determined that network connection state changes, and determines that network connection state is to open, then according to pre-
The network legal power of setting, it is determined whether opening network connection.
Wherein, network legal power, including a kind of following or any combination: data traffic permission, wifi permission, wifi hotspot power
Limit, bluetooth permission.
When executing step 110, following several situations are specifically included:
The first situation: if it is determined that the network legal power pre-seted is to forbid being connected to the network, then network connection is closed.
Specifically, network connection can be closed by corresponding method in the operating system of calling terminal.
For example, forbidden data flow connects the method that can be used are as follows:
Final ConnectivityManager cm=(ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
Method method=cm.getClass () .getDeclaredMethod
("setMobileDataEnabled",boolean.class);
method.setAccessible(true);
method.invoke(cm,false);
At this moment, network legal power is to forbid, then user's opening network connection can also close automatically, is not allowed on user
Net, can limit the internet behavior of user, and not need server participation, only need terminal management person or user in advance in terminal
On set network legal power, can realize control internet behavior using terminal resource itself, realize simple, the utilization of resources
Rate is high.
Second situation: if it is determined that the network legal power pre-seted is to allow to be connected to the network, then opening network is allowed to connect.
At this moment, allow if network legal power is, can permit the connection of user's opening network, user can surf the Internet.
That is, in the embodiment of the present invention, however, it is determined that the network legal power pre-seted is to allow to be connected to the network, then to network
Connection status is not limited, and user can arbitrarily open or close network connection.
Further, after executing step 110,100 can be returned to step, that is to say, that meeting in the embodiment of the present invention
Real-time listening broadcast, determines whether the network connection state of terminal changes, and then can carry out pipe to network connection in real time
Control.
Further, in the embodiment of the present invention, the network legal power of terminal is set, it is not necessary that by server, specific implementation can
To be divided into following methods:
First way: after determining that the authentication of management user passes through, if receiving the network weight of the management user
Limit setting instruction, then be arranged according to the network legal power and instruct, be configured to the network legal power of terminal.
User is managed in the embodiment of the present invention to be directly configured the network legal power of terminal in advance, and server is not necessarily to
Participation, the network connection management-control method in the embodiment of the present invention can integrate in an application program in actual implementation
In (Application, APP), the APP is downloaded and installed in the terminal, and network legal power set interface or phase are provided in the APP
Button is closed, management user logs in the APP, after identity is upchecked, network legal power is set, when user uses the terminal later, meeting
Open a monitoring system broadcast task, judge whether network connection state changes, so to network connection state into
Row control, realizes the limitation and management surfed the Internet to user, does not need server, is set by management user in the network legal power of terminal
It sets, so that it may the network connection of terminal be managed, realized also very simple.
For example, mother of certain student is equipped with a mobile phone to it, but mother is not intended to his online in school, can be with
In the mobile phone APP downloaded and installed for being integrated with network connection management-control method in the embodiment of the present invention, then registers and be arranged
Username and password enters the APP after the completion, and by the network legal power setting function of providing in the APP, network legal power, which is arranged, is
Forbid being connected to the network, mother here is to manage user can just enter and be arranged only after username and password is correct
Network legal power, it is possible to the validity for guaranteeing network legal power setting, in this way, being that can not carry out network company when student is in school
It connects, cannot also surf the Internet, when mother allows its online, reset network legal power after identity being verified again, it can be with
Effectively control network playing by students.
The second way: according to preset interface, the network legal power of terminal is configured.
In the embodiment of the present invention, primarily to user's online can be limited, accordingly it is also possible to not need management user hand
It is dynamic that network legal power is configured, using preset interface, the corresponding method of the network connection of the operating system of terminal is called, directly
It connects and is set as forbidding being connected to the network by network legal power, in this way, the function ought be used at the terminal, user cannot use the terminal
It surfs the Internet.
For example, the function of the network connection management-control method in the embodiment of the present invention, is integrated in an APP, in the terminal
It downloads and the APP is installed, then the network legal power of terminal is set as forbidding being connected to the network by the APP by preset interface, and
The APP cannot be unloaded, so the user using the terminal cannot also surf the Internet, can effectively limit its internet behavior.
It is worth noting that mainly for the network connection of terminal in the embodiment of the present invention, naturally it is also possible to be suitable for it
Its priority assignation, for example, by setting camera permission, GPS permission, blacklist permission or combination etc., to terminal
Camera, GPS or blacklist etc. are managed.
In the embodiment of the present invention, the network legal power for setting terminal at the terminal in advance is only needed, then monitors network in real time
Whether connection status changes, if network connection state changes, according to preset network legal power, to network connection state
It is managed, if network legal power is to forbid, and network connection state is to open, then closes network connection, in this way, setting network weight
After limit, user's operation is detected, network connection state is managed, without the participation of server, passes through the resource of terminal itself
Network connection can be effectively controlled, the internet behavior of user is limited, realizes simple, resource utilization height.
Further description is made to above-described embodiment using a specific application scenarios below.With Android end
For the data traffic control at end, referring particularly to shown in Fig. 2, in the embodiment of the present invention, it is connected to the network the execution of management-control method
Journey is specific as follows:
Step 200: monitoring android.intent.action.ANY_DATA_STATE broadcast.
In the embodiment of the present invention, after presetting the network legal power of terminal, opens and monitor the broadcast, Android is grasped
Make system, the broadcast of monitored data flow status variation can be with are as follows: android.intent.action.ANY_DATA_STATE.
Step 201: determination listens to broadcast.
At this moment, the broadcast is listened to, is also assured that the data traffic connection status of terminal is changed.
Step 202: judging whether network legal power is the connection of forbidden data flow, if so, thening follow the steps 203, otherwise, then
Execute step 204.
Step 203: if it is determined that data traffic connection status is to open, then closing data traffic.
In this way, network legal power is disabling data traffic, network connection state is determined, however, it is determined that data traffic connection status is
Unlatching is then closed, and forbids surfing the Internet.
It further, can be without operation, it is ensured that current data flow connects if data traffic connection status is to close
The state of connecing is in off state.
Wherein, forbidden data flow connects the method that can be used are as follows:
Final ConnectivityManager cm=(ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
Method method=cm.getClass () .getDeclaredMethod
("setMobileDataEnabled",boolean.class);
method.setAccessible(true);
method.invoke(cm,false);
Step 204: terminating.
If at this moment network legal power is to allow to be connected to the network, network connection is not controlled, user can arbitrarily open
Or close network connection.
Further description is made to above-described embodiment using a specific application scenarios below.By taking wifi as an example,
Referring particularly to shown in Fig. 3, in the embodiment of the present invention, the implementation procedure for being connected to the network management-control method is specific as follows:
Step 300: monitoring WifiManager.WIFI_STATE_CHANGED_ACTION broadcast.
In the embodiment of the present invention, after presetting the network legal power of terminal, opens and monitor the broadcast, Android is grasped
Make system, the broadcast for monitoring the variation of wifi connection status can be with are as follows: WifiManager.WIFI_STATE_CHANGED_
ACTION。
Step 301: determination listens to broadcast.
At this moment, the broadcast is listened to, so that it may determine that the wifi connection status of terminal is changed.
Step 302: judging whether network legal power is that wifi is forbidden to connect, if so, thening follow the steps 303, otherwise, is then executed
Step 304.
Step 303: if it is determined that wifi connection status is to open, then closing wifi.
In this way, network legal power be disabling wifi, determine network connection state, however, it is determined that wifi connection status be open then into
Row is closed, and forbids surfing the Internet.
It further, can be without operation, it is ensured that currently wifi connection status is if wifi connection status is to close
Closed state.
Wherein, the method for forbidding wifi connection can be used are as follows:
WifiManager wifiManager=(WifiManager)
context.getApplicationContext().getSystemService(Context.WIFI_
SERVICE);
wifiManager.setWifiEnabled(false);
Step 304: terminating.
If at this moment network legal power is to allow to be connected to the network, network connection is not controlled, user can arbitrarily open
Or close network connection.
Further description is made to above-described embodiment using a specific application scenarios below.It is with wifi hotspot
Example, referring particularly to shown in Fig. 4, in the embodiment of the present invention, the implementation procedure for being connected to the network management-control method is specific as follows:
Step 400: monitoring android.net.wifi.WIFI_AP_STATE_CHANGED broadcast.
In the embodiment of the present invention, after presetting the network legal power of terminal, opens and monitor the broadcast, Android is grasped
Make system, the broadcast for monitoring the variation of wifi hotspot connection status can be with are as follows: android.net.wifi.WIFI_AP_STATE_
CHANGED。
Step 401: determination listens to broadcast.
At this moment, the broadcast is listened to, so that it may determine that the wifi hotspot connection status of terminal is changed.
Step 402: judging whether network legal power is that wifi hotspot is forbidden to connect, if so, thening follow the steps 403, otherwise, then
Execute step 404.
Step 403: if it is determined that wifi hotspot connection status is to open, then closing wifi hotspot.
In this way, network legal power is disabling wifi hotspot, network connection state is determined, however, it is determined that wifi hotspot connection status is
Unlatching is then closed, and forbids surfing the Internet.
It further, can be without operation if wifi hotspot connection status is to close, it is ensured that current wifi hotspot connects
The state of connecing is in off state.
Wherein, wifi hotspot is forbidden to connect the method that can be used are as follows:
WifiManager wifiManager=(WifiManager) context.getApplication
Context().getSystemService(Context.WIFI_SERVICE);
Method method=wifiManager.getClass ()
.getMethod("getWifiApConfiguration");
WifiConfiguration config=(WifiConfiguration) method
.invoke(wifiManager);
Method method=wifiManager.getClass () .getMetho (" setWifiApEnabled ",
WifiConfiguration.class,boolean.class);
method.invoke(wifiManager,config,false);
Step 404: terminating.
That is, not controlled network connection, user can be random if network legal power is to allow to be connected to the network
Open or close network connection.
Further description is made to above-described embodiment using a specific application scenarios below.By taking bluetooth as an example,
Referring particularly to shown in Fig. 5, in the embodiment of the present invention, the implementation procedure for being connected to the network management-control method is specific as follows:
Step 500: monitoring BluetoothAdapter.ACTION_STATE_CHANGED broadcast.
In the embodiment of the present invention, after presetting the network legal power of terminal, opens and monitor the broadcast, Android is grasped
Make system, the broadcast for monitoring bluetooth connection status variation can be with are as follows: BluetoothAdapter.ACTION_STATE_
CHANGED。
Step 501: determination listens to broadcast.
At this moment, the broadcast is listened to, so that it may determine that the bluetooth connection status of terminal are changed, user holds bluetooth
It has gone and has opened or closed operation.
Step 502: judging whether network legal power is to forbid bluetooth connection, if so, thening follow the steps 503, otherwise, is then executed
Step 504.
Step 503: if it is determined that bluetooth connection status are to open, then closing bluetooth.
In this way, network legal power be disabling bluetooth, determine network connection state, however, it is determined that bluetooth connection status be open then into
Row is closed, and forbids surfing the Internet.
It further, can be without operation, it is ensured that current Bluetooth connection status is if bluetooth connection status are to close
Closed state.
Wherein, the method for forbidding bluetooth connection can be used are as follows:
BluetoothAdapter bluetoothAdapter=BluetoothAdapter.getDefaultAdapter
();
bluetoothAdapter.disable();
Step 504: terminating.
That is, not controlled network connection, user can be random if network legal power is to allow to be connected to the network
Open or close network connection.
Based on the above embodiment, as shown in fig.6, in the embodiment of the present invention, it is connected to the network control device, is specifically included:
Monitoring unit 60, for monitoring whether network connection state changes;
Control unit 61 for if it is determined that network connection state changes, and determines that network connection state is to open, then
According to the network legal power pre-seted, it is determined whether opening network connection.
Preferably, monitoring whether network connection state changes, monitoring unit 60 is specifically used for:
The corresponding state change broadcast of network connection whether is received by monitoring, to monitor whether network connection state is sent out
Changing.
Preferably, further comprising priority assignation unit 62, it is used for:
After determining that the authentication of management user passes through, if receiving the network legal power setting instruction of the management user,
Then it is arranged according to the network legal power and is instructed, the network legal power of terminal is configured;Or,
According to preset interface, the network legal power of terminal is configured.
Preferably, according to the network legal power pre-seted, it is determined whether opening network connection, control unit 61 are specifically used for:
If it is determined that the network legal power pre-seted is to forbid being connected to the network, then network connection is closed;
If it is determined that the network legal power pre-seted is to allow to be connected to the network, then opening network is allowed to connect.
Preferably, network legal power, including a kind of following or any combination: data traffic permission, wifi permission, wifi hotspot
Permission, bluetooth permission.
As shown in fig.7, in the embodiment of the present invention, a kind of structural schematic diagram of terminal.
The embodiment of the invention provides a kind of terminal, which may include (the Center Processing of processor 710
Unit, CPU), memory 720, input equipment 730 and output equipment 740 etc., input equipment 730 may include keyboard, mouse,
Touch screen etc., output equipment 740 may include display equipment, as liquid crystal display (Liquid Crystal Display,
LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory 720 may include read-only memory (ROM) and random access memory (RAM), and mention to processor 710
For the program instruction and data stored in memory 720.In embodiments of the present invention, memory 720 can be used for storing above-mentioned
It is connected to the network the program of management-control method.
Processor 710 is by the program instruction for calling memory 720 to store, and processor 710 is for the program according to acquisition
Instruction execution:
Monitor whether network connection state changes;
If it is determined that network connection state changes, and determines that network connection state is to open, then according to the net pre-seted
Network permission, it is determined whether opening network connection.
Preferably, monitoring whether network connection state changes, processor 710 is specifically used for:
The corresponding state change broadcast of network connection whether is received by monitoring, to monitor whether network connection state is sent out
Changing.
Preferably, processor 710 is further used for:
After determining that the authentication of management user passes through, if receiving the network legal power setting instruction of the management user,
Then it is arranged according to the network legal power and is instructed, the network legal power of terminal is configured;Or,
According to preset interface, the network legal power of terminal is configured.
Preferably, according to the network legal power pre-seted, it is determined whether opening network connection, processor 710 are specifically used for:
If it is determined that the network legal power pre-seted is to forbid being connected to the network, then network connection is closed;
If it is determined that the network legal power pre-seted is to allow to be connected to the network, then opening network is allowed to connect.
Preferably, network legal power, including a kind of following or any combination: data traffic permission, wifi permission, wifi hotspot
Permission, bluetooth permission.
Based on the above embodiment, in the embodiment of the present invention, a kind of computer readable storage medium is provided, is stored thereon with
Computer program, the computer program realize that the network connection in above-mentioned any means embodiment is managed when being executed by processor
Method.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.
Claims (12)
1. a kind of network connection management-control method characterized by comprising
Monitor whether network connection state changes;
If it is determined that network connection state changes, and determines that network connection state is to open, then according to the network weight pre-seted
Limit, it is determined whether opening network connection.
2. the method as described in claim 1, which is characterized in that monitor whether network connection state changes, specifically include:
The corresponding state change broadcast of network connection whether is received by monitoring, to monitor whether network connection state becomes
Change.
3. the method as described in claim 1, which is characterized in that further comprise:
After determining that the authentication of management user passes through, if receiving the network legal power setting instruction of the management user, root
It is arranged according to the network legal power and instructs, the network legal power of terminal is configured;Or,
According to preset interface, the network legal power of terminal is configured.
4. method as claimed in claim 1,2 or 3, which is characterized in that according to the network legal power pre-seted, it is determined whether open
Network connection, specifically includes:
If it is determined that the network legal power pre-seted is to forbid being connected to the network, then network connection is closed;
If it is determined that the network legal power pre-seted is to allow to be connected to the network, then opening network is allowed to connect.
5. the method as described in claim 1, which is characterized in that network legal power, including a kind of following or any combination: data flow
Measure permission, wifi permission, wifi hotspot permission, bluetooth permission.
6. a kind of network connection control device characterized by comprising
Monitoring unit, for monitoring whether network connection state changes;
Control unit for if it is determined that network connection state changes, and determines that network connection state is to open, then according to pre-
The network legal power of setting, it is determined whether opening network connection.
7. device as claimed in claim 6, which is characterized in that monitor whether network connection state changes, monitoring unit
It is specifically used for:
The corresponding state change broadcast of network connection whether is received by monitoring, to monitor whether network connection state becomes
Change.
8. device as claimed in claim 6, which is characterized in that further comprise priority assignation unit, be used for:
After determining that the authentication of management user passes through, if receiving the network legal power setting instruction of the management user, root
It is arranged according to the network legal power and instructs, the network legal power of terminal is configured;Or,
According to preset interface, the network legal power of terminal is configured.
9. the device as described in claim 6,7 or 8, which is characterized in that according to the network legal power pre-seted, it is determined whether open
Network connection, control unit are specifically used for:
If it is determined that the network legal power pre-seted is to forbid being connected to the network, then network connection is closed;
If it is determined that the network legal power pre-seted is to allow to be connected to the network, then opening network is allowed to connect.
10. device as claimed in claim 6, which is characterized in that network legal power, including a kind of following or any combination: data
Flow permission, wifi permission, wifi hotspot permission, bluetooth permission.
11. a kind of computer equipment characterized by comprising
At least one processor, for storing computer program;
At least one processor is realized when for executing the computer program stored in memory as any in claim 1-5
The step of one the method.
12. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program
It is realized when being executed by processor such as the step of any one of claim 1-5 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711160641.3A CN109819092A (en) | 2017-11-20 | 2017-11-20 | A kind of network connection management-control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711160641.3A CN109819092A (en) | 2017-11-20 | 2017-11-20 | A kind of network connection management-control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109819092A true CN109819092A (en) | 2019-05-28 |
Family
ID=66599136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711160641.3A Pending CN109819092A (en) | 2017-11-20 | 2017-11-20 | A kind of network connection management-control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109819092A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923614A (en) * | 2010-05-13 | 2010-12-22 | 上海理工大学 | Method for realizing function control on mobile terminal |
CN102143271A (en) * | 2011-04-25 | 2011-08-03 | 北京百纳威尔科技有限公司 | Method and system for monitoring mobile terminal to surf internet |
CN104239813A (en) * | 2014-09-15 | 2014-12-24 | 南京邮电大学 | Use control method of mobile terminal application software |
CN104270520A (en) * | 2014-09-26 | 2015-01-07 | 苏州佳世达电通有限公司 | Network management method and system based on mobile terminal |
WO2015117467A1 (en) * | 2014-07-21 | 2015-08-13 | 中兴通讯股份有限公司 | Terminal, method for terminal to connect to wireless fidelity (wifi) hotspot, and storage medium |
CN105119725A (en) * | 2015-07-06 | 2015-12-02 | 成都亿邻通科技有限公司 | Cell phone network control method |
CN106817480A (en) * | 2016-08-31 | 2017-06-09 | 肖戈林 | The system for carrying out management and control to mobile device access right based on the time and using white list mode |
CN107172683A (en) * | 2017-07-06 | 2017-09-15 | 珠海市魅族科技有限公司 | Method for connecting network, device, terminal and computer-readable recording medium |
-
2017
- 2017-11-20 CN CN201711160641.3A patent/CN109819092A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923614A (en) * | 2010-05-13 | 2010-12-22 | 上海理工大学 | Method for realizing function control on mobile terminal |
CN102143271A (en) * | 2011-04-25 | 2011-08-03 | 北京百纳威尔科技有限公司 | Method and system for monitoring mobile terminal to surf internet |
WO2015117467A1 (en) * | 2014-07-21 | 2015-08-13 | 中兴通讯股份有限公司 | Terminal, method for terminal to connect to wireless fidelity (wifi) hotspot, and storage medium |
CN104239813A (en) * | 2014-09-15 | 2014-12-24 | 南京邮电大学 | Use control method of mobile terminal application software |
CN104270520A (en) * | 2014-09-26 | 2015-01-07 | 苏州佳世达电通有限公司 | Network management method and system based on mobile terminal |
CN105119725A (en) * | 2015-07-06 | 2015-12-02 | 成都亿邻通科技有限公司 | Cell phone network control method |
CN106817480A (en) * | 2016-08-31 | 2017-06-09 | 肖戈林 | The system for carrying out management and control to mobile device access right based on the time and using white list mode |
CN107172683A (en) * | 2017-07-06 | 2017-09-15 | 珠海市魅族科技有限公司 | Method for connecting network, device, terminal and computer-readable recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104902430B (en) | The flow control methods and system of intelligent terminal | |
CN103501507B (en) | A kind of method and terminal of automatic switchover wireless signal | |
US11540018B2 (en) | Method, system, and intelligent terminal for distributing random data | |
US20140013100A1 (en) | Establish bidirectional wireless communication between electronic devices using visual codes | |
CN205883299U (en) | Data storage system based on cloud computing | |
CN104684029B (en) | A kind of service quality QoS control method and equipment | |
CN107533596B (en) | Fingerprint identification method and mobile terminal | |
CN105847277A (en) | Service account share management method and system used for third party application | |
CN108304297B (en) | Method and device for remotely controlling student mobile terminal | |
CN110430280A (en) | Account automatic logging method and system, storage medium and cloud desktop server | |
CN105635124B (en) | Flow control methods and device | |
CN105873057A (en) | Pseudo base station protection method and system | |
CN104426960B (en) | A kind of trial method and device of payment applications | |
CN110719583B (en) | Communication method and device | |
CN106162718A (en) | A kind of WiFi network access detection method and device | |
CN105721392B (en) | A kind of method, apparatus and system for recommending application | |
CN106302519A (en) | The method of a kind of internet security management and terminal | |
CN106331060A (en) | Control execution method and system based on WIFI | |
CN108521645A (en) | A kind of auth method, system and control system based on identifying code | |
CN110446197B (en) | Communication control method, device, equipment and storage medium of intelligent equipment | |
CN109819092A (en) | A kind of network connection management-control method and device | |
WO2017083203A1 (en) | Optimizing setup for wireless devices | |
CN109889539A (en) | A kind of intelligent terminal browsing information filtering method based on WIFI | |
CN108924875A (en) | priority setting method, device, user equipment and storage medium | |
CN108683808A (en) | A kind of terminal control method, device, terminal, medium and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |