CN115297530B - Network connection method and device - Google Patents

Network connection method and device Download PDF

Info

Publication number
CN115297530B
CN115297530B CN202211186293.8A CN202211186293A CN115297530B CN 115297530 B CN115297530 B CN 115297530B CN 202211186293 A CN202211186293 A CN 202211186293A CN 115297530 B CN115297530 B CN 115297530B
Authority
CN
China
Prior art keywords
terminal device
network
scene
terminal
equipment
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
CN202211186293.8A
Other languages
Chinese (zh)
Other versions
CN115297530A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211186293.8A priority Critical patent/CN115297530B/en
Publication of CN115297530A publication Critical patent/CN115297530A/en
Application granted granted Critical
Publication of CN115297530B publication Critical patent/CN115297530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a network connection method and a network connection device, which can improve the efficiency and flexibility of network connection while reducing the power consumption of terminal equipment. The method is applied to a system comprising a first terminal device and a second terminal device, wherein the first terminal device and the second terminal device both have a hotspot sharing function, and a user logs in the same account on the first terminal device and the second terminal device, and the method comprises the following steps: under the condition that the scene where the first terminal device is located is changed, the first terminal device determines that the changed target scene is a family scene, an office scene or other scenes; the method comprises the steps that a first terminal device determines a network role of the first terminal device and a network role of a second terminal device based on a target scene, wherein the network roles are master devices or slave devices; the first terminal device is connected with the network by combining the target scene, the network role of the first terminal device and the network role of the second terminal device.

Description

Network connection method and device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a network connection method and apparatus.
Background
In order to facilitate life and work, users often hold a plurality of terminal devices, such as mobile phones, tablet computers, desktop computers, and the like. Network hotspots can be shared among a plurality of terminal devices so as to meet user requirements under different scenes. One terminal device of the plurality of terminal devices can be used as a master device to start a network hotspot, and the other terminal device can be used as a network hotspot of a slave device connected with the master device.
At present, once a terminal device is connected to a network hotspot of another terminal device as a master device as a slave device, even if a scene changes, the network connection will not change unless a user manually closes the network hotspot of the master device or cuts off the connection of the slave device to the network hotspot of the master device. Scenes in which a user uses a terminal device may be generally classified into a home scene, an office scene, and other scenes, and the other scenes are scenes other than the home scene and the office scene. Taking a notebook computer and a mobile phone as examples, in other scenes, the mobile phone can use a mobile network to surf the internet and be used as a master device to start a network hotspot, and the notebook computer is used as a slave device to be connected to the network hotspot of the mobile phone. When the other scenes are switched to office scenes, wiFi signal coverage of a company exists, but the notebook computer is still connected with the network hotspot of the mobile phone, and in order to reduce power consumption of the mobile phone, a user needs to manually close the network hotspot of the mobile phone and connect the network of the notebook computer to the WiFi network of the company.
In view of the foregoing, it is desirable to provide a network connection method that can reduce power consumption of a terminal device and improve efficiency and flexibility of network connection.
Disclosure of Invention
The application provides a network connection method and a network connection device, which can improve the efficiency and flexibility of network connection while reducing the power consumption of terminal equipment.
In a first aspect, a network connection method is provided, which is applied to a system including a first terminal device and a second terminal device, where the first terminal device and the second terminal device both have a hotspot sharing function, and a user logs in the same account on the first terminal device and the second terminal device, and the method includes: under the condition that the scene where the first terminal device is located is changed, the first terminal device determines that the changed target scene is a family scene, an office scene or other scenes, and the other scenes are scenes except the family scene and the office scene; the first terminal device determines a network role of the first terminal device and a network role of the second terminal device based on the target scene, wherein the network roles are master devices or slave devices; and the first terminal equipment is connected with the network by combining the target scene, the network role of the first terminal equipment and the network role of the second terminal equipment.
According to the network connection method, when the scene where the first terminal device is located changes, the first terminal device can determine the network role of the first terminal device according to the changed scene, and then the scene to be connected with the first terminal device is determined to be a WiFi network, a mobile network or a network hotspot according to the changed scene, namely the changed scene is in network connection with the role of the terminal device.
It should be understood that the hotspot sharing function refers to a network hotspot where the terminal device can open a network hotspot and can also connect other terminal devices. The account number refers to an account used for registering the terminal device, and after the user registers the account, the account number corresponding to the account can be logged in the terminal device. The same user can log in the same account in a plurality of terminal devices, the terminal devices are trusted devices, and the trusted devices can share data information, such as account numbers and passwords of network hotspots. The home scene and the office scene are defined according to the living place and the working place of the user, for example, when the first terminal device and the second terminal device are located in the company where the user works, the first terminal device and the second terminal device can be considered to be currently in the office scene, and when the first terminal device and the second terminal device are located in the home of the user, the home of a friend, and other indoor entertainment places, the first terminal device and the second terminal device can be considered to be currently in the home scene. Other scenes refer to scenes other than home scenes and office scenes, including outdoor scenes.
In some implementation manners of the first aspect, the first terminal device is an office device, the second terminal device is a private device, the target scene is a home scene, and both the first terminal device and the second terminal device are master devices; the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, including: and under the condition that the wireless fidelity WiFi signal exists in the target scene, the first terminal equipment is connected with the WiFi network in the target scene.
It should be understood that before the scene where the first terminal device is located changes, the first terminal device may be connected as a slave device to a network hotspot of the second terminal device, or the first terminal device may be used as a master device to provide the network hotspot for the second terminal device. When the scene where the first terminal device is located changes into a family scene, the first terminal device and the second terminal device can both be connected with the WiFi network, so that the network connection mode of the first terminal device can be automatically switched, and the power consumption of the main device is reduced.
In some implementation manners of the first aspect, the first terminal device is a private device, the second terminal device is an office device, the target scene is a home scene, and both the first terminal device and the second terminal device are master devices;
the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, and includes: and under the condition that the WiFi signal exists in the target scene, the first terminal equipment is connected with the WiFi network in the target scene.
It should be understood that in a home scenario, both the private device and the office device may connect to a WiFi network existing in the home scenario, and there is no terminal device that needs to connect to a network hotspot. Therefore, the first terminal device and the second terminal device both act as master devices.
In some implementation manners of the first aspect, the first terminal device is an office device, the second terminal device is a private device, the target scene is another scene, the first terminal device is a slave device, and the second terminal device is a master device; the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, including: and under the condition that the second terminal equipment opens the network hotspot, the first terminal equipment is connected with the network hotspot.
It should be appreciated that in other scenarios, the private device and the office device cannot connect to the WiFi network, so that the private device can use the mobile network, while the private device serves as a master device to turn on the network hotspot, and the office device serves as a slave device to connect to the network hotspot of the master device. Therefore, when the second terminal device opens the network hotspot, the first terminal device serves as a slave device to connect to the network hotspot.
In some implementation manners of the first aspect, the first terminal device is a private device, the second terminal device is an office device, the target scene is an office scene, the first terminal device is a slave device, and the second terminal device is a master device; the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, and includes: and under the condition that the second terminal equipment opens the network hotspot, the first terminal equipment is connected with the network hotspot.
It should be understood that in an office scenario, the private device is a slave device, and the office device is a master device, so that the network role of the first terminal device is the slave device, and the second terminal device is the master device. The second terminal device is connected with the WiFi network in the office scene, and a network hotspot is opened to be connected with the first terminal device.
In certain implementations of the first aspect, the method further comprises: under the condition that the network hotspot is not opened by the second terminal device, the first terminal device sends a wakeup message to the second terminal device, wherein the wakeup message is used for informing the second terminal device of opening the network hotspot; the first terminal equipment receives network hotspot information from the second terminal equipment, wherein the network hotspot information comprises account information and password information of the network hotspot; the first terminal device is connected with the network hotspot, and comprises: and the first terminal equipment is connected with the network hotspot according to the network hotspot information.
It should be understood that the network role of the first terminal device is a slave device, the network role of the second terminal device is a master device, and when the master device does not turn on the network hotspot and the slave device has a network use requirement, the slave device first sends a wake-up message for notifying the master device to turn on the network hotspot to the master device, for example, when the first terminal device is turned on, the first terminal device considers that the first terminal device has the network use requirement, and then sends the wake-up message to the second terminal device. And the second terminal equipment determines that the first terminal equipment has the network hotspot connection requirement according to the awakening message, then the second terminal equipment starts the network hotspot and sends network hotspot information to the first terminal equipment.
In certain implementations of the first aspect, after the first terminal device connects to the network hotspot, the method further comprises: and under the condition that the first terminal device is in the dormant state, the first terminal device sends a dormant notification message to the second terminal device, wherein the dormant notification message is used for notifying the second terminal device that the first terminal device is in the dormant state.
It should be understood that when the first terminal device has a network use requirement as a slave device, the second terminal device serves as a master device to start a network hotspot, and the first terminal device is connected with the network hotspot of the second terminal device. When the first terminal device is in a dormant state, that is, the first terminal device does not have a network use requirement, in order to reduce the power consumption of the second terminal device, the first terminal device sends a dormancy notification message for notifying the second terminal device to close the hotspot to the second terminal device, which is beneficial to reducing the power consumption of the second terminal device.
In some implementation manners of the first aspect, the first terminal device is a private device, the second terminal device is an office device, the target scene is another scene, the first terminal device is a master device, and the second terminal device is a slave device; the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, including: under the condition that a mobile network signal exists in the target scene, the first terminal device is connected with a mobile network in the target scene; the method further comprises the following steps: and the first terminal equipment starts a network hotspot.
It should be understood that the first terminal device is a master device, the second terminal device cannot connect to the WiFi network in other scenarios, and meanwhile, the mobile network traffic of the second terminal device is little or no. Therefore, the first terminal device opens the network hotspot for the second terminal device to connect.
In some implementation manners of the first aspect, the first terminal device is an office device, the second terminal device is a private device, the target scene is an office scene, the first terminal device is a master device, and the second terminal device is a slave device; the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, including: under the condition that a WiFi signal exists in the target scene, the first terminal equipment is connected with a WiFi network in the target scene; the method further comprises the following steps: and the first terminal equipment opens a network hotspot.
It should be understood that in an office scenario, an office device may be connected to a WiFi network and a private device may not be connected. At this time, the office device serves as a master device, and the private device serves as a slave device, and therefore, the first terminal device serves as a master device to connect to the WiFi network. Meanwhile, the first terminal device opens the network hotspot so that the second terminal device is connected with the network hotspot.
In certain implementations of the first aspect, before the first terminal device opens a network hotspot, the method further includes: the first terminal device receives a wake-up message from the second terminal device, wherein the wake-up message is used for informing the first terminal device of starting the network hotspot; the first terminal device opens a network hotspot, including: and the first terminal equipment opens the network hotspot based on the awakening message.
It should be understood that when the network hotspot of the first terminal device is in a closed state and the second terminal device needs to connect to the network hotspot of the first terminal device, a wake-up message for notifying the first terminal device of starting the network hotspot needs to be sent to the first terminal device. And after receiving the awakening message, the first terminal equipment starts the network hotspot.
In certain implementations of the first aspect, after the first terminal device opens a network hotspot, the method further includes: the first terminal device receives a dormancy notification message from the second terminal device, wherein the dormancy notification message is used for notifying the first terminal device that the second terminal device is in a dormant state; and the first terminal equipment closes the network hotspot based on the dormancy notification message.
It should be understood that, when the first terminal device receives the sleep notification message of the second terminal device, which indicates that the second terminal device does not need to connect to the network hotspot of the first terminal device, at this time, the first terminal device closes the network hotspot, which is beneficial to reducing power consumption of the first terminal device.
In some implementation manners of the first aspect, the determining, by the first terminal device, that the changed target scene is a home scene, another scene, or an office scene includes: and the first terminal equipment determines that the target scene is a family scene, other scenes or an office scene according to the geographic position of the first terminal equipment and/or the WiFi network identifier of at least one WiFi network to be connected in the WiFi network list of the first terminal equipment.
It should be understood that the WiFi network identification may refer to the name of the WiFi network. Illustratively, the WiFi network list includes names of at least one available WiFi network of the first terminal device, the available WiFi network refers to a WiFi network where a WiFi signal can cover a location of the first terminal device. Among the available WiFi networks, the WiFi network to which the first terminal device can automatically connect is referred to as a WiFi network to be connected. The first terminal device stores the password and the name of the WiFi network to be connected in advance, and when the first terminal device moves to the signal coverage range of the WiFi network to be connected, the first terminal device can automatically connect the WiFi network to be connected.
In a second aspect, a network connection device is provided for performing the method in any one of the possible implementations of the first aspect. In particular, the apparatus comprises means for performing the method of any one of the possible implementations of the first aspect described above.
In a third aspect, the present application provides a network connection device, comprising a processor coupled to a memory and configured to execute instructions in the memory to implement the method in any one of the possible implementations of the first aspect. Optionally, the apparatus further comprises a memory. Optionally, the apparatus further comprises a communication interface, the processor being coupled to the communication interface.
In one implementation, the apparatus is a terminal device. When the apparatus is a terminal device, the communication interface may be a transceiver, or an input/output interface.
In another implementation, the apparatus is a chip configured in a terminal device. When the apparatus is a chip configured in a terminal device, the communication interface may be an input/output interface.
In a fourth aspect, a processor is provided, comprising: input circuit, output circuit and processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor performs the method in any one of the possible implementations of the first aspect.
In a specific implementation flow, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the signal output by the output circuit may be output to and transmitted by a transmitter, for example and without limitation, and the input circuit and the output circuit may be the same circuit that functions as the input circuit and the output circuit, respectively, at different times. The embodiment of the present application does not limit the specific implementation manner of the processor and various circuits.
In a fifth aspect, a processing apparatus is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory, and may receive signals via the receiver and transmit signals via the transmitter to perform the method of any one of the possible implementations of the first aspect.
Optionally, the number of the processors is one or more, and the number of the memories is one or more.
Alternatively, the memory may be integral to the processor or provided separately from the processor.
In a specific implementation flow, the memory may be a non-transient memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips, and the type of the memory and the arrangement manner of the memory and the processor are not limited in this application.
It is to be understood that the related data interaction process, for example, the process of sending the indication information may be a process of outputting the indication information from the processor, and the process of receiving the capability information may be a process of receiving the input capability information by the processor. In particular, the data output by the processing may be output to a transmitter and the input data received by the processor may be from a receiver. The transmitter and receiver may be collectively referred to as a transceiver, among others.
The processing device in the fifth aspect may be a chip, the processor may be implemented by hardware or software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated with the processor, located external to the processor, or stand-alone.
In a sixth aspect, there is provided a computer program product comprising: computer program (also called code, or instructions), which when executed, causes a computer to perform the method of any of the possible implementations of the first aspect described above.
In a seventh aspect, a computer-readable storage medium is provided, which stores a computer program (which may also be referred to as code or instructions) that, when executed on a computer, causes the computer to perform the method in any one of the above-mentioned possible implementation manners of the first aspect.
Drawings
Fig. 1 is a schematic diagram of an application scenario according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another application scenario according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another application scenario of an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 5 is a block diagram of a software structure of a terminal device according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a network connection method according to an embodiment of the present application;
fig. 7 is a flowchart illustrating another network connection method according to an embodiment of the present application;
fig. 8 is a schematic diagram of an interaction process between a slave device and a master device according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a further network connection method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a network connection device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another network connection device according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
In the embodiments of the present application, the words "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. For example, the first numerical value and the second numerical value are only used for distinguishing different numerical values, and the sequence order thereof is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "such as" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c can be single or multiple.
The terminal device in the embodiment of the present application may also be referred to as: user Equipment (UE), mobile Station (MS), mobile Terminal (MT), access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent, or user device, etc.
The terminal device may be a device providing voice/data connectivity to a user, e.g. a handheld device, a vehicle mounted device, etc. with wireless connectivity. Currently, some examples of terminal devices include: a mobile phone (mobile phone), a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device, a Virtual Reality (VR) device, an Augmented Reality (AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (smart), a wireless terminal in city (smart city), a wireless terminal in smart home (smart home), a cellular phone, a cordless phone, a session initiation protocol (session initiation protocol), SIP) phone, wireless Local Loop (WLL) station, personal Digital Assistant (PDA), handheld device with wireless communication function, computing device or other processing device connected to wireless modem, vehicle mounted device, wearable device, terminal device in 5G network or terminal device in future evolved Public Land Mobile Network (PLMN), etc., which is not limited by this application.
By way of example and not limitation, in the present application, the terminal device may be a terminal device in an internet of things (IoT) system. The internet of things is an important component of future information technology development, and is mainly technically characterized in that articles are connected with a network through a communication technology, so that an intelligent network of man-machine interconnection and article interconnection is realized. Illustratively, the terminal device in the embodiments of the present application may be a wearable device. Wearable equipment can also be called wearable intelligent equipment, is the general term of applying wearable technique to carry out intelligent design, develop the equipment that can dress to daily wearing, like glasses, gloves, wrist-watch, dress and shoes etc.. A wearable device is a portable device that can be worn directly on the body, or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize powerful functions through software support, data interaction and cloud interaction. The generalized wearable smart device includes full functionality, large size, and can implement full or partial functionality without relying on a smart phone, such as: smart watches or smart glasses and the like, and only focus on a certain type of application functions, and need to be used in cooperation with other devices such as smart phones, such as various smart bracelets for physical sign monitoring, smart jewelry and the like.
By way of example and not limitation, in the embodiment of the present application, the terminal device may also be a terminal device in Machine Type Communication (MTC). The terminal device may be an in-vehicle module, an in-vehicle component, an in-vehicle chip, an in-vehicle unit, or the like, which is built in the vehicle as one or more components or units, and the vehicle may implement the method provided by the present application by the built-in-vehicle module, the in-vehicle component, the in-vehicle chip, or the in-vehicle unit. Therefore, the embodiments of the present application may also be applied to vehicle networking, such as vehicle to outside (V2X), long term evolution (LTE-V) technology for vehicle to vehicle communication, vehicle to vehicle (V2V) technology, and the like.
The network device related to the present application may be a device that communicates with a terminal device, the network device may also be referred to as an access network device or a radio access network device, and it may be a Transmission Reception Point (TRP), an evolved NodeB (eNB or eNodeB) in an LTE system, a home NodeB (e.g., home NodeB, HNB), a baseband unit (base band unit, BBU), a wireless controller in a Cloud Radio Access Network (CRAN) scenario, or the network device may be a relay station, an access point, a vehicle-mounted device, a wearable device, a network device in a 5G network, or a network device in a future evolved PLMN network, or an Access Point (AP) in a WLAN, or a gbb in an NR system, and the network device may also be a city NodeB, a micro base station, a pico base station, a femto base station, and the like.
Currently, in order to properly arrange work and life, one user generally needs a plurality of terminal devices. The plurality of terminal devices may include private devices for entertainment and living needs, such as cell phones, smart bands, tablets, and the like. The plurality of terminal devices may also include office equipment for work needs, such as desktop computers, notebook computers, and the like. In order to enable a plurality of terminal devices of the same user to be trusted devices with each other, the plurality of terminal devices may log in the same account. A plurality of terminal devices of a user may each have a hotspot sharing function, where a terminal device providing a network hotspot may be referred to as a master device, and a terminal device connected to the network hotspot of the master device may be referred to as a slave device.
In order to facilitate understanding of the present application, an application scenario related to the embodiment of the present application is described below with reference to fig. 1 to 3.
Fig. 1 is a schematic diagram of an application scenario 100 according to an embodiment of the present application. As shown in fig. 1, in an application scenario 100, a terminal device 101 and a terminal device 103 log in the same account and both have a hotspot sharing function. Terminal device 101 may connect to the WiFi signal through network device 102, and terminal device 103 may connect to the network hotspot of terminal device 101.
The application scenario 100 may be a scenario in which a user works in a company (referred to as an office scenario for short), the terminal device 101 may be an office device of the user, such as a laptop, and the terminal device 103 may be a private device of the user, such as a mobile phone. In the application scenario 100, the WiFi signal connected to the terminal device 101 may be a WiFi signal of a company, and the office device of the user has the right to connect the WiFi signal, and the private device cannot connect the WiFi signal. The office equipment of the user can open the network hotspot, and the private equipment is connected with the network hotspot of the office equipment.
Fig. 2 is a schematic diagram of another application scenario 200 according to an embodiment of the present application. As shown in fig. 2, in an application scenario 200, a terminal device 201 and a terminal device 203 log in the same account and both have a hotspot sharing function. The terminal device 201 has a mobile network signal, and can access the internet through the network device 202 by using a mobile network, and the terminal device 203 can connect to the network hotspot of the terminal device 201.
The application scenario 200 may be a scenario (belonging to another scenario of the embodiment of the present application) in which the user is in outdoor activities without WiFi signals, the terminal device 201 may be a private device of the user, such as a mobile phone, and the terminal device 203 may be an office device of the user, such as a laptop. In the application scenario 200, the user's private device may be connected to a mobile network and the user's office device does not have a mobile network signal. The private equipment of the user can open the network hotspot, and the office equipment is connected with the network hotspot of the private equipment.
Fig. 3 is a schematic diagram of another application scenario 300 according to an embodiment of the present application. As shown in fig. 3, in an application scenario 300, a terminal device 302 and a terminal device 303 log in the same account and both have a hotspot sharing function. The terminal device 302 may connect to the WiFi signal through the network device 301, and the terminal device 303 may also connect to the WiFi signal through the network device 301.
The application scenario 300 may be a scenario in which a user is in home entertainment (referred to as a home scenario for short), the terminal device 302 may be an office device of the user, such as a laptop, and the terminal device 303 may be a private device of the user, such as a mobile phone. In the application scenario 300, both the user's office equipment and private equipment have the authority to connect to the home WiFi signal.
It should be understood that fig. 1 to 3 are only examples of application scenarios of the embodiments of the present application, and the embodiments of the present application can be applied to, but are not limited to, the application scenarios described above. Also, the product forms and the numbers of the terminal devices and the network devices shown in fig. 1 to 3 are only exemplary, and more or less numbers are within the scope of protection of the present application, and the present application does not specifically limit the product forms of the terminal devices and the network devices.
In order to better understand the terminal device in the embodiment of the present application, the following describes in detail a hardware structure of the terminal device in the embodiment of the present application with reference to fig. 4.
Fig. 4 is a schematic structural diagram of a terminal device 400 according to an embodiment of the present application. As shown in fig. 4, the terminal device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a Universal Serial Bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, keys 490, a motor 491, an indicator 492, a camera 493, a display screen 494, a Subscriber Identification Module (SIM) card interface 495, and the like. The sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the terminal device 400. In other embodiments of the present application, terminal device 400 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 410 may include one or more processing units, such as: the processor 410 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 410. If the processor 410 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 410, thereby increasing the efficiency of the system.
In some embodiments, processor 410 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bidirectional synchronous serial bus comprising a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 410 may include multiple sets of I2C buses. The processor 410 may be coupled to the touch sensor 480K, the charger, the flash, the camera 493, and the like through different I2C bus interfaces. For example: the processor 410 may be coupled to the touch sensor 480K through an I2C interface, so that the processor 410 and the touch sensor 480K communicate through an I2C bus interface to implement a touch function of the terminal device 400.
The I2S interface may be used for audio communication. In some embodiments, processor 410 may include multiple sets of I2S buses. The processor 410 may be coupled to the audio module 470 via an I2S bus to enable communication between the processor 410 and the audio module 470. In some embodiments, the audio module 470 can transmit the audio signal to the wireless communication module 460 through the I2S interface, so as to receive the call through the bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 470 and the wireless communication module 460 may be coupled by a PCM bus interface. In some embodiments, the audio module 470 may also transmit audio signals to the wireless communication module 460 through the PCM interface, so as to receive phone calls through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 410 with the wireless communication module 460. For example: the processor 410 communicates with the bluetooth module in the wireless communication module 460 through the UART interface to implement the bluetooth function. In some embodiments, the audio module 470 may transmit the audio signal to the wireless communication module 460 through the UART interface, so as to realize the function of playing music through the bluetooth headset.
The MIPI interface may be used to connect the processor 410 with peripheral devices such as the display screen 494 and the camera 493. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 410 and camera 493 communicate over a CSI interface to implement the capture function of terminal device 400. The processor 410 and the display screen 494 communicate through the DSI interface to implement the display function of the terminal device 400.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect processor 410 with camera 493, display screen 494, wireless communication module 460, audio module 470, sensor module 480, and the like. The GPIO interface may also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, and the like.
The USB interface 430 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 430 may be used to connect a charger to charge the terminal device 400, and may also be used to transmit data between the terminal device 400 and peripheral devices. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other terminal devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not constitute a limitation on the structure of the terminal device 400. In other embodiments of the present application, the terminal device 400 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 440 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 may receive charging input from a wired charger via the USB interface 430. In some wireless charging embodiments, the charging management module 440 may receive a wireless charging input through a wireless charging coil of the terminal device 400. While the charging management module 440 charges the battery 442, the power management module 441 may also supply power to the terminal device.
The power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and/or the charging management module 440 and provides power to the processor 410, the internal memory 421, the display screen 494, the camera 493, the wireless communication module 460, and the like. The power management module 441 may also be used to monitor parameters such as battery capacity, battery cycle number, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 441 may be disposed in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 may be disposed in the same device.
The wireless communication function of the terminal device 400 may be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal device 400 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 450 may provide a solution including 2G/3G/4G/5G wireless communication and the like applied on the terminal device 400. The mobile communication module 450 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 450 can receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 450 may be disposed in the processor 410. In some embodiments, at least some of the functional blocks of the mobile communication module 450 may be provided in the same device as at least some of the blocks of the processor 410.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 470A, the receiver 470B, etc.) or displays images or video through the display screen 494. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 410, and may be located in the same device as the mobile communication module 450 or other functional modules.
The wireless communication module 460 may provide solutions for wireless communication applied to the terminal device 400, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 460 may be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 410. The wireless communication module 460 may also receive a signal to be transmitted from the processor 410, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of terminal device 400 is coupled to mobile communication module 450 and antenna 2 is coupled to wireless communication module 460, such that terminal device 400 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), time division code division multiple access (time-division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The terminal device 400 implements a display function through the GPU, the display screen 494, and the application processor, etc. The GPU is an image processing microprocessor connected to a display screen 494 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 494 is used to display images, videos, and the like. The display screen 494 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-o led, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the terminal device 400 may include 1 or N display screens 494, N being a positive integer greater than 1.
The terminal device 400 may implement a shooting function through the ISP, the camera 493, the video codec, the GPU, the display screen 494, the application processor, and the like.
The ISP is used to process the data fed back by the camera 493. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 493.
The camera 493 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV and other formats. In some embodiments, the terminal device 400 may include 1 or N cameras 493, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the terminal device 400 selects a frequency point, the digital signal processor is used to perform fourier transform or the like on the frequency point energy.
Video codecs are used to compress or decompress digital video. The terminal device 400 may support one or more video codecs. In this way, the terminal device 400 can play or record video in a plurality of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the terminal device 400, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 420 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the terminal device 400. The external memory card communicates with the processor 410 through the external memory interface 420 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 421 may be used to store computer-executable program code, which includes instructions. The internal memory 421 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal device 400, and the like. In addition, the internal memory 421 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 410 executes various functional applications of the terminal device 400 and data processing by executing instructions stored in the internal memory 421 and/or instructions stored in a memory provided in the processor.
The terminal device 400 may implement audio functions through the audio module 470, the speaker 470A, the receiver 470B, the microphone 470C, the earphone interface 470D, and the application processor. Such as music playing, recording, etc.
The audio module 470 is used to convert digital audio information into an analog audio signal output and also used to convert an analog audio input into a digital audio signal. The audio module 470 may also be used to encode and decode audio signals. In some embodiments, the audio module 470 may be disposed in the processor 410, or some functional modules of the audio module 470 may be disposed in the processor 410.
The speaker 470A, also called a "horn", is used to convert the audio electrical signals into sound signals. The terminal device 400 can listen to music through the speaker 470A or listen to a handsfree call.
The receiver 470B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the terminal apparatus 400 answers a call or voice information, it is possible to answer a voice by placing the receiver 470B close to the human ear.
The microphone 470C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 470C by speaking near the microphone 470C through the mouth. The terminal device 400 may be provided with at least one microphone 470C. In other embodiments, the terminal device 400 may be provided with two microphones 470C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 400 may further include three, four or more microphones 470C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
The earphone interface 470D is used to connect a wired earphone. The headset interface 470D may be a USB interface 430, or may be a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association) standard interface of the USA.
The pressure sensor 480A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 480A may be disposed on the display screen 494. The pressure sensor 480A may be of a variety of types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 480A, the capacitance between the electrodes changes. The terminal device 400 determines the intensity of the pressure from the change in the capacitance. When a touch operation is applied to the display screen 494, the terminal device 400 detects the intensity of the touch operation based on the pressure sensor 480A. The terminal device 400 may also calculate the touched position based on the detection signal of the pressure sensor 480A. In some embodiments, the touch operations that are applied to the same touch position but have different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 480B may be used to determine the motion attitude of the terminal device 400. In some embodiments, the angular velocity of the terminal device 400 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 480B. The gyro sensor 480B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 480B detects the shake angle of the terminal device 400, calculates the distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the terminal device 400 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 480B can also be used for navigation and body sensing game scenes.
The air pressure sensor 480C is used to measure air pressure. In some embodiments, the terminal device 400 calculates altitude, aiding positioning and navigation, from the barometric pressure value measured by the barometric pressure sensor 480C.
The magnetic sensor 480D includes a hall sensor. The terminal device 400 may detect the opening and closing of the flip holster using the magnetic sensor 480D. In some embodiments, when the terminal device 400 is a flip phone, the terminal device 400 may detect the opening and closing of the flip according to the magnetic sensor 480D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 480E can detect the magnitude of acceleration of the terminal device 400 in various directions (generally, three axes). The magnitude and direction of gravity can be detected when the terminal device 400 is stationary. The method can also be used for recognizing the posture of the terminal equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 480F for measuring distance. The terminal device 400 may measure the distance by infrared or laser. In some embodiments, shooting a scene, the terminal device 400 may utilize the distance sensor 480F to range for fast focus.
The proximity light sensor 480G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 400 emits infrared light to the outside through the light emitting diode. The terminal device 400 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 400. When insufficient reflected light is detected, the terminal device 400 can determine that there is no object near the terminal device 400. The terminal device 400 can utilize the proximity light sensor 480G to detect that the user holds the terminal device 400 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 480G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 480L is used to sense the ambient light level. The terminal device 400 may adaptively adjust the brightness of the display screen 494 based on the perceived ambient light level. The ambient light sensor 480L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 480L may also cooperate with the proximity light sensor 480G to detect whether the terminal device 400 is in a pocket to prevent accidental touches.
The fingerprint sensor 480H is used to collect a fingerprint. The terminal device 400 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 480J is used to detect temperature. In some embodiments, the terminal device 400 executes a temperature processing strategy using the temperature detected by the temperature sensor 480J. For example, when the temperature reported by the temperature sensor 480J exceeds a threshold, the terminal device 400 performs a reduction in performance of a processor located near the temperature sensor 480J, so as to reduce power consumption and implement thermal protection. In other embodiments, the terminal device 400 heats the battery 442 when the temperature is below another threshold to avoid an abnormal shutdown of the terminal device 400 due to low temperatures. In other embodiments, the terminal device 400 performs a boost on the output voltage of the battery 442 when the temperature is below a further threshold to avoid abnormal shutdown due to low temperature.
The touch sensor 480K is also referred to as a "touch device". The touch sensor 480K may be disposed on the display screen 494, and the touch sensor 480K and the display screen 494 form a touch screen, which is also referred to as a "touch screen". The touch sensor 480K is used to detect a touch operation applied thereto or thereabout. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operations can be provided through the display screen 494. In other embodiments, the touch sensor 480K may be disposed on a surface of the terminal device 400 at a position different from the position of the display screen 494.
The bone conduction sensor 480M may acquire a vibration signal. In some embodiments, the bone conduction transducer 480M may acquire a vibration signal of the human voice vibrating a bone mass. The bone conduction sensor 480M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 480M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 470 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 480M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 480M, so as to realize a heart rate detection function.
The keys 490 include a power-on key, a volume key, etc. The keys 490 may be mechanical keys. Or may be touch keys. The terminal device 400 may receive a key input, and generate a key signal input related to user setting and function control of the terminal device 400.
The motor 491 may generate a vibration indication. The motor 491 may be used for both incoming call vibration prompting and touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 491 may also respond to different vibration feedback effects in response to touch operations applied to different areas of the display screen 494. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 492 may be an indicator light, and may be used to indicate a charging status, a change in charge level, or to indicate a message, a missed call, a notification, or the like.
The SIM card interface 495 is for connecting a SIM card. The SIM card can be brought into and out of contact with the terminal device 400 by being inserted into and pulled out of the SIM card interface 495. The terminal device 400 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 495 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 495 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 495 may also be compatible with different types of SIM cards. The SIM card interface 495 may also be compatible with an external memory card. The terminal device 400 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the terminal device 400 employs eSIM, namely: an embedded SIM card. The eSIM card can be embedded in the terminal apparatus 400 and cannot be separated from the terminal apparatus 400. The software system of the terminal device 400 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application exemplifies a software structure of the terminal device 400 by taking an Android system with a layered architecture as an example.
Fig. 5 is a block diagram of a software structure of a terminal device 400 according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 5, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 5, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
Content providers are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication function of the terminal device 400. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, composition, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving hardware so that the hardware works. The kernel layer at least includes a display driver, a screen driver, a Graphics Processing Unit (GPU) driver, a camera, a sensor driver, and the like, which is not limited in the embodiment of the present application. For example, the screen driver may drive the screen to light or blink.
The hardware structure and the software structure of the terminal device in the application scenarios 100, 200, and 300 may be as shown in fig. 4 to 5, but the present embodiment does not limit this.
At present, after one terminal device is used as a master device to connect with a network hotspot of another terminal device used as a slave device, even if scenes where the two terminal devices are located are changed, the network connection still cannot be changed. Taking a notebook computer and a mobile phone as examples, under other scenes without WiFi signals which can be connected with the notebook computer and the mobile phone, the mobile phone can use a mobile network to surf the internet and be used as a main device to start a network hotspot, and the notebook computer is used as a slave device to be connected to the network hotspot of the mobile phone. When the other scenes are switched to office scenes, wiFi signal coverage of a company exists, but the notebook computer is still connected with the network hotspot of the mobile phone, and in order to reduce power consumption of the mobile phone, a user needs to manually close the network hotspot of the mobile phone and connect the network of the notebook computer to the WiFi network of the company. When the other scenes are switched to the home scene, the mobile phone can be automatically connected to the home WiFi network, and in order to reduce the power consumption of the mobile phone, the user still needs to manually close the network hotspot of the mobile phone and connect the network of the notebook computer to the home WiFi network.
In summary, when the scene of the terminal device changes, the user needs to manually switch the network connection between the plurality of terminal devices, so that the network connection efficiency of the terminal device is low and the terminal device is not flexible enough.
In order to solve the above problem, the present application provides a network connection method and apparatus, which perform network connection by determining whether a scene where a terminal device is located changes, determining a role of the terminal device (that is, the terminal device serves as a master device or a slave device) according to the changed scene, and combining the changed scene and the role of the terminal device. Therefore, a new network connection mode can be determined according to the changed scene, and network connection can be automatically carried out according to the new network connection mode, so that the power consumption of the terminal equipment can be reduced, and the efficiency and flexibility of network connection can be improved.
The network connection method of the present application is described in detail below with reference to fig. 6 to 9, and the method is applicable to a plurality of terminal devices logged with the same account, and each of the plurality of terminal devices has a hotspot sharing function. The method for sharing the hot spot may be executed by any terminal device of the plurality of terminal devices, for example, a mobile phone, an intelligent bracelet, a tablet computer, a notebook computer, a desktop computer, and the like, which is not limited in this application. The network connection method according to the embodiment of the present application is described in detail below by taking a first terminal device and a second terminal device as an example among a plurality of terminal devices.
Fig. 6 is a flowchart illustrating a network connection method 600 according to an embodiment of the present application. The method 600 is applied to a system comprising a first terminal device and a second terminal device, both the first terminal device and the second terminal device have a hotspot sharing function, and a user logs in the same account on the first terminal device and the second terminal device. The hardware structure of the terminal device involved in the method 600 may be as shown in fig. 4, and the software structure may be as shown in fig. 5. The method 600 includes the steps of:
s601, under the condition that the scene where the first terminal device is located is changed, the first terminal device determines that the changed target scene is a family scene, other scenes or an office scene, and the other scenes are scenes except the family scene and the office scene.
The hotspot sharing function refers to that the terminal device can start a network hotspot and can also be connected with other terminal devices. Exemplarily, the tablet computer has a hotspot sharing function, the tablet computer can be connected with a WiFi signal and turn on a network hotspot, and other terminal devices can be connected with the network hotspot of the tablet computer. The tablet personal computer can also be connected with network hotspots of other terminal devices.
It should be understood that the account number refers to an account used for registration of the terminal device, and after the user registers the account, the account number corresponding to the account may be logged in the terminal device. The same user can log in the same account in a plurality of terminal devices, the terminal devices are mutually trusted devices, and the trusted devices can share data information, such as the account and the password of a network hotspot.
The family scene and the office scene are defined according to the living place and the working place of the user, for example, when the first terminal device and the second terminal device are located in a company where the user works, the first terminal device and the second terminal device can be considered to be currently in the office scene, and when the first terminal device and the second terminal device are located in the home of the user, the home of a friend, and other indoor entertainment places, the first terminal device and the second terminal device can be considered to be currently in the family scene. The other scenes refer to scenes other than the home scene and the office scene, and the other scenes include other scenes.
It should be understood that WiFi signals in a home scenario, the user's private equipment and office equipment may all be automatically connected. In the WiFi signal in an office scene, office equipment of a user can be automatically connected, and private equipment cannot be connected. In other scenarios there is no WiFi signal.
The target scene refers to a scene in which the first terminal device is located after the scene is changed. Illustratively, the scene in which the first terminal device is located is changed from a first scene to a second scene, and then the second scene is a target scene.
S602, the first terminal device determines a network role of the first terminal device and a network role of the second terminal device based on the target scene, wherein the network roles are the master device or the slave device.
It should be understood that the master device is a terminal device capable of opening a network hotspot and enabling other terminal devices to connect to the network hotspot. The slave device is a terminal device capable of connecting with the network hotspot of the master device.
The system comprises the first terminal device and the second terminal device, namely the system comprises at least two terminal devices. Illustratively, the at least two terminal devices include both a private device of the user and an office device of the user. The first terminal device and the second terminal device are two devices with different attributes in the at least two terminal devices, and the attributes refer to office device attributes and private device attributes. Exemplarily, if the first terminal device is an office device, the second terminal device is a private device; and if the first terminal equipment is private equipment, the second terminal equipment is office equipment. The first terminal device and the second terminal device move along with the movement of the user, and when the scene where the first terminal device is located changes, the scene where the second terminal device and the first terminal device are located changes in the same way.
It can be understood that in different scenes, the network connection situation of the private device and the office device of the user is different, and the roles of the private device and the office device are also different.
S603, the first terminal device is connected with the network by combining the target scene, the network role of the first terminal device and the network role of the second terminal device.
The connection network refers to the connection of the first terminal device to a WiFi network, a mobile network or a network hotspot. The first terminal device may determine the network to which it is connected according to the network role of the first terminal device. Exemplarily, if the network role of the first terminal device is the slave device, the first terminal device connects to the network hotspot of the second terminal device. If the network role of the first terminal device is the master device, the first terminal device may connect to a WiFi network or a mobile network.
According to the network connection method provided by the embodiment of the application, when the scene where the first terminal device is located changes, the first terminal device determines the network role of the first terminal device according to the changed scene (namely, the first terminal device serves as the master device or the slave device), further determines whether the network to which the first terminal device is connected is a WiFi network, a mobile network or a network hotspot according to the changed scene, namely, network connection is performed according to the changed scene and the role of the terminal device, so that when the scene where the first terminal device is located changes, the first terminal device can determine a new network connection mode according to the changed scene and automatically perform network connection according to the new network connection mode, a user does not need to manually switch network connection among a plurality of terminal devices, and the efficiency and flexibility of network connection can be improved while the power consumption of the terminal device is reduced.
As an alternative embodiment, the above S601 may be implemented as follows: the first terminal device determines that the target scene is a family scene, other scenes or an office scene according to the geographic position of the first terminal device and/or the WiFi network identifier of at least one WiFi network to be connected in the WiFi network list of the first terminal device.
In a possible implementation manner, the first terminal device may determine that the target scene is a home scene, another scene, or an office scene according to the geographic location of the first terminal device.
Illustratively, the first terminal device stores a geographical area corresponding to a home scenario and a geographical area corresponding to an office scenario in advance. When the current geographic position of the first terminal device belongs to the geographic area corresponding to the home scene, the first terminal device may determine that the target scene is the home scene; when the current geographic position of the first terminal device belongs to the geographic area corresponding to the office scene, the first terminal device may determine that the target scene is the office scene; when the current geographic position of the first terminal device does not belong to the geographic area corresponding to the family scene or the geographic area corresponding to the office scene, the first terminal device may determine that the target scene is another scene.
In another possible implementation manner, the first terminal device may determine that the target scene is a home scene, another scene, or an office scene according to the WiFi network identifier of at least one to-be-connected WiFi network in the WiFi network list of the first terminal device.
The WiFi network identification may refer to the name of the WiFi network. Illustratively, the WiFi network list includes names of at least one available WiFi network of the first terminal device, the available WiFi network refers to a WiFi network where a WiFi signal can cover a location of the first terminal device. Among the available WiFi networks, the WiFi network to which the first terminal device can automatically connect is referred to as a WiFi network to be connected. The first terminal device stores the password and the name of the WiFi network to be connected in advance, and when the first terminal device moves to the signal coverage range of the WiFi network to be connected, the first terminal device can automatically connect the WiFi network to be connected.
It should be understood that different WiFi signals correspond to different WiFi networks with different names. WiFi signals in a family scene and a business scene are different, and WiFi networks in the family scene and the business scene are different in name. When a WiFi network identifier in a family scene appears in a WiFi network list of first terminal equipment, the scene where the first terminal equipment is located is a family scene; when a WiFi network identifier in an office scene appears in a WiFi network list of the first terminal device, the scene where the first terminal device is located is an office scene; when the WiFi network identifier in the home scene and the WiFi network identifier in the office scene do not exist in the WiFi network list of the first terminal device, it is described that the scene where the first terminal device is located is another scene.
In yet another possible implementation manner, the first terminal device may determine that the target scene is a home scene, another scene, or an office scene according to the geographic location of the first terminal device and the WiFi network identifier of at least one WiFi network to be connected in the WiFi network list of the first terminal device.
And under the condition that the target scene determined by the first terminal equipment through the geographic position is the same as the target scene determined by at least one WiFi network identifier of the WiFi network to be connected in the WiFi network list of the first terminal equipment, determining the target scene. Exemplarily, a target scene determined by the first terminal device through the geographic location and a target scene determined by at least one WiFi network identifier of the WiFi network to be connected in the WiFi network list of the first terminal device are both family scenes, and the target scene is a family scene.
Under the condition that the target scene determined by the first terminal device through the geographic position is different from the target scene determined by the WiFi network identifier of at least one to-be-connected WiFi network in the WiFi network list of the first terminal device, the first terminal device may directly determine the target scene determined by the WiFi network identifier of at least one to-be-connected WiFi network in the WiFi network list of the first terminal device, or the first terminal device may determine the target scene as another scene. Exemplarily, it is assumed that a target scene determined by the first terminal device through the geographic location is a home scene, and a target scene determined by the WiFi network identifier of at least one to-be-connected WiFi network in the WiFi network list of the first terminal device is an office scene. If the target scene determined by the WiFi network identifier of at least one WiFi network to be connected in the WiFi network list of the first terminal equipment is taken as a standard, the target scene is an office scene; alternatively, the target scene may be determined as another scene.
Fig. 7 is a flowchart illustrating another network connection method 700 according to an embodiment of the present application. The method 700 is applied to a system comprising a first terminal device and a second terminal device. In the method 700, the first terminal device is an office device, the second terminal device is a private device, both the first terminal device and the second terminal device have a hotspot sharing function, and a user logs in the same account on the first terminal device and the second terminal device. The hardware structure of the terminal device involved in the method 700 may be as shown in fig. 4, and the software structure of the terminal device may be as shown in fig. 5. The method 700 includes the steps of:
s701, under the condition that the scene where the first terminal device is located is changed, the first terminal device determines that the changed target scene is a family scene, other scenes or an office scene, and the other scenes are scenes except the family scene and the office scene.
It should be understood that the specific implementation of S701 is the same as S601 in fig. 6, and is not described herein again.
In a possible implementation manner, the target scene is another scene, and the first terminal device executes S702 to S707.
S702, the first terminal device determines that the first terminal device is a slave device and the second terminal device is a master device based on the target scene.
S703, the first terminal device determines whether the second terminal device opens the network hotspot;
if yes, go to S704;
if not, go to S705.
And S704, under the condition that the second terminal device opens the network hotspot, connecting the first terminal device with the network hotspot.
It should be appreciated that in other scenarios, the private device and the office device cannot connect to the WiFi network, so that the private device can use the mobile network, while the private device serves as a master device to turn on the network hotspot, and the office device serves as a slave device to connect to the network hotspot of the master device. Therefore, when the second terminal device opens the network hotspot, the first terminal device serves as a slave device to connect to the network hotspot.
S705, when the second terminal device does not start the network hotspot, the first terminal device sends a wake-up message to the second terminal device, where the wake-up message is used to notify the second terminal device to start the network hotspot.
S706, the first terminal device receives network hotspot information from the second terminal device, wherein the network hotspot information comprises account information and password information of the network hotspot.
The second terminal device determines that the first terminal device is a trusted device of the second terminal device according to the wake-up message sent by the first terminal device, and sends network hotspot information to the first terminal device after the network hotspot is opened.
And S707, the first terminal device connects to the network hotspot according to the network hotspot information.
And the first terminal equipment sends the account information and the password information to the second terminal equipment for passing the authority verification of the network hotspot of the second terminal equipment, then is connected with the network hotspot of the second terminal equipment, and surfs the internet through the network hotspot.
Specifically, an interaction process of the first terminal device and the second terminal device is shown in fig. 8, where a network role of the first terminal device is a slave device, and a network role of the second terminal device is a master device. In fig. 8, a first terminal device has a network usage requirement, and the first terminal device sends a wake-up message for notifying a master device to turn on a network hotspot to a second terminal device. The first terminal device determines that there is a network usage requirement, and may, for example, light up the screen for the first terminal device. Illustratively, the first terminal device may send the wake-up message to the second terminal device via bluetooth or bluetooth low energy. The wake-up message may include account information for logging in by the first terminal device. And after the second terminal equipment receives the account information, the first terminal equipment is confirmed to be the trusted equipment, and then the network hotspot is opened. The second terminal device sends the network hotspot information to the first terminal device, so that the first terminal device can be connected with the network hotspot according to the account and the password in the network hotspot information.
Optionally, after the first terminal device connects to the network hotspot of the second terminal device, when the first terminal device is in the hibernation state, the first terminal device may send a hibernation notification message to the second terminal device, where the hibernation notification message is used to notify the second terminal device that the first terminal device is in the hibernation state.
With continued reference to fig. 8, when the first terminal device is in a hibernation state, that is, the first terminal device does not have a network usage requirement, in order to reduce the power consumption of the second terminal device, the first terminal device sends a hibernation notification message to the second terminal device to notify the second terminal device to close the hotspot. Specifically, the sleep notification message may be transmitted by means of bluetooth or bluetooth low energy. And the second terminal equipment receives the dormancy notification message and closes the network hotspot according to the dormancy notification message.
Optionally, after receiving the sleep notification message sent by the first terminal device, the second terminal device does not receive the wake-up message sent by the first terminal device within the first preset time period, and then the second terminal device closes the network hotspot.
The first preset time period and any preset time period may be, for example, 1min, 5min, and the like. After the first terminal device sends the dormancy notification message to the second terminal device, it indicates that the first terminal device does not have the network use requirement at this time. If the second terminal device receives the wake-up message sent by the first terminal device within the first preset time length, it is indicated that the first terminal device is only in short dormancy, and at this time, the second terminal device does not need to close the network hotspot. If the second terminal device does not receive the wake-up message sent by the first terminal device within the first preset time length, it indicates that the first terminal device does not have the network use requirement within the short time, and at this time, the second terminal device closes the network hotspot.
In another possible implementation manner, the target scene is a home scene, and the first terminal device executes S708 to S709.
S708, the first terminal device determines that the first terminal device and the second terminal device are both master devices based on the target scene.
It should be understood that in a home scenario, both the private device and the office device may connect to a WiFi network existing in the home scenario, and there is no terminal device that needs to connect to a network hotspot. Therefore, the first terminal device and the second terminal device both act as master devices.
And S709, under the condition that the wireless fidelity WiFi signal exists in the target scene, the first terminal device is connected with the WiFi network in the target scene.
Before the scene where the first terminal device is located changes, the first terminal device may serve as a network hotspot where the slave device is connected to the second terminal device, or the first terminal device serves as a master device to provide the network hotspot for the second terminal device. When the scene where the first terminal device is located changes into a family scene, the first terminal device can be connected with the WiFi network, so that the network connection mode of the first terminal device can be automatically changed, and the power consumption of the second terminal device is reduced.
In yet another possible implementation manner, the target scene is an office scene, and the first terminal device performs steps S710 to S712.
And S710, the first terminal device determines that the first terminal device is a master device and the second terminal device is a slave device based on the target scene.
And S711, under the condition that the WiFi signal exists in the target scene, the first terminal device is connected with the WiFi network in the target scene.
And S712, the first terminal device starts a network hotspot.
It should be understood that in an office scenario, an office device may be connected to a WiFi network and a private device may not be connected. At this time, the office device serves as a master device, and the private device serves as a slave device, and therefore, the first terminal device serves as a master device to connect to the WiFi network. Meanwhile, the first terminal device opens the network hotspot so that the second terminal device is connected with the network hotspot.
As an alternative embodiment, the above S712 may be implemented as follows: the first terminal equipment receives a wake-up message from the second terminal equipment, wherein the wake-up message is used for informing the first terminal equipment of starting a network hotspot; and the first terminal equipment opens the network hotspot based on the awakening message.
In this case, the network role of the first terminal device is the master device, and the network role of the second terminal device is the slave device. When the network hotspot of the first terminal device is in a closed state and the second terminal device needs to be connected with the network hotspot of the first terminal device, a wake-up message for notifying the first terminal device of starting the network hotspot needs to be sent to the first terminal device. After receiving the wake-up message, the first terminal device opens the network hotspot, so that the network hotspot of the first terminal device does not need to be continuously in an open state, and the power consumption of the first terminal device is reduced.
Optionally, when the network role of the first terminal device is a master device, the network role of the second terminal device is a slave device, the network hotspot of the first terminal device is in an on state, and the second terminal device is connected to the network hotspot of the first terminal device, the first terminal device receives a sleep notification message from the second terminal device, where the sleep notification message is used to notify the first terminal device that the second terminal device is in a sleep state; and the first terminal equipment closes the network hotspot based on the dormancy notification message.
It should be understood that, when the first terminal device receives the sleep notification message of the second terminal device, which indicates that the second terminal device does not need to connect to the network hotspot of the first terminal device, at this time, the first terminal device closes the network hotspot, which is beneficial to reducing power consumption of the first terminal device.
Fig. 9 is a flowchart illustrating a further network connection method 900 according to an embodiment of the present application. The method 900 is applied to a system comprising a first terminal device and a second terminal device. In the method 900, the first terminal device is a private device, the second terminal device is an office device, both the first terminal device and the second terminal device have a hotspot sharing function, and the user logs in the same account on the first terminal device and the second terminal device. The hardware structure of the terminal device involved in the method 900 may be as shown in fig. 4, and the software structure of the terminal device may be as shown in fig. 5. The method 900 includes the following steps:
s901, under the condition that the scene where the first terminal device is located is changed, the first terminal device determines that the changed target scene is a family scene, other scenes or an office scene, and the other scenes are scenes except the family scene and the office scene.
It should be understood that the specific implementation of S901 is the same as S601 in fig. 6, and is not described herein again.
In a possible implementation manner, the target scene is another scene, and the first terminal device executes S902 to S904.
S902, the first terminal device determines that the first terminal device is a master device and the second terminal device is a slave device based on the target scene.
The first terminal device is a private device, in other scenes, the private device can be connected with a mobile network, and the network role of the private device is a main device. The second terminal device is an office device, and the office device cannot be connected with a mobile network, so that the network role of the office device is a slave device.
And S903, under the condition that the mobile network signal exists in the target scene, the first terminal equipment is connected with the mobile network in the target scene.
It should be appreciated that the mobile network signal may be cellular traffic and the private device may have an unlimited amount of cellular traffic, such that in other scenarios the private device may serve as a master device to provide a network hotspot for office devices.
And S904, the first terminal equipment starts a network hotspot.
It should be understood that the first terminal device may have more or unlimited amount of mobile network traffic, and the second terminal device may not be able to connect to the WiFi network in other scenarios, while the second terminal device has less or no mobile network traffic. Therefore, the first terminal device opens the network hotspot for the second terminal device to connect.
It should be understood that the specific implementation of S904 is similar to S712, and is not described herein.
In another possible implementation manner, the target scene is a home scene, and the first terminal device executes S905 to S906.
S905, the first terminal device determines that the first terminal device and the second terminal device are both main devices based on the target scene.
S906, under the condition that the wireless fidelity WiFi signal exists in the target scene, the first terminal device is connected with the WiFi network in the target scene.
It should be understood that the embodiments of S905-S906 are similar to those of S708-S709 in the family scenario of the method 700, and are not described herein again.
In yet another possible implementation manner, the target scene is an office scene, and the first terminal device executes S907 to S912.
And S907, the first terminal device determines that the first terminal device is a slave device and the second terminal device is a master device based on the target scene.
S908, the first terminal device determines whether the second terminal device opens the network hotspot;
if yes, go to S909;
if not, go to S910.
And S909, under the condition that the second terminal device opens the network hotspot, the first terminal device is connected with the network hotspot.
It should be understood that in an office scenario, the private device is a slave device, and the office device is a master device, so that the network role of the first terminal device is a slave device, and the second terminal device is a master device. The second terminal device is connected with the WiFi network in the office scene, and a network hotspot is opened to be connected with the first terminal device.
S910, when the second terminal device does not start the network hotspot, the first terminal device sends a wake-up message to the second terminal device, where the wake-up message is used to notify the second terminal device to start the network hotspot.
And S911, the first terminal device receives network hotspot information from the second terminal device, wherein the network hotspot information comprises account information and password information of the network hotspot.
And S912, the first terminal device is connected with the network hotspot according to the network hotspot information.
It should be understood that the embodiments of S907 to S912 are similar to those of S702 to S707 in other scenarios of the method 700, and are not repeated herein.
The following describes a comparison between a current network connection method and a network connection method provided in the embodiments of the present application with reference to tables.
Table one comparison between the current network connection method and the network connection method of the embodiment of the present application
Figure 231773DEST_PATH_IMAGE001
As can be seen from table one, when an application scenario changes from an office scenario or a home scenario to another scenario, in the current network connection method, a private device generally has more mobile network traffic, and the private device connects to a mobile network. When the office equipment has the mobile network signal, the office equipment is also connected with the mobile network; when the office equipment does not have the mobile network signal, the office equipment cannot surf the internet. In the network connection method of the embodiment of the application, when the application scene is changed from the office scene or the home scene to other scenes, the office equipment can be automatically connected with the network hotspot of the private equipment, so that the user does not need to manually connect the office equipment with the network hotspot of the private equipment, and the network connection efficiency is improved.
In other scenarios, the private device is connected to a mobile network and the office device is connected to a network hotspot of the private device. When the application scene of the terminal device of the user changes from other scenes to an office scene or a home scene, in the current network connection method, the office device is still connected with the network hotspot of the private device, so that the power consumption of the private device is larger. In the network connection method in the embodiment of the application, when the application scene is changed from other scenes to an office scene, the office equipment is connected with the WiFi network, and the private equipment is connected with the network hotspot of the office equipment. When the application scene is changed from other scenes to a home scene, the office equipment and the private equipment are both connected with the WiFi network. The network connection method of the embodiment of the application is beneficial to reducing the power consumption of the terminal equipment and improving the efficiency and flexibility of network connection.
It should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The network connection method according to the embodiment of the present application is described in detail above with reference to fig. 6 to 9, and the network connection device according to the embodiment of the present application is described in detail below with reference to fig. 10 and 11.
Fig. 10 is a schematic structural diagram of a network connection device 1000 according to an embodiment of the present disclosure. As shown in fig. 10, the apparatus 1000 includes: a determination module 1001 and a processing module 1002.
In a possible implementation manner, the apparatus 1000 is configured to implement the steps corresponding to the first terminal device in the method 600.
A determining module 1001, configured to determine that a target scene after change is a home scene, another scene, or an office scene when a scene in which the apparatus 1000 is located changes, where the another scene is a scene other than the home scene and the office scene; based on the target scene, determining a network role of the apparatus 1000 and a network role of the second terminal device, where the network roles are master devices or slave devices;
the processing module 1002 is configured to connect to a network in combination with the target scene, the network role of the apparatus 1000, and the network role of the second terminal device.
Optionally, the apparatus 1000 is an office device, the second terminal device is a private device, the target scene is a home scene, and both the apparatus 1000 and the second terminal device are master devices; the processing module 1002 is specifically configured to: and under the condition that the wireless fidelity WiFi signal exists in the target scene, connecting a WiFi network in the target scene.
Optionally, the apparatus 1000 is a private device, the second terminal device is an office device, the target scene is a home scene, and both the apparatus 1000 and the second terminal device are master devices; the processing module 1002 is specifically configured to: and connecting the WiFi network in the target scene under the condition that the WiFi signal exists in the target scene.
Optionally, the apparatus 1000 is an office device, the second terminal device is a private device, the target scene is another scene, the apparatus 1000 is a slave device, and the second terminal device is a master device; the processing module 1002 is specifically configured to: and connecting the network hotspot under the condition that the second terminal equipment opens the network hotspot.
Optionally, the apparatus 1000 is a private device, the second terminal device is an office device, the target scene is an office scene, the apparatus 1000 is a slave device, and the second terminal device is a master device; the processing module 1002 is specifically configured to: and connecting the network hotspot under the condition that the second terminal equipment opens the network hotspot.
Optionally, the processing module 1002 is further configured to: sending a wake-up message to the second terminal equipment under the condition that the network hotspot is not opened by the second terminal equipment, wherein the wake-up message is used for informing the second terminal equipment of opening the network hotspot; the device 1000 further includes a transceiver module, configured to receive network hotspot information from the second terminal device, where the network hotspot information includes account information and password information of a network hotspot; the processing module 1002 is further configured to: and connecting the network hotspot according to the network hotspot information.
Optionally, the apparatus 1000 further includes a transceiver module, configured to send a sleep notification message to the second terminal device when the apparatus 1000 is in the sleep state, where the sleep notification message is used to notify the second terminal device that the apparatus 1000 is in the sleep state.
Optionally, the apparatus 1000 is a private device, the second terminal device is an office device, the target scene is another scene, the apparatus 1000 is a master device, and the second terminal device is a slave device; the processing module 1002 is specifically configured to: connecting a mobile network in a target scene under the condition that a mobile network signal exists in the target scene; and opening the network hotspot.
Optionally, the apparatus 1000 is an office device, the second terminal device is a private device, the target scene is an office scene, the apparatus 1000 is a master device, and the second terminal device is a slave device; the processing module 1002 is specifically configured to: connecting a WiFi network in a target scene under the condition that the WiFi signal exists in the target scene; and opening the network hotspot.
Optionally, the apparatus 1000 further includes a transceiver module, configured to receive a wake-up message from the second terminal device, where the wake-up message is used to notify the apparatus 1000 of starting a network hotspot; the processing module 1002 is further configured to: and starting the network hotspot based on the awakening message.
Optionally, the apparatus 1000 further includes a transceiver module, configured to receive a sleep notification message from the second terminal device, where the sleep notification message is used to notify the apparatus 1000 that the second terminal device is in a sleep state; the processing module 1002 is further configured to: and closing the network hotspot based on the dormancy notification message.
Optionally, the determining module 1001 is specifically configured to: according to the geographic location of the device 1000 and/or the WiFi network identifier of at least one WiFi network to be connected in the WiFi network list of the device 1000, it is determined that the target scene is a home scene, other scenes, or an office scene.
It should be appreciated that the apparatus 1000 herein is embodied in the form of functional modules. The term module herein may refer to an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an optional example, it may be understood by those skilled in the art that the apparatus 1000 may be specifically a first terminal device in the foregoing embodiment, and the apparatus 1000 may be configured to execute each procedure and/or step corresponding to the first terminal device in the foregoing method embodiment, and details are not described here again to avoid repetition.
The device 1000 has a function of implementing corresponding steps executed by the first terminal device in the method; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. For example, the processing module 1002 may include a connection module, and the connection module may be configured to implement each step and/or flow corresponding to the processing module 1002 for performing the connection action.
In an embodiment of the present application, the apparatus 1000 in fig. 10 may also be a chip, for example: and (4) SOC. Correspondingly, the processing module 1002 may be a transceiver circuit of the chip, and is not limited herein.
Fig. 11 is a schematic structural diagram of another network connection device 1100 according to an embodiment of the present disclosure. The apparatus 1100 includes a processor 1101, a transceiver 1102, and a memory 1103. Wherein, the processor 1101, the transceiver 1102 and the memory 1103 are communicated with each other through the internal connection path, the memory 1103 is used for storing instructions, and the processor 1101 is used for executing the instructions stored by the memory 1103 to control the transceiver 1102 to transmit signals and/or receive signals.
It should be understood that the apparatus 1100 may be embodied as the first terminal device in the foregoing embodiments, and may be configured to execute each step and/or flow corresponding to the first terminal device in the foregoing method embodiments. The memory 1103 may alternatively comprise read-only memory and random access memory, and provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 1101 may be configured to execute instructions stored in the memory, and when the processor 1101 executes the instructions stored in the memory, the processor 1101 is configured to perform the various steps and/or processes of the above-described method embodiments. The transceiver 1102 may include a transmitter and a receiver, wherein the transmitter may be configured to implement the steps and/or processes corresponding to the transceiver for performing the sending action, and the receiver may be configured to implement the steps and/or processes corresponding to the transceiver for performing the receiving action.
It should be understood that, in the embodiments of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor executes instructions in the memory and combines hardware thereof to perform the steps of the above-described method. To avoid repetition, it is not described in detail here.
The present application also provides a computer-readable storage medium for storing a computer program for implementing the method shown in the above-described method embodiments.
The present application also provides a computer program product comprising a computer program (which may also be referred to as code, or instructions) which, when run on a computer, enables the computer to perform the method as shown in the above-described method embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific implementation of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the embodiments of the present application, and all the changes or substitutions should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (26)

1. A network connection method is characterized in that the method is applied to a system comprising a first terminal device and a second terminal device, the first terminal device and the second terminal device both have a hotspot sharing function, and a user logs in the same account on the first terminal device and the second terminal device, and the method comprises the following steps:
under the condition that the scene where the first terminal device is located is changed, the first terminal device determines that the changed target scene is a family scene, an office scene or other scenes, and the other scenes are scenes except the family scene and the office scene;
the first terminal device determines a network role of the first terminal device and a network role of the second terminal device based on the target scene, wherein the network roles are master devices or slave devices; the main device is a terminal device which can start a network hotspot and enables other terminal devices to be connected with the network hotspot, and the slave device is a terminal device which can be connected with the network hotspot of the main device;
the first terminal device is connected with a network by combining the target scene, the network role of the first terminal device and the network role of the second terminal device;
when the target scene is a family scene, the first terminal device and the second terminal device are main devices;
when the target scene is other scenes, the first terminal device is a private device, and when the second terminal device is an office device, the first terminal device is a master device, and the second terminal device is a slave device, or when the first terminal device is an office device and the second terminal device is a private device, the first terminal device is a slave device, and the second terminal device is a master device;
the target scene is an office scene, the first terminal equipment is private equipment, when the second terminal equipment is office equipment, the first terminal equipment is slave equipment, the second terminal equipment is master equipment, or the first terminal equipment is office equipment, when the second terminal equipment is private equipment, the first terminal equipment is master equipment, and the second terminal equipment is slave equipment.
2. The method according to claim 1, wherein the first terminal device is an office device, the second terminal device is a private device, and the target scene is a home scene;
the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, and includes:
and under the condition that the wireless fidelity WiFi signal exists in the target scene, the first terminal equipment is connected with the WiFi network in the target scene.
3. The method according to claim 1, wherein the first terminal device is a private device, the second terminal device is an office device, and the target scene is a home scene;
the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, and includes:
and under the condition that the WiFi signal exists in the target scene, the first terminal equipment is connected with the WiFi network in the target scene.
4. The method according to claim 1, wherein the first terminal device is an office device, the second terminal device is a private device, and the target scene is another scene;
the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, including:
and under the condition that the second terminal equipment opens the network hotspot, the first terminal equipment is connected with the network hotspot.
5. The method according to claim 1, wherein the first terminal device is a private device, the second terminal device is an office device, and the target scene is an office scene;
the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, and includes:
and under the condition that the second terminal equipment opens the network hotspot, the first terminal equipment is connected with the network hotspot.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
under the condition that the network hotspot is not opened by the second terminal device, the first terminal device sends a wakeup message to the second terminal device, wherein the wakeup message is used for informing the second terminal device of opening the network hotspot;
the first terminal device receives network hotspot information from the second terminal device, wherein the network hotspot information comprises account information and password information of the network hotspot;
the first terminal device is connected to the network hotspot, and the method comprises the following steps:
and the first terminal equipment is connected with the network hotspot according to the network hotspot information.
7. The method according to claim 4 or 5, wherein after the first terminal device connects to the network hotspot, the method further comprises:
and under the condition that the first terminal device is in the dormant state, the first terminal device sends a dormant notification message to the second terminal device, wherein the dormant notification message is used for notifying the second terminal device that the first terminal device is in the dormant state.
8. The method according to claim 1, wherein the first terminal device is a private device, the second terminal device is an office device, and the target scene is another scene;
the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, and includes:
under the condition that a mobile network signal exists in the target scene, the first terminal device is connected with a mobile network in the target scene;
the method further comprises the following steps:
and the first terminal equipment opens a network hotspot.
9. The method according to claim 1, wherein the first terminal device is an office device, the second terminal device is a private device, and the target scene is an office scene;
the first terminal device, in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, connects to the network, including:
under the condition that a WiFi signal exists in the target scene, the first terminal equipment is connected with a WiFi network in the target scene;
the method further comprises the following steps:
and the first terminal equipment opens a network hotspot.
10. The method according to claim 8 or 9, wherein before the first terminal device opens a network hotspot, the method further comprises:
the first terminal device receives a wake-up message from the second terminal device, wherein the wake-up message is used for informing the first terminal device of starting the network hotspot;
the first terminal device opens a network hotspot, including:
and the first terminal equipment starts the network hotspot based on the awakening message.
11. The method according to claim 8 or 9, wherein after the first terminal device opens a network hotspot, the method further comprises:
the first terminal device receives a dormancy notification message from the second terminal device, wherein the dormancy notification message is used for notifying the first terminal device that the second terminal device is in a dormant state;
and the first terminal equipment closes the network hotspot based on the dormancy notification message.
12. The method according to any one of claims 1 to 5, wherein the determining, by the first terminal device, that the changed target scene is a home scene, other scene, or an office scene includes:
and the first terminal equipment determines that the target scene is a family scene, other scenes or an office scene according to the geographic position of the first terminal equipment and/or the WiFi network identifier of at least one WiFi network to be connected in the WiFi network list of the first terminal equipment.
13. A network connection apparatus, applied to a system including the apparatus and a second terminal device, where the apparatus and the second terminal device both have a hotspot sharing function, and a user logs in a same account on the apparatus and the second terminal device, and the apparatus includes:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining that a target scene after change is a family scene, other scenes or an office scene under the condition that the scene where the device is located is changed, and the other scenes are scenes except the family scene and the office scene; determining a network role of the device and a network role of the second terminal equipment based on the target scene, wherein the network roles are master equipment or slave equipment; the main device is a terminal device which can start a network hotspot and enables other terminal devices to be connected with the network hotspot, and the slave device is a terminal device which can be connected with the network hotspot of the main device;
a processing module, configured to connect to a network in combination with the target scene, the network role of the apparatus, and the network role of the second terminal device;
when the target scene is a family scene, the device and the second terminal equipment are main equipment;
when the target scene is other scenes, the device is private equipment, and when the second terminal equipment is office equipment, the device is master equipment, and the second terminal equipment is slave equipment, or when the device is office equipment, and the second terminal equipment is private equipment, the device is slave equipment, and the second terminal equipment is master equipment;
the target scene is an office scene, the device is private equipment, when the second terminal equipment is office equipment, the device is slave equipment, the second terminal equipment is master equipment, or the device is office equipment, when the second terminal equipment is private equipment, the device is master equipment, and the second terminal equipment is slave equipment.
14. The apparatus according to claim 13, wherein the apparatus is an office device, the second terminal device is a private device, and the target scene is a home scene;
the processing module is specifically configured to:
and connecting the WiFi network in the target scene under the condition that the wireless fidelity WiFi signal exists in the target scene.
15. The apparatus according to claim 13, wherein the apparatus is a private device, the second terminal device is an office device, the target scene is a home scene, and the apparatus and the second terminal device are both master devices;
the processing module is specifically configured to:
and connecting the WiFi network in the target scene under the condition that the WiFi signal exists in the target scene.
16. The apparatus according to claim 13, wherein the apparatus is an office device, the second terminal device is a private device, and the target scene is another scene;
the processing module is specifically configured to:
and connecting the network hotspot under the condition that the second terminal equipment opens the network hotspot.
17. The apparatus according to claim 13, wherein the apparatus is a private device, the second terminal device is an office device, and the target scene is an office scene;
the processing module is specifically configured to:
and connecting the network hotspot under the condition that the second terminal equipment opens the network hotspot.
18. The apparatus of claim 16 or 17, wherein the processing module is further configured to:
sending a wake-up message to the second terminal device when the network hotspot is not opened by the second terminal device, wherein the wake-up message is used for informing the second terminal device of opening the network hotspot;
the device further comprises:
the receiving and sending module is used for receiving network hotspot information from the second terminal device, wherein the network hotspot information comprises account information and password information of the network hotspot;
the processing module is further configured to:
and connecting the network hotspot according to the network hotspot information.
19. The apparatus of claim 16 or 17, further comprising:
a transceiver module, configured to send a sleep notification message to the second terminal device when the apparatus is in a sleep state, where the sleep notification message is used to notify the second terminal device that the apparatus is in the sleep state.
20. The apparatus according to claim 13, wherein the apparatus is a private device, the second terminal device is an office device, and the target scene is another scene;
the processing module is specifically configured to:
connecting a mobile network in the target scene under the condition that a mobile network signal exists in the target scene;
and opening the network hotspot.
21. The apparatus according to claim 13, wherein the apparatus is an office device, the second terminal device is a private device, and the target scene is an office scene;
the processing module is specifically configured to:
connecting a WiFi network in the target scene under the condition that a WiFi signal exists in the target scene;
and opening the network hotspot.
22. The apparatus of claim 20 or 21, further comprising:
a transceiver module, configured to receive a wake-up message from the second terminal device, where the wake-up message is used to notify the apparatus to start the network hotspot;
the processing module is further configured to:
and starting the network hotspot based on the awakening message.
23. The apparatus of claim 20 or 21, further comprising:
a transceiver module, configured to receive a sleep notification message from the second terminal device, where the sleep notification message is used to notify the apparatus that the second terminal device is in a sleep state;
the processing module is further configured to:
and closing the network hotspot based on the dormancy notification message.
24. The apparatus according to any one of claims 13 to 17, wherein the determining module is specifically configured to:
and determining the target scene to be a family scene, other scenes or an office scene according to the geographic position of the device and/or the WiFi network identifier of at least one WiFi network to be connected in the WiFi network list of the device.
25. A network connection device, comprising: a processor coupled to a memory for storing a computer program that, when invoked by the processor, causes the terminal device to perform the method of any of claims 1 to 12.
26. A computer-readable storage medium for storing a computer program comprising instructions for implementing the method of any one of claims 1 to 12.
CN202211186293.8A 2022-09-28 2022-09-28 Network connection method and device Active CN115297530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211186293.8A CN115297530B (en) 2022-09-28 2022-09-28 Network connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211186293.8A CN115297530B (en) 2022-09-28 2022-09-28 Network connection method and device

Publications (2)

Publication Number Publication Date
CN115297530A CN115297530A (en) 2022-11-04
CN115297530B true CN115297530B (en) 2023-04-07

Family

ID=83834164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211186293.8A Active CN115297530B (en) 2022-09-28 2022-09-28 Network connection method and device

Country Status (1)

Country Link
CN (1) CN115297530B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2943008A1 (en) * 2013-01-06 2015-11-11 China Academy of Telecommunications Technology Method, device and system for switching under bearer separation scenario
CN105898845A (en) * 2015-12-08 2016-08-24 乐视移动智能信息技术(北京)有限公司 Mobile terminal WIFI state switching method and device
CN106465160A (en) * 2016-07-27 2017-02-22 北京小米移动软件有限公司 Network function switching method and device
CN106507447A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of Wi Fi hotspot connection methods and mobile terminal
CN107295580A (en) * 2016-03-30 2017-10-24 中兴通讯股份有限公司 access point switching method and device
CN108990120A (en) * 2018-08-01 2018-12-11 福建天泉教育科技有限公司 A kind of method and server of wireless network automatic switchover
CN109040951A (en) * 2018-07-10 2018-12-18 中国联合网络通信集团有限公司 The control method and device of personal hot spot
CN109511145A (en) * 2018-12-27 2019-03-22 深圳Tcl新技术有限公司 Switching method, intelligent terminal and the computer readable storage medium of network hotspot
CN111050380A (en) * 2019-11-21 2020-04-21 深圳传音控股股份有限公司 Hotspot opening method and device, terminal equipment and storage medium
CN111131190A (en) * 2019-12-09 2020-05-08 上海传英信息技术有限公司 Network hotspot sharing method, mobile terminal and computer readable storage medium
CN112492618A (en) * 2019-09-11 2021-03-12 中兴通讯股份有限公司 Network sharing method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9144008B2 (en) * 2012-01-15 2015-09-22 Google Inc. Providing hotspots to user devices within server-controlled zones
CN103595798A (en) * 2013-11-14 2014-02-19 福州瑞芯微电子有限公司 Somatic sense sharing master/slave device and method based on WIFI Direct
WO2017093039A1 (en) * 2015-12-03 2017-06-08 Accuris Technologies Limited Mobile device control of wifi hotspot access
CN105472676B (en) * 2015-12-21 2019-02-12 小米科技有限责任公司 Method for connecting network and device
CN106604375A (en) * 2016-12-14 2017-04-26 努比亚技术有限公司 Dormancy device and method
CN114980224B (en) * 2021-02-26 2024-04-12 华为技术有限公司 WiFi hotspot switching method, terminal equipment and storage medium
CN114938528B (en) * 2022-06-20 2023-10-31 中国联合网络通信集团有限公司 Hot spot switching method, device, system and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2943008A1 (en) * 2013-01-06 2015-11-11 China Academy of Telecommunications Technology Method, device and system for switching under bearer separation scenario
CN105898845A (en) * 2015-12-08 2016-08-24 乐视移动智能信息技术(北京)有限公司 Mobile terminal WIFI state switching method and device
CN107295580A (en) * 2016-03-30 2017-10-24 中兴通讯股份有限公司 access point switching method and device
CN106465160A (en) * 2016-07-27 2017-02-22 北京小米移动软件有限公司 Network function switching method and device
CN106507447A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of Wi Fi hotspot connection methods and mobile terminal
CN109040951A (en) * 2018-07-10 2018-12-18 中国联合网络通信集团有限公司 The control method and device of personal hot spot
CN108990120A (en) * 2018-08-01 2018-12-11 福建天泉教育科技有限公司 A kind of method and server of wireless network automatic switchover
CN109511145A (en) * 2018-12-27 2019-03-22 深圳Tcl新技术有限公司 Switching method, intelligent terminal and the computer readable storage medium of network hotspot
CN112492618A (en) * 2019-09-11 2021-03-12 中兴通讯股份有限公司 Network sharing method and device, electronic equipment and storage medium
CN111050380A (en) * 2019-11-21 2020-04-21 深圳传音控股股份有限公司 Hotspot opening method and device, terminal equipment and storage medium
CN111131190A (en) * 2019-12-09 2020-05-08 上海传英信息技术有限公司 Network hotspot sharing method, mobile terminal and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Xiping Wu ; Dominic C. O’Brien."A Novel Machine Learning-Based Handover Scheme for Hybrid LiFi and WiFi Networks".《 2020 IEEE Globecom Workshops (GC Wkshps)》.2021,全文. *
青春 ; 王兴光 ; 胡雅静 ; 王珏."4G网络共建共享解决方案研究".《邮电设计技术》.2022,全文. *

Also Published As

Publication number Publication date
CN115297530A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN111602379B (en) Voice communication method, electronic equipment and system
CN110401767B (en) Information processing method and apparatus
CN111095723A (en) Wireless charging method and electronic equipment
CN111602108B (en) Application icon display method and terminal
CN111371849A (en) Data processing method and electronic equipment
CN114095599B (en) Message display method and electronic equipment
CN110557740A (en) Electronic equipment control method and electronic equipment
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
CN111343326A (en) Method and related device for acquiring test log
CN111556479B (en) Information sharing method and related device
CN112684969B (en) Always displaying method and mobile device
US20240098354A1 (en) Connection establishment method and electronic device
CN111492678B (en) File transmission method and electronic equipment
CN114222020B (en) Position relation identification method and device and readable storage medium
CN114201738A (en) Unlocking method and electronic equipment
CN111886849B (en) Information transmission method and electronic equipment
CN115297530B (en) Network connection method and device
CN113950045B (en) Subscription data downloading method and electronic equipment
CN112840680A (en) Position information processing method and related device
CN116095223B (en) Notification display method and terminal device
CN113905334B (en) Information sharing method and device
WO2023109636A1 (en) Application card display method and apparatus, terminal device, and readable storage medium
CN116738033B (en) Method and device for recommending service
CN116095224B (en) Notification display method and terminal device
WO2024012346A1 (en) Task migration method, electronic device, 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
GR01 Patent grant
GR01 Patent grant