CN109831577B - Network connection method, terminal, and computer-readable storage medium - Google Patents

Network connection method, terminal, and computer-readable storage medium Download PDF

Info

Publication number
CN109831577B
CN109831577B CN201910014309.9A CN201910014309A CN109831577B CN 109831577 B CN109831577 B CN 109831577B CN 201910014309 A CN201910014309 A CN 201910014309A CN 109831577 B CN109831577 B CN 109831577B
Authority
CN
China
Prior art keywords
screen
network
terminal
network connection
use state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910014309.9A
Other languages
Chinese (zh)
Other versions
CN109831577A (en
Inventor
冯霄建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910014309.9A priority Critical patent/CN109831577B/en
Publication of CN109831577A publication Critical patent/CN109831577A/en
Application granted granted Critical
Publication of CN109831577B publication Critical patent/CN109831577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a network connection method, a terminal and a computer readable storage medium, wherein the terminal comprises a first screen and a second screen and is used for detecting whether the first screen is in a use state; if the first screen is in a use state, disconnecting the private network connection; when a running system or running application of a first screen initiates network connection, connecting a common network; detecting whether the second screen is in a use state; and if the second screen is in a use state, automatically connecting the private network and disconnecting the common network. Different networks can be connected when different screens of the terminal are used, a user can conveniently switch the network for use in different life scenes, and the applicability of the terminal to different life scenes of the user and networking automation are provided.

Description

Network connection method, terminal, and computer-readable storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a network connection method, a terminal and a computer readable storage medium.
Background
Different from a single-display-screen mobile phone, with the development of terminal technology, more mobile terminals are provided with two or more display screens. However, in a case where a plurality of display screens are provided, network connections using the respective screens are the same, and networking cannot be distinguished.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide a network connection method, a terminal and a computer-readable storage medium, so as to solve the technical problem that network connections using different display screens of existing terminals are the same and networking cannot be distinguished.
The technical scheme adopted by the embodiment of the application for solving the technical problems is as follows:
according to an aspect of an embodiment of the present application, there is provided a network connection method applied to a terminal, where the terminal includes a first screen and a second screen, the method including:
detecting whether the first screen is in a use state;
if the first screen is in a use state, disconnecting the private network connection; when a running system or running application of a first screen initiates network connection, connecting a common network;
detecting whether the second screen is in a use state;
and if the second screen is in a use state, automatically connecting the private network and disconnecting the common network.
In one embodiment, before the step of detecting whether the first screen is in the use state, the method further comprises:
acquiring and storing the relevant information of the private network;
and providing a function option of whether to open network differentiated connection, and detecting whether the function option is selected or not to start or close the function.
In one embodiment, the method further comprises:
the related information of the private network comprises a networking name, a password and self-starting time;
detecting whether the terminal time is within the self-starting time, if so, automatically starting a function option for opening network differential connection; if not, closing the function option of opening the network differentiated connection.
In one embodiment, the method further comprises:
receiving and storing the information input of the special contextual model;
providing a scene option whether to enable the special scene mode, acquiring the current scene mode, and detecting whether to select the scene option to start the special scene mode or maintain the current scene mode.
In one embodiment, the method further comprises:
and if the terminal time is within the self-starting time of the private network, automatically starting the private contextual model.
In one embodiment, the method further comprises:
according to the state of the first screen connected with the common network, prompting the connection state of the common network at a preset position of the first screen;
and according to the state of the second screen connected with the private network, prompting the private network connection state at a preset position of the second screen.
In one embodiment, the method further comprises:
timing the use duration of the first screen; or timing the use time of the second screen;
and judging whether the timing duration exceeds a duration threshold, and if so, sending an overtime prompt.
In one embodiment, the method further comprises:
when the first screen is in a use state and is connected with the ordinary network and a networking requirement of a webpage or an application which can be used in a networking mode under the condition of being connected with the private network is received, a prompt of whether to use the second screen and connect the private network is sent;
when the second screen is in a use state and is connected with the private network, and a networking requirement of a webpage or an application which can be used in a networking mode under the common network is received, a prompt of whether the first screen is used or not and the common network is connected is sent.
According to another aspect of the embodiments of the present application, there is provided a terminal, including a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the terminal further comprises a network connection program stored on the memory and executable on the processor, the network connection program when executed by the processor implementing the steps of the network connection method as described above.
According to another aspect of embodiments of the present application, there is provided a computer-readable storage medium having a network connection program stored thereon, the network connection program, when executed by the processor, implementing the steps of the network connection method as described above.
The terminal comprises a first screen and a second screen, and is used for detecting whether the first screen is in a use state; if the first screen is in a use state, disconnecting the private network connection; when a running system or running application of a first screen initiates network connection, connecting a common network; detecting whether the second screen is in a use state; and if the second screen is in a use state, automatically connecting the private network and disconnecting the common network. Different networks can be connected when different screens of the terminal are used, a user can conveniently switch the network for use in different life scenes, and the applicability of the terminal to different life scenes of the user and networking automation are provided.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a network connection method according to a first embodiment of the present application;
fig. 4 is another flowchart illustrating a network connection method according to the first embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to a second embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
A terminal, which may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a PDA (personal digital Assistant), a PMP (Portable Media Player), a navigation device, a wearable terminal, a smart band, a pedometer, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input terminals 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 107 may include other input terminals 1072 in addition to the touch panel 1071. In particular, other input terminals 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
As shown in fig. 3, a first embodiment of the present application provides a network connection method, where the terminal includes a first screen and a second screen. The first screen and the second screen of the terminal can be two screens of a double-screen mobile phone, for example, the front screen is the first screen or called a main screen, and the back screen is the second screen or called an auxiliary screen; of course, the main screen may be referred to as the second screen and the sub-screen may be referred to as the first screen. Or different screens of some curved terminals and flexible mobile phones, even partitions of one screen, which is not limited in the embodiments of the present application.
The method comprises the following steps:
step 31, detecting whether the first screen is in a use state;
step 32, if the first screen is in a use state, disconnecting the private network connection; when the running system or running application of the first screen initiates network connection, connecting the common network.
Step 33, detecting whether the second screen is in a use state;
and step 34, if the second screen is in a use state, automatically connecting the private network and disconnecting the common network.
Specifically, the private network may be a virtual private network VPN or a private hotspot; the common network is 2/3/4/5G network or WIFI or personal hotspot. When some users connect to an office network or use office software by using mobile phones, the users often need to connect to the VPN before using the office network, but after connecting to the VPN, some common websites cannot be accessed, and the prior art method is that the users manually open the VPN software for connection or disconnection. The situation that the VPN is not connected is found only when the office software is initiated and the login and connection are not successful often occurs, and the operation is very inconvenient.
In the embodiment of the application, when the user uses the second screen, the set VPN is automatically connected; for example, when a user of a double-screen mobile phone turns to a first screen for use, the VPN is automatically disconnected, a common network is automatically connected, and the mobile phone terminal of the user can be conveniently switched between an office use scene and a life use scene.
The network connection method is applied to a terminal, the terminal comprises a first screen and a second screen, and whether the first screen is in a use state or not is detected; if the first screen is in a use state, disconnecting the private network connection; when a running system or running application of a first screen initiates network connection, connecting a common network; detecting whether the second screen is in a use state; and if the second screen is in a use state, automatically connecting the private network and disconnecting the common network. Different networks can be connected when different screens of the terminal are used, a user can conveniently switch the network for use in different life scenes, and the applicability of the terminal to different life scenes of the user and networking automation are provided.
In another embodiment, as shown in fig. 4, before the step of detecting whether the first screen is in the use state, the method further includes:
351, acquiring and storing the relevant information of the private network;
step 352, providing a function option whether to open a network differentiated connection, and detecting whether to select the function option to start or close the function.
The related information of the special network needing to be connected is set in advance and stored, and then the information is directly verified when the connection is needed.
Moreover, whether the network is required to be opened for distinguishing connection or not can also provide function options to be selected by a user, so that the method is more humanized and intelligent.
In another embodiment, as shown in fig. 4, the method further comprises:
361, the related information of the private network comprises a networking name, a password and self-starting time;
step 362, detecting whether the terminal time is within the self-starting time, if so, automatically starting a function option for opening network differentiated connection; if not, closing the function option of opening the network differentiated connection.
The self-starting time is set, so that the function use of network connection distinguishing is more convenient.
In another embodiment, as shown in fig. 4, the method further comprises:
step 371, receiving information input of the special contextual model and storing;
step 372, providing the scene option whether to enable the special scene mode, acquiring the current scene mode, and detecting whether to select the scene option to start the special scene mode or maintain the current scene mode.
Based on different requirements of the user on network connection in different life scenes, the contextual model of different life scenes is also provided adaptively.
As described in the above embodiment, the connection to the general network when the first screen is used is based on the daily life requirement, and the current contextual model previously selected by the user may be used; when the second screen is used, the special network is connected, based on office requirements, a customized special contextual model is used, and the special contextual model can be set, recorded and stored in advance by a user. For example, when connecting a private network, such as an office VPN, it is desirable that all calls/messages/media be silent without ringing.
In another embodiment, the method further comprises:
step 373, if the terminal time is within the self-starting time of the private network, automatically enabling the private contextual model.
When the function option of network connection difference is in self-starting time, which indicates that the user is in the time of switching network connection and changing the terminal use requirement, the special contextual model can be automatically started at the moment. Of course, in other embodiments, it may be set that the special contextual model is started only when the second screen is in the use state, and the special network is automatically connected and the general network is disconnected; or the opposite case can be set, that is, if the first screen is in the use state, the private network connection is disconnected and the general network is connected, the private contextual model is started. The embodiments of the present application allow for a variety of forms.
In another embodiment, the method further comprises:
according to the state of the first screen connected with the common network, prompting the connection state of the common network at a preset position of the first screen;
and according to the state of the second screen connected with the private network, prompting the private network connection state at a preset position of the second screen.
No matter use first screen or second screen, all give the suggestion of networking type, convenience of customers uses, promotes user experience. The first screen preset position or the second screen preset position can be the top end of the screen or a position which is suspended in the middle of the screen and close to the left or the right.
In another embodiment, the method further comprises:
step 381, timing the use duration of the first screen; or timing the use time of the second screen;
step 382, determining whether the timing duration exceeds a duration threshold, and if so, sending an overtime prompt.
The long-term use of various terminals with display screens, such as mobile phones, is not good for health. Thus, a user-friendly reminder is given when the duration threshold is exceeded. The scheme can also be set to only remind that the using time of the first screen exceeds the time threshold, or only remind that the using time of the second screen exceeds the time threshold. The definition of the use duration of the first screen may be set as the time of a single continuous lighting, or may define that the screen is turned off within 1 minute/3 minutes and is not regarded as unused, and the use duration is still accumulated, or other current ways, which is not limited in this application.
Or, the internet surfing time is controlled more carefully. Timing the time length of the first screen connected with the common network; or timing the time of the second screen connecting the private network
In another embodiment, the method further comprises:
step 391, when the first screen is in a use state and is connected with the ordinary network and a networking requirement of a webpage or an application which can be used in a networking way under the condition of connecting with the private network is received, sending a prompt whether to use the second screen and connect with the private network;
step 392, when the second screen is in the use state and is connected with the private network, and the networking requirement of the webpage or the application which can be used in a networking way under the connection with the ordinary network is received, sending out a prompt whether to use the first screen and connect with the ordinary network.
If the general network wants to access the content in the private network or the private network wants to access the content in the general network under the condition that the function option for distinguishing the network connection is not set or opened, a prompt for connecting another network can be sent out on the use screen of the terminal, so that better use experience is brought.
According to the network connection method, different networks can be connected when different screens of the terminal are used, and a user can conveniently switch the networks to use in different life scenes; giving a prompt to change the network; prompting the networking state; reminding when the using time is too long; and a special contextual model is also provided in a relevant manner, so that the terminal can have more applicability and more intellectualization to different life scenes of the user.
Second embodiment
As shown in fig. 5, a second embodiment of the present application provides a terminal, which includes a communication bus, a memory 41, a processor 42, and a network connection program stored on the memory 41 and operable on the processor 42; the communication bus is used for realizing connection communication between the processor and the memory;
the network connection program, when executed by the processor 42, is configured to implement the steps of the network connection method as follows:
step 31, detecting whether the first screen is in a use state;
step 32, if the first screen is in a use state, disconnecting the private network connection; when the running system or running application of the first screen initiates network connection, connecting the common network.
Step 33, detecting whether the second screen is in a use state;
and step 34, if the second screen is in a use state, automatically connecting the private network and disconnecting the common network.
The network connection method is applied to the terminal, different networks can be connected when different screens of the terminal are used, a user can conveniently switch the networks to use in different life scenes, and applicability and networking automation of the terminal to the user in different life scenes are provided.
In another embodiment, the method further comprises:
351, acquiring and storing the relevant information of the private network;
step 352, providing a function option whether to open a network differentiated connection, and detecting whether to select the function option to start or close the function.
In another embodiment, the method further comprises:
361, the related information of the private network comprises a networking name, a password and self-starting time;
step 362, detecting whether the terminal time is within the self-starting time, if so, automatically starting a function option for opening network differentiated connection; if not, closing the function option of opening the network differentiated connection.
In another embodiment, the method further comprises:
step 371, receiving information input of the special contextual model and storing;
step 372, providing the scene option whether to enable the special scene mode, acquiring the current scene mode, and detecting whether to select the scene option to start the special scene mode or maintain the current scene mode.
In another embodiment, the method further comprises:
step 373, if the terminal time is within the self-starting time of the private network, automatically enabling the private contextual model.
In another embodiment, the method further comprises:
according to the state of the first screen connected with the common network, prompting the connection state of the common network at a preset position of the first screen;
and according to the state of the second screen connected with the private network, prompting the private network connection state at a preset position of the second screen.
In another embodiment, the method further comprises:
step 381, timing the use duration of the first screen; or timing the use time of the second screen;
step 382, determining whether the timing duration exceeds a duration threshold, and if so, sending an overtime prompt.
In another embodiment, the method further comprises:
step 391, when the first screen is in a use state and is connected with the ordinary network and a networking requirement of a webpage or an application which can be used in a networking way under the condition of connecting with the private network is received, sending a prompt whether to use the second screen and connect with the private network;
step 392, when the second screen is in the use state and is connected with the private network, and the networking requirement of the webpage or the application which can be used in a networking way under the connection with the ordinary network is received, sending out a prompt whether to use the first screen and connect with the ordinary network.
It should be noted that the terminal of this embodiment and the network connection method of the first embodiment are based on the same inventive concept, and the specific implementation process thereof is detailed in the method embodiment, and the technical features in the method embodiment are all correspondingly applied in this embodiment, which is not described in detail herein.
According to the network connection method, different networks can be connected when different screens of the terminal are used, and a user can conveniently switch the networks to use in different life scenes; giving a prompt to change the network; prompting the networking state; reminding when the using time is too long; and a special contextual model is also provided in a relevant manner, so that the terminal can have more applicability and more intellectualization to different life scenes of the user.
Third embodiment
A third embodiment of the present application provides a computer-readable storage medium, which stores a network connection program, and the network connection program is used for implementing the steps of the network connection method according to the first embodiment when being executed by a processor.
It should be noted that the computer-readable storage medium of this embodiment belongs to the same concept as the method of the first embodiment, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are all correspondingly applicable in this embodiment, which is not described herein again.
The computer-readable storage medium of the embodiment of the application detects whether a first screen is in a use state; if the first screen is in a use state, disconnecting the private network connection; when a running system or running application of a first screen initiates network connection, connecting a common network; detecting whether the second screen is in a use state; and if the second screen is in a use state, automatically connecting the private network and disconnecting the common network. Different networks can be connected when different screens of the terminal are used, a user can conveniently switch the network for use in different life scenes, and the applicability of the terminal to different life scenes of the user and networking automation are provided.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and are not intended to limit the scope of the claims of the application accordingly. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present application are intended to be within the scope of the claims of the present application.

Claims (9)

1. A network connection method is applied to a terminal, the terminal comprises a first screen and a second screen, and the method is characterized by comprising the following steps:
detecting whether the first screen is in a use state;
if the first screen is in a use state, disconnecting the private network connection; when a running system or running application of a first screen initiates network connection, connecting a common network;
detecting whether the second screen is in a use state;
if the second screen is in a use state, automatically connecting the special network and disconnecting the common network;
wherein, before the step of detecting whether the first screen is in the use state, the method further comprises: acquiring and storing the relevant information of the private network;
the method further comprises the following steps:
the related information of the private network comprises a networking name, a password and self-starting time;
detecting whether the terminal time is within the self-starting time, if so, automatically starting a function option for opening network differential connection; if not, closing the function option of opening the network differentiated connection.
2. The network connection method of claim 1, wherein the step of detecting whether the first screen is in use is preceded by the method further comprising:
and providing a function option of whether to open network differentiated connection, and detecting whether the function option is selected or not to start or close the function.
3. The network connection method of claim 2, wherein the method further comprises:
receiving and storing the information input of the special contextual model;
providing a scene option whether to enable the special scene mode, acquiring the current scene mode, and detecting whether to select the scene option to start the special scene mode or maintain the current scene mode.
4. The network connection method of claim 3, wherein the method further comprises:
and if the terminal time is within the self-starting time of the private network, automatically starting the private contextual model.
5. The network connection method of claim 1, wherein the method further comprises:
according to the state of the first screen connected with the common network, prompting the connection state of the common network at a preset position of the first screen;
and according to the state of the second screen connected with the private network, prompting the private network connection state at a preset position of the second screen.
6. The network connection method of claim 1, wherein the method further comprises:
timing the use duration of the first screen; or timing the use time of the second screen;
and judging whether the timing duration exceeds a duration threshold, and if so, sending an overtime prompt.
7. The network connection method of claim 1, wherein the method further comprises:
when the first screen is in a use state and is connected with the ordinary network and a networking requirement of a webpage or an application which can be used in a networking mode under the condition of being connected with the private network is received, a prompt of whether to use the second screen and connect the private network is sent;
when the second screen is in a use state and is connected with the private network, and a networking requirement of a webpage or an application which can be used in a networking mode under the common network is received, a prompt of whether the first screen is used or not and the common network is connected is sent.
8. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the terminal further comprises a network connectivity program stored on the memory and executable on the processor, the network connectivity program when executed by the processor implementing the steps of the network connectivity method according to any of claims 1 to 7.
9. A computer-readable storage medium, having a network connection program stored thereon, which when executed by a processor, performs the steps of the network connection method of any one of claims 1 to 7.
CN201910014309.9A 2019-01-08 2019-01-08 Network connection method, terminal, and computer-readable storage medium Active CN109831577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910014309.9A CN109831577B (en) 2019-01-08 2019-01-08 Network connection method, terminal, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910014309.9A CN109831577B (en) 2019-01-08 2019-01-08 Network connection method, terminal, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109831577A CN109831577A (en) 2019-05-31
CN109831577B true CN109831577B (en) 2021-12-17

Family

ID=66860110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910014309.9A Active CN109831577B (en) 2019-01-08 2019-01-08 Network connection method, terminal, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109831577B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493892B (en) * 2019-08-12 2021-07-16 RealMe重庆移动通信有限公司 Network connection method and device, storage medium and communication terminal
CN111866281A (en) * 2020-07-24 2020-10-30 刘雅斯 Intelligent folding screen mobile phone and program network application method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557291A (en) * 2016-10-28 2017-04-05 努比亚技术有限公司 Split screen processing method and processing device
WO2017071361A1 (en) * 2015-10-29 2017-05-04 广州视睿电子科技有限公司 Method and device for accessing network
CN107241717A (en) * 2017-08-11 2017-10-10 宇龙计算机通信科技(深圳)有限公司 Method for switching network, system, electronic equipment and computer-readable recording medium
CN108833711A (en) * 2018-06-26 2018-11-16 努比亚技术有限公司 A kind of network environment regulation method, equipment and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874175A (en) * 2012-12-18 2014-06-18 中国移动通信集团公司 Method, device and equipment for controlling network connection of mobile terminal and mobile terminal
US9693276B1 (en) * 2013-11-25 2017-06-27 Google Inc. System and method for intelligent network connection selection
CN109151954A (en) * 2018-10-16 2019-01-04 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its double card method for switching network and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071361A1 (en) * 2015-10-29 2017-05-04 广州视睿电子科技有限公司 Method and device for accessing network
CN106557291A (en) * 2016-10-28 2017-04-05 努比亚技术有限公司 Split screen processing method and processing device
CN107241717A (en) * 2017-08-11 2017-10-10 宇龙计算机通信科技(深圳)有限公司 Method for switching network, system, electronic equipment and computer-readable recording medium
CN108833711A (en) * 2018-06-26 2018-11-16 努比亚技术有限公司 A kind of network environment regulation method, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109831577A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN108834089B (en) SIM card switching method, mobile terminal and computer readable storage medium
CN112394896B (en) Reverse screen-throwing frame rate control method, device and computer readable storage medium
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN110401870B (en) Method for adjusting screen recording frame rate, terminal and computer readable storage medium
CN109088997B (en) Game audio control method, terminal and computer readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN109246315B (en) Incoming call processing method in online game process, mobile terminal and readable storage medium
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN112689191A (en) Screen projection control method, terminal and computer readable storage medium
CN112631535A (en) Screen projection reverse control method and device, mobile terminal and storage medium
CN108156325B (en) Double-sided screen incoming call control method and device and computer readable storage medium
CN107682541B (en) Audio control method for screen projection, mobile terminal and storage medium
CN109889651B (en) Notification message processing method, terminal and computer readable storage medium
CN109831577B (en) Network connection method, terminal, and computer-readable storage medium
CN108449806B (en) Information processing method, terminal and readable storage medium
CN107608629B (en) Data migration method, terminal and computer readable storage medium
CN110392163B (en) Screen-off control method, mobile terminal and computer-readable storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN109561217B (en) Terminal incoming call answering method and device, mobile terminal and storage medium
CN107678622B (en) Application icon display method, terminal and storage medium
CN108076230B (en) Call volume adjusting method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant