CN115297530B - Network connection method and device - Google Patents
Network connection method and device Download PDFInfo
- 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
- office
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 122
- 230000006870 function Effects 0.000 claims description 56
- 230000015654 memory Effects 0.000 claims description 54
- 238000012545 processing Methods 0.000 claims description 50
- 230000005059 dormancy Effects 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 15
- 230000007958 sleep Effects 0.000 claims description 9
- 238000004891 communication Methods 0.000 description 45
- 230000006854 communication Effects 0.000 description 45
- 230000008569 process Effects 0.000 description 23
- 238000007726 management method Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 15
- 230000005236 sound signal Effects 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 10
- 230000008859 change Effects 0.000 description 8
- 230000003993 interaction Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000010985 leather Substances 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 230000007774 longterm Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000003416 augmentation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is leader and terminal is follower
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请提供了一种网络连接方法和装置,能够在减小终端设备功耗的同时,提高网络连接的效率和灵活性。该方法应用于包括第一终端设备和第二终端设备的系统,第一终端设备和第二终端设备均具有热点共享功能,用户在第一终端设备和第二终端设备上登录了相同的账号,该方法包括:在第一终端设备所处场景发生了变化的情况下,第一终端设备确定变化后的目标场景为家庭场景、办公场景或者其他场景;第一终端设备基于目标场景,确定第一终端设备的网络角色和第二终端设备的网络角色,网络角色为主设备或从设备;第一终端设备结合目标场景、第一终端设备的网络角色以及第二终端设备的网络角色,连接网络。
The present application provides a network connection method and 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 including a first terminal device and a second terminal device, both of which have a hotspot sharing function, and the user logs in the same account on the first terminal device and the second terminal device, The method includes: when the scene where the first terminal device is located changes, the first terminal device determines that the changed target scene is a family scene, an office scene or other scenes; and based on the target scene, the first terminal device determines the first The network role of the terminal device and the network role of the second terminal device, the network role is a master device or a slave device; the first terminal device connects to the network in combination with the target scene, the network role of the first terminal device and the network role of the second terminal device.
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种网络连接方法和装置。The present application relates to the technical field of terminals, and in particular to a network connection method and device.
背景技术Background technique
为了便于生活和工作,用户通常持有多个终端设备,例如,手机、平板电脑、台式电脑等。多个终端设备之间可以共享网络热点,以满足不用场景下的用户需求。多个终端设备中的一个终端设备可以作为主设备开启网络热点,另一个终端设备可以作为从设备连接主设备的网络热点。To facilitate life and work, users usually hold multiple terminal devices, for example, mobile phones, tablet computers, desktop computers, and the like. Network hotspots can be shared between multiple terminal devices to meet user needs in different scenarios. One of the multiple terminal devices can be used as a master device to open a network hotspot, and the other terminal device can be used as a slave device to connect to the network hotspot of the master device.
目前,一旦一个终端设备作为从设备连接到另一个作为主设备的终端设备的网络热点后,即使场景发生了变化,网络连接依然不会改变,除非用户手动关闭主设备的网络热点或切断从设备对主设备的网络热点的连接。用户使用终端设备的场景通常可以分为家庭场景、办公场景和其他场景,其他场景是除家庭场景和办公场景之外的场景。以笔记本电脑和手机为例,在其他场景下,手机可以使用移动网络上网,并作为主设备开启网络热点,笔记本电脑作为从设备连接至手机的网络热点。当上述其他场景切换为办公场景时,存在公司的WiFi信号覆盖,但笔记本电脑仍连接手机的网络热点,为了减小手机的功耗,需要用户手动关闭手机的网络热点,并将笔记本电脑的网络连接至公司的WiFi网络。At present, once a terminal device is connected to the network hotspot of another terminal device as a master device as a slave device, even if the scene changes, the network connection will still not change, unless the user manually closes the network hotspot of the master device or cuts off the slave device Connection to network hotspot of main device. Scenarios in which a user uses a terminal device can generally be classified into family scenarios, office scenarios, and other scenarios, and other scenarios are scenarios other than the home scenario and the office scenario. Take a laptop and a mobile phone as an example. In other scenarios, the mobile phone can use the mobile network to surf the Internet and act as the master device to open the network hotspot, and the laptop acts as the slave device to connect to the network hotspot of the mobile phone. When the above other scene is switched to the office scene, the company’s WiFi signal coverage exists, but the laptop is still connected to the mobile phone’s network hotspot. In order to reduce the power consumption of the mobile phone, the user needs to manually turn off the mobile phone’s network Connect to your company's WiFi network.
鉴于上述问题,目前亟需提供一种网络连接方法,能够在减小终端设备功耗的同时,提高网络连接的效率和灵活性。In view of the above problems, there is an urgent need to provide a network connection method, which can improve the efficiency and flexibility of network connection while reducing the power consumption of terminal equipment.
发明内容Contents of the invention
本申请提供一种网络连接方法和装置,能够在减小终端设备功耗的同时,提高网络连接的效率和灵活性。The present application provides a network connection method and device, which can improve the efficiency and flexibility of network connection while reducing the power consumption of terminal equipment.
第一方面,提供了一种网络连接方法,应用于包括第一终端设备和第二终端设备的系统,所述第一终端设备和所述第二终端设备均具有热点共享功能,用户在所述第一终端设备和所述第二终端设备上登录了相同的账号,该方法包括:在所述第一终端设备所处场景发生了变化的情况下,所述第一终端设备确定变化后的目标场景为家庭场景、办公场景或者其他场景,所述其他场景为除所述家庭场景和所述办公场景之外的场景;所述第一终端设备基于所述目标场景,确定所述第一终端设备的网络角色和所述第二终端设备的网络角色,所述网络角色为主设备或从设备;所述第一终端设备结合所述目标场景、所述第一终端设备的网络角色以及所述第二终端设备的网络角色,连接网络。In the first aspect, a network connection method is provided, which is applied to a system including a first terminal device and a second terminal device, both of the first terminal device and the second terminal device have a hotspot sharing function, and the user is in the The first terminal device and the second terminal device have logged in the same account, and the method includes: when the scene where the first terminal device is located changes, the first terminal device determines the changed target The scene is a family scene, an office scene or other scenes, and the other scenes are scenes other than the home scene and the office scene; the first terminal device determines the first terminal device based on the target scene The network role of the second terminal device and the network role of the second terminal device, the network role is a master device or a slave device; the first terminal device combines the target scene, the network role of the first terminal device and the second terminal device The network role of the second terminal device is to connect to the network.
本申请提供的网络连接方法,当第一终端设备所处的场景发生变化时,第一终端设备可以根据变化后的场景确定第一终端设备的网络角色,进而结合变化后的场景确定第一终端设备所要连接的网络为WiFi网络、移动网络还是网络热点,即变化后的场景和终端设备的角色进行网络连接,这样,当第一终端设备所处场景发生变化时,第一终端设备能够根据变化后的场景确定新的网络连接方式,并且自动按照新的网络连接方式进行网络连接,无需用户手动切换多个终端设备之间的网络连接,能够在减小终端设备功耗的同时,提高网络连接的效率和灵活性。In the network connection method provided by this application, 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 determine the first terminal device based on the changed scene. Whether the network to be connected to the device is a WiFi network, a mobile network or a network hotspot, that is, the changed scene and the role of the terminal device are connected to the network. In this way, when the scene where the first terminal device is located changes, the first terminal device can The new network connection mode is determined in the final scene, and the network connection is automatically performed according to the new network connection mode. There is no need for the user to manually switch the network connection between multiple terminal devices, which can improve the network connection while reducing the power consumption of the terminal device. efficiency and flexibility.
应理解,热点共享功能指终端设备可以开启网络热点,也可以连接其他终端设备的网络热点。账号指用于终端设备注册的账户,用户在注册账户后,在终端设备中可以登录该账户对应的账号。同一用户可以在多个终端设备中登录同一账号,该多个终端设备之间互为可信设备,可信设备之间可以共享数据信息,例如网络热点的账号和密码等。家庭场景和办公场景是根据用户的生活场所和工作场所界定的,例如,当第一终端设备和第二终端设备位于用户工作的公司时,可以认为当前处于办公场景,当第一终端设备和第二终端设备位于用户的家中、朋友的家中以及其他的室内娱乐场所时,可以认为当前处于家庭场景。其他场景指除家庭场景和办公场景以外的场景,其他场景包括室外场景。It should be understood that the hotspot sharing function means that a terminal device can enable a network hotspot, and can also connect to a network hotspot of other terminal devices. The account refers to an account used for terminal device registration. After registering an account, the user can log in the account corresponding to the account in the terminal device. The same user can log in the same account in multiple terminal devices, and the multiple terminal devices are mutually 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 user's living place and work place. For example, when the first terminal device and the second terminal device are located in the company where the user works, it can be considered that they are currently in the office scene. When the first terminal device and the second When the second terminal device is located in the user's home, a friend's home, or other indoor entertainment places, it may be considered that it is currently in a home scene. Other scenes refer to scenes other than home scenes and office scenes, and other scenes include outdoor scenes.
在第一方面的某些实现方式中,所述第一终端设备为办公设备,所述第二终端设备为私人设备,所述目标场景为家庭场景,所述第一终端设备和所述第二终端设备均为主设备;所述第一终端设备结合所述目标场景、所述第一终端设备的网络角色以及所述第二终端设备的网络角色,连接网络,包括:在所述目标场景存在无线保真WiFi信号的情况下,所述第一终端设备连接所述目标场景下的WiFi网络。In some implementation manners of the first aspect, the first terminal device is an office device, the second terminal device is a personal device, the target scene is a home scene, and the first terminal device and the second The terminal devices are all master devices; the first terminal device connects to the network in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, including: existing in the target scene In the case of a wireless fidelity WiFi signal, the first terminal device connects to the WiFi network in the target scene.
应理解,在第一终端设备所处的场景变化之前,第一终端设备可能作为从设备连接第二终端设备的网络热点,或者,第一终端设备作为主设备为第二终端设备提供网络热点。当第一终端设备所处的场景变化为家庭场景后,第一终端设备和第二终端设备均可以连接WiFi网络,这样,第一终端设备的网络连接方式可以自动切换,减小主设备的功耗。It should be understood that before the scene where the first terminal device is located changes, the first terminal device may serve as a slave device to connect to the network hotspot of the second terminal device, or the first terminal device may serve as a master device to provide a network hotspot for the second terminal device. When the scene where the first terminal device is located changes to a home scene, both the first terminal device and the second terminal device can connect to the WiFi network. In this way, the network connection mode of the first terminal device can be automatically switched, reducing the power of the main device. consumption.
在第一方面的某些实现方式中,所述第一终端设备为私人设备,所述第二终端设备为办公设备,所述目标场景为家庭场景,所述第一终端设备和所述第二终端设备均为主设备;In some implementation manners of the first aspect, the first terminal device is a personal device, the second terminal device is an office device, the target scene is a home scene, and the first terminal device and the second The terminal equipment is the main equipment;
所述第一终端设备结合所述目标场景、所述第一终端设备的网络角色以及所述第二终端设备的网络角色,连接网络,包括:在所述目标场景存在WiFi信号的情况下,所述第一终端设备连接所述目标场景下的WiFi网络。The first terminal device connects to the network in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, including: when there is a WiFi signal in the target scene, the The first terminal device is connected to the WiFi network in the target scene.
应理解,在家庭场景中,私人设备和办公设备均可以连接家庭场景中存在的WiFi网络,此时不存在需要连接网络热点的终端设备。因此,第一终端设备和第二终端设备均作为主设备。It should be understood that in the home scene, both the personal device and the office device can be connected to the WiFi network existing in the home scene, and there is no terminal device that needs to connect to the network hotspot at this time. Therefore, both the first terminal device and the second terminal device 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 personal device, the target scene is another scene, the first terminal device is a slave device, and the The second terminal device is the main device; the first terminal device connects to the network in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, including: When the second terminal device turns on the network hotspot, the first terminal device connects to the network hotspot.
应理解,在其他场景下,私人设备和办公设备无法连接WiFi网络,这样,私人设备可以使用移动网络,同时私人设备作为主设备开启网络热点,办公设备可以作为从设备连接主设备的网络热点。因此,在第二终端设备开启网络热点的情况下,第一终端设备作为从设备连接网络热点。It should be understood that in other scenarios, private devices and office devices cannot connect to the WiFi network. In this way, the private device can use the mobile network, and at the same time, the private device acts as the master device to open the network hotspot, and the office device can serve as the slave device to connect to the network hotspot of the master device. Therefore, when the second terminal device turns on the network hotspot, the first terminal device connects to the network hotspot as a slave 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 an office scene, the first terminal device is a slave device, and the The second terminal device is the main device; the first terminal device connects to the network in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, including: When the second terminal device turns on the network hotspot, the first terminal device connects to the network hotspot.
应理解,在办公场景下,私人设备为从设备,办公设备为主设备,因此,第一终端设备的网络角色为从设备,第二终端设备为主设备。第二终端设备连接办公场景的WiFi网络,并开启网络热点,以供第一终端设备连接。It should be understood that in an office scenario, the private device is a slave device, and the office device is a master device. Therefore, 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 connects to the WiFi network in the office scene, and turns on a network hotspot for the first terminal device to connect to.
在第一方面的某些实现方式中,所述方法还包括:在所述第二终端设备未开启所述网络热点的情况下,所述第一终端设备向所述第二终端设备发送唤醒消息,所述唤醒消息用于通知所述第二终端设备开启所述网络热点;所述第一终端设备接收来自所述第二终端设备的网络热点信息,所述网络热点信息包括所述网络热点的账号信息和密码信息;所述第一终端设备连接所述网络热点,包括:所述第一终端设备根据所述网络热点信息,连接所述网络热点。In some implementations of the first aspect, the method further includes: when the second terminal device does not turn on the network hotspot, the first terminal device sends a wake-up message to the second terminal device , the wake-up message is used to notify the second terminal device to turn on the network hotspot; the first terminal device receives network hotspot information from the second terminal device, and the network hotspot information includes the network hotspot information Account information and password information; the first terminal device connecting to the network hotspot includes: the first terminal device connecting to 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, and the network role of the second terminal device is a master device. Sending a wake-up message for notifying the main device to turn on the network hotspot, for example, when the first terminal device turns on the screen, the first terminal device thinks that it has a network usage requirement, and then sends a wake-up message to the second terminal device. The second terminal device determines that the first terminal device has a network hotspot connection requirement according to the wake-up message, and then the second terminal device turns on the network hotspot, and sends network hotspot information to the first terminal device.
在第一方面的某些实现方式中,在所述第一终端设备连接所述网络热点之后,所述方法还包括:在所述第一终端设备处于休眠状态的情况下,所述第一终端设备向所述第二终端设备发送休眠通知消息,所述休眠通知消息用于通知所述第二终端设备所述第一终端设备处于休眠状态。In some implementations of the first aspect, after the first terminal device connects to the network hotspot, the method further includes: when the first terminal device is in a dormant state, the first terminal The device sends a sleep notification message to the second terminal device, where the sleep notification message is used to notify the second terminal device that the first terminal device is in a sleep state.
应理解,当第一终端设备作为从设备具有网络使用需求时,第二终端设备作为主设备开启网络热点,第一终端设备连接第二终端设备的网络热点。当第一终端设备处于休眠状态,即第一终端设备不具有网络使用需求时,为了减小第二终端设备的功耗,第一终端设备向第二终端设备发送用以通知第二终端设备关闭热点的休眠通知消息,这样,有助于减小第二终端设备的功耗。It should be understood that when the first terminal device has network usage requirements as a slave device, the second terminal device acts as a master device to open a network hotspot, and the first terminal device connects to the network hotspot of the second terminal device. When the first terminal device is in the dormant state, that is, when the first terminal device has no network usage requirements, in order to reduce the power consumption of the second terminal device, the first terminal device sends a notification to the second terminal device to shut down The sleep notification message of the hotspot, in this way, helps to reduce the power consumption of the second terminal device.
在第一方面的某些实现方式中,所述第一终端设备为私人设备,所述第二终端设备为办公设备,所述目标场景为其他场景,所述第一终端设备为主设备,所述第二终端设备为从设备;所述第一终端设备结合所述目标场景、所述第一终端设备的网络角色以及所述第二终端设备的网络角色,连接网络,包括:在所述目标场景存在移动网络信号的情况下,所述第一终端设备连接所述目标场景下的移动网络;所述方法还包括:所述第一终端设备开启网络热点。In some implementation manners of the first aspect, the first terminal device is a personal 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 The second terminal device is a slave device; the first terminal device connects to the network in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, including: When there is a mobile network signal in the scene, the first terminal device connects to the mobile network in the target scene; the method further includes: the first terminal device turns on a network hotspot.
应理解,第一终端设备为主设备,第二终端设备在其他场景下无法连接WiFi网络,同时,第二终端设备的移动网络流量较少或者不具有移动网络流量。因此,第一终端设备开启网络热点以供第二终端设备连接。It should be understood that the first terminal device is the master device, and 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 less or has no mobile network traffic. Therefore, the first terminal device opens a network hotspot for the second terminal device to connect to.
在第一方面的某些实现方式中,所述第一终端设备为办公设备,所述第二终端设备为私人设备,所述目标场景为办公场景,所述第一终端设备为主设备,所述第二终端设备为从设备;所述第一终端设备结合所述目标场景、所述第一终端设备的网络角色以及所述第二终端设备的网络角色,连接网络,包括:在所述目标场景存在WiFi信号的情况下,所述第一终端设备连接所述目标场景下的WiFi网络;所述方法还包括:所述第一终端设备开启网络热点。In some implementation manners of the first aspect, the first terminal device is an office device, the second terminal device is a personal device, the target scene is an office scene, the first terminal device is a master device, and the The second terminal device is a slave device; the first terminal device connects to the network in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device, including: When there is a WiFi signal in the scene, the first terminal device connects to the WiFi network in the target scene; the method further includes: the first terminal device turns on a network hotspot.
应理解,在办公场景下,办公设备可以连接WiFi网络,私人设备无法连接。此时,办公设备作为主设备,私人设备作为从设备,因此,第一终端设备作为主设备连接WiFi网络。同时,第一终端设备开启网络热点,以使第二终端设备连接网络热点。It should be understood that in an office scenario, office equipment can be connected to the WiFi network, but private equipment cannot be connected. At this time, the office device serves as the master device, and the private device serves as the slave device. Therefore, the first terminal device serves as the master device to connect to the WiFi network. At the same time, the first terminal device turns on the network hotspot, so that the second terminal device connects to the network hotspot.
在第一方面的某些实现方式中,在所述第一终端设备开启网络热点之前,所述方法还包括:所述第一终端设备接收来自所述第二终端设备的唤醒消息,所述唤醒消息用于通知所述第一终端设备开启所述网络热点;所述第一终端设备开启网络热点,包括:所述第一终端设备基于所述唤醒消息,开启所述网络热点。In some implementation manners of the first aspect, before the first terminal device turns on the network hotspot, the method further includes: the first terminal device receives a wake-up message from the second terminal device, and the wake-up The message is used to notify the first terminal device to enable the network hotspot; the first terminal device enabling the network hotspot includes: the first terminal device enabling the network hotspot based on the wake-up message.
应理解,第一终端设备的网络热点处于关闭状态,并且第二终端设备需要连接第一终端设备的网络热点时,需要先向第一终端设备发送用于通知第一终端设备开启网络热点的唤醒消息。第一终端设备接收唤醒消息后,开启网络热点。It should be understood that when the network hotspot of the first terminal device is turned off, and the second terminal device needs to connect to the network hotspot of the first terminal device, it is necessary to first send a wake-up call to the first terminal device to notify the first terminal device to turn on the network hotspot information. After receiving the wake-up message, the first terminal device turns on the network hotspot.
在第一方面的某些实现方式中,在所述第一终端设备开启网络热点之后,所述方法还包括:所述第一终端设备接收来自所述第二终端设备的休眠通知消息,所述休眠通知消息用于通知所述第一终端设备所述第二终端设备处于休眠状态;所述第一终端设备基于所述休眠通知消息,关闭所述网络热点。In some implementation manners of the first aspect, after the first terminal device turns on the network hotspot, the method further includes: the first terminal device receives a dormancy notification message from the second terminal device, the The dormancy notification message is used to notify the first terminal device that the second terminal device is in a dormancy state; the first terminal device closes the network hotspot based on the dormancy notification message.
应理解,当第一终端设备接收第二终端设备的休眠通知消息,说明第二终端设备无需再连接第一终端设备的网络热点,此时,第一终端设备关闭网络热点,这样,有助于减小第一终端设备的功耗。It should be understood that when the first terminal device receives the dormancy notification message of the second terminal device, indicating that the second terminal device no longer needs to connect to the network hotspot of the first terminal device, at this time, the first terminal device closes the network hotspot, which facilitates Reduce power consumption of the first terminal device.
在第一方面的某些实现方式中,所述第一终端设备确定变化后的目标场景为家庭场景、其他场景或者办公场景,包括:所述第一终端设备根据所述第一终端设备的地理位置和/或所述第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识,确定所述目标场景为家庭场景、其他场景或者办公场景。In some implementation manners of the first aspect, the determining by the first terminal device that the changed target scene is a family scene, other scenes or office scenes includes: the first terminal device The location 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 determines that the target scene is a home scene, another scene or an office scene.
应理解,WiFi网络标识可以指WiFi网络的名称。示例性地,WiFi网络列表包括第一终端设备的至少一个可用WiFi网络的名称,可用WiFi网络指WiFi信号能够覆盖第一终端设备所处位置的WiFi网络。在可用WiFi网络中,第一终端设备能够自动连接的WiFi网络称为待连接WiFi网络。第一终端设备预先存储了待连接WiFi网络的密码和名称,当第一终端设备移动至待连接WiFi网络的信号覆盖范围内时,第一终端设备可以自动连接该待连接WiFi网络。It should be understood that the WiFi network identifier may refer to the name of the WiFi network. Exemplarily, the WiFi network list includes the name of at least one available WiFi network of the first terminal device, and the available WiFi network refers to a WiFi network whose WiFi signal can cover the location where the first terminal device is located. Among available WiFi networks, a WiFi network to which the first terminal device can automatically connect is called a WiFi network to be connected. The first terminal device pre-stores the password and name of the WiFi network to be connected, and when the first terminal device moves within the signal coverage of the WiFi network to be connected, the first terminal device can automatically connect to the WiFi network to be connected.
第二方面,提供了一种网络连接装置,用于执行上述第一方面中任一种可能的实现方式中的方法。具体地,该装置包括用于执行上述第一方面中任一种可能的实现方式中的方法的模块。A second aspect provides a network connection device configured to execute the method in any possible implementation manner of the foregoing first aspect. Specifically, the apparatus includes a module configured to execute the method in any possible implementation manner of the foregoing first aspect.
第三方面,本申请提供了又一种网络连接装置,包括处理器,该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面中任一种可能实现方式中的方法。可选地,该装置还包括存储器。可选地,该装置还包括通信接口,处理器与通信接口耦合。In a third aspect, the present application provides yet another network connection device, including a processor, which is coupled to a memory and can be used to execute instructions in the memory, so as to implement the method in any possible implementation manner of the above first aspect . Optionally, the device further includes a memory. Optionally, the device further includes a communication interface, and the processor is coupled to the communication interface.
在一种实现方式中,该装置为终端设备。当该装置为终端设备时,上述通信接口可以是收发器,或,输入/输出接口。In an implementation manner, the apparatus is a terminal device. When the device is a terminal device, the above-mentioned communication interface may be a transceiver, or an input/output interface.
在另一种实现方式中,该装置为配置于终端设备中的芯片。当该装置为配置于终端设备中的芯片时,上述通信接口可以是输入/输出接口。In another implementation manner, the device is a chip configured in a terminal device. When the device is a chip configured in a terminal device, the aforementioned communication interface may be an input/output interface.
第四方面,提供了一种处理器,包括:输入电路、输出电路和处理电路。所述处理电路用于通过所述输入电路接收信号,并通过所述输出电路发射信号,使得所述处理器执行上述第一方面中任一种可能实现方式中的方法。In a fourth aspect, a processor is provided, including: an input circuit, an output circuit, and a 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 executes the method in any possible implementation manner of the above first aspect.
在具体实现流程中,上述处理器可以为芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于接收器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请实施例对处理器及各种电路的具体实现方式不做限定。In a specific implementation process, the above-mentioned processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a flip-flop, and various logic circuits. The input signal received by the input circuit may be received and input by, for example but not limited to, the receiver, the output signal of the output circuit may be, for example but not limited to, output to the transmitter and transmitted by the transmitter, and the input circuit and the output The circuit may be the same circuit, which is used as an input circuit and an output circuit respectively at different times. The embodiment of the present application does not limit the specific implementation manners of the processor and various circuits.
第五方面,提供了一种处理装置,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过接收器接收信号,通过发射器发射信号,以执行上述第一方面中任一种可能实现方式中的方法。In a fifth aspect, a processing device is provided, including a processor and a memory. The processor is used to read instructions stored in the memory, and may receive signals through the receiver and transmit signals through the transmitter, so as to execute the method in any possible implementation manner of the first aspect above.
可选地,所述处理器为一个或多个,所述存储器为一个或多个。Optionally, there are one or more processors, and one or more memories.
可选地,所述存储器可以与所述处理器集成在一起,或者所述存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be set separately from the processor.
在具体实现流程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory (non-transitory) memory, such as a read only memory (ROM), which can be integrated with the processor on the same chip, or can be set in different On the chip, the application does not limit the type of the memory and the arrangement of the memory and the processor.
应理解,相关的数据交互流程例如发送指示信息可以为从处理器输出指示信息的流程,接收能力信息可以为处理器接收输入能力信息的流程。具体地,处理输出的数据可以输出给发射器,处理器接收的输入数据可以来自接收器。其中,发射器和接收器可以统称为收发器。It should be understood that a related data interaction process, for example, sending indication information may be a process of outputting indication information from a processor, and receiving capability information may be a process of receiving input capability information by a processor. In particular, processed output data may be output to the transmitter, and input data received by the processor may be from the receiver. Wherein, the transmitter and the receiver may be collectively referred to as a transceiver.
上述第五方面中的处理装置可以是一个芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。The processing device in the above-mentioned fifth aspect may be a chip, and the processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc.; When implemented, the processor may be a general-purpose processor, which is realized by reading the software code stored in the memory, and the memory may be integrated in the processor, or it may be located outside the processor and exist independently.
第六方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当所述计算机程序被运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。According to a sixth aspect, a computer program product is provided, and the computer program product includes: a computer program (also referred to as code, or an instruction), which, when the computer program is executed, causes the computer to perform any of the above-mentioned first aspects. A method in one possible implementation.
第七方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a seventh aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program (also referred to as code, or instruction) which, when run on a computer, causes the computer to execute the above-mentioned first aspect. A method in any of the possible implementations.
附图说明Description of drawings
图1为本申请实施例的一种应用场景的示意图;FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application;
图2为本申请实施例的又一种应用场景的示意图;FIG. 2 is a schematic diagram of another application scenario of the embodiment of the present application;
图3为本申请实施例的另一种应用场景的示意图;FIG. 3 is a schematic diagram of another application scenario of the embodiment of the present application;
图4为本申请实施例提供的终端设备的结构示意图;FIG. 4 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
图5为本申请实施例的终端设备的软件结构框图;FIG. 5 is a block diagram of a software structure of a terminal device according to an embodiment of the present application;
图6为本申请实施例提供的一种网络连接方法的流程示意图;FIG. 6 is a schematic flowchart of a network connection method provided in an embodiment of the present application;
图7为本申请实施例提供的另一种网络连接方法的流程示意图;FIG. 7 is a schematic flowchart of another network connection method provided by the embodiment of the present application;
图8为本申请实施例提供的从设备和主设备交互过程示意图;FIG. 8 is a schematic diagram of an interaction process between a slave device and a master device provided in an embodiment of the present application;
图9为本申请实施例提供的又一种网络连接方法的流程示意图;FIG. 9 is a schematic flowchart of another network connection method provided by the embodiment of the present application;
图10为本申请实施例提供的一种网络连接装置的结构示意图;FIG. 10 is a schematic structural diagram of a network connection device provided in an embodiment of the present application;
图11为本申请实施例提供的另一种网络连接装置的结构示意图。FIG. 11 is a schematic structural diagram of another network connection device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一数值和第二数值仅仅是为了区分不同的数值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first numerical value and the second numerical value are only used to distinguish different numerical values, and the sequence thereof is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, words such as "exemplarily" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete manner.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a--c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a--c, b-c, or a-b-c, where a, b, c can be single or is multiple.
本申请实施例中的终端设备也可以称为:用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置等。The terminal equipment in the embodiment of the present application may also be referred to as: user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), access terminal, user unit, user station, Mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
终端设备可以是一种向用户提供语音/数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。目前,一些终端设备的举例包括:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、蜂窝电话、无绳电话、会话启动协议(sessioninitiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请对此并不限定。A terminal device may be a device that provides voice/data connectivity to users, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and the like. At present, some examples of terminal devices include: mobile phone (mobile phone), tablet computer, notebook computer, palmtop computer, mobile internet device (mobile internet device, MID), wearable device, virtual reality (virtual reality, VR) device, enhanced Augmented reality (AR) equipment, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, cellular phones, cordless phones, session initiation protocol , SIP) telephone, wireless local loop (wireless local loop, WLL) station, personal digital assistant (personal digital assistant, PDA), handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, vehicle Devices, wearable devices, terminal devices in the 5G network or terminal devices in the future evolved public land mobile network (PLMN), etc., are not limited in this application.
作为示例而非限定,在本申请中,终端设备可以是物联网(internet of things,IoT)系统中的终端设备。物联网是未来信息技术发展的重要组成部分,其主要技术特点是将物品通过通信技术与网络连接,从而实现人机互连,物物互连的智能化网络。示例性地,本申请实施例中的终端设备可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备是可以直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更可以通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。As an example but not a limitation, in this application, the terminal device may be a terminal device in an Internet of Things (Internet of Things, IoT) system. The Internet of Things is an important part of the development of information technology in the future. Its main technical feature is to connect objects to the network through communication technology, so as to realize the intelligent network of man-machine interconnection and object interconnection. Exemplarily, the terminal device in this embodiment of the present application may be a wearable device. Wearable devices can also be called wearable smart devices, which is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that can be worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not only a hardware device, but also can achieve powerful functions through software support, data interaction, and cloud interaction. Generalized wearable smart devices include full-featured, large-sized, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application functions, and need to cooperate with other devices such as smart phones Use, such as various smart bracelets and smart jewelry for physical sign monitoring.
作为示例而非限定,在本申请实施例中,终端设备还可以是机器类型通信(machine type communication,MTC)中的终端设备。此外,终端设备还可以是作为一个或多个部件或者单元而内置于车辆的车载模块、车载模组、车载部件、车载芯片或者车载单元等,车辆通过内置的所述车载模块、车载模组、车载部件、车载芯片或者车载单元等可以实施本申请提供的方法。因此,本申请实施例也可以应用于车联网,例如车辆外联(vehicleto everything,V2X)、车间通信长期演进技术(long term evolution-vehicle,LTE-V)、车到车(vehicle-to-vehicle,V2V)技术等。As an example but not a limitation, in this embodiment of the present application, the terminal device may also be a terminal device in machine type communication (machine type communication, MTC). In addition, the terminal device can also be an on-board module, on-board module, on-board component, on-board chip, or on-board unit built into the vehicle as one or more components or units. The on-board component, on-board chip, or on-board unit can implement the method provided in this application. Therefore, the embodiments of the present application can also be applied to the Internet of Vehicles, such as vehicle to everything (V2X), vehicle-to-vehicle communication long-term evolution technology (long term evolution-vehicle, LTE-V), vehicle-to-vehicle (vehicle-to-vehicle , V2V) technology, etc.
本申请涉及的网络设备可以是与终端设备通信的设备,该网络设备也可以称为接入网设备或无线接入网设备,它可以是传输接收点(transmission reception point,TRP),还可以是LTE系统中的演进型基站(evolved NodeB,eNB或eNodeB),还可以是家庭基站(例如,home evolved NodeB,或home Node B,HNB)、基带单元(base band unit,BBU),还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器,或者该网络设备可以为中继站、接入点、车载设备、可穿戴设备以及5G网络中的网络设备或者未来演进的PLMN网络中的网络设备等,还可以是WLAN中的接入点(access point,AP),还可以是NR系统中的gNB,上述网络设备还可以是城市基站、微基站、微微基站、毫微微基站等等,本申请对此不做限定。The network device involved in this application may be a device that communicates with a terminal device. The network device may also be called an access network device or a wireless access network device. It may be a transmission reception point (TRP), or a The evolved base station (evolved NodeB, eNB or eNodeB) in the LTE system can also be a home base station (for example, home evolved NodeB, or home Node B, HNB), a base band unit (base band unit, BBU), or a cloud A wireless controller in a wireless access network (cloud radio access network, CRAN) scenario, or the network device can be a relay station, an access point, a vehicle device, a wearable device, and a network device in a 5G network or a future evolved PLMN network The network equipment in the WLAN can also be the access point (access point, AP) in the WLAN, or the gNB in the NR system. The above-mentioned network equipment can also be a city base station, a micro base station, a pico base station, a femto base station, etc. etc., the present application does not make a limitation on this.
目前,为了合理安排工作和生活,一个用户通常需要多个终端设备。该多个终端设备可以包括用于娱乐和生活需要的私人设备,例如手机、智能手环、平板电脑等。该多个终端设备还可以包括用于工作需要的办公设备,例如台式电脑、笔记本电脑等。为了使同一用户的多个终端设备互为可信设备,多个终端设备可以登录相同的账号。用户的多个终端设备可以均具有热点共享功能,其中,提供网络热点的终端设备可以称为主设备,连接主设备网络热点的终端设备可以称为从设备。At present, in order to reasonably arrange work and life, a user usually needs multiple terminal devices. The plurality of terminal devices may include personal devices used for entertainment and daily needs, such as mobile phones, smart bracelets, tablet computers, and the like. The plurality of terminal devices may also include office devices required for work, such as desktop computers, notebook computers, and the like. In order to make multiple terminal devices of the same user mutually trusted devices, multiple terminal devices can log in with the same account. Multiple terminal devices of a user may all have a hotspot sharing function, wherein a terminal device providing a network hotspot may be called a master device, and a terminal device connected to the network hotspot of the master device may be called a slave device.
为了便于理解本申请,下面结合图1至图3对本申请实施例所涉及的应用场景进行介绍。In order to facilitate the understanding of the present application, the application scenarios involved in the embodiments of the present application will be introduced below with reference to FIG. 1 to FIG. 3 .
图1为本申请实施例的一种应用场景100的示意图。如图1所示,在应用场景100中,终端设备101和终端设备103登录有相同的账号,且均具有热点共享功能。终端设备101可以通过网络设备102连接WiFi信号,终端设备103可以连接终端设备101的网络热点。FIG. 1 is a schematic diagram of an
应用场景100可以为用户在公司办公的场景(简称为办公场景),终端设备101可以为用户的办公设备,例如笔记本电脑,终端设备103可以为用户的私人设备,例如手机。在应用场景100中,终端设备101连接的WiFi信号可以为公司的WiFi信号,并且用户的办公设备具有权限可以连接该WiFi信号,私人设备无法连接该WiFi信号。用户的办公设备可以开启网络热点,私人设备连接办公设备的网络热点。The
图2为本申请实施例的另一种应用场景200的示意图。如图2所示,在应用场景200中,终端设备201和终端设备203登录有相同的账号,且均具有热点共享功能。终端设备201具有移动网络信号,可以通过网络设备202使用移动网络上网,终端设备203可以连接终端设备201的网络热点。FIG. 2 is a schematic diagram of another
应用场景200可以为用户在不存在WiFi信号的室外活动的场景(属于本申请实施例的其他场景),终端设备201可以为用户的私人设备,例如手机,终端设备203可以为用户的办公设备,例如笔记本电脑。在应用场景200中,用户的私人设备可以连接移动网络,用户的办公设备不具有移动网络信号。用户的私人设备可以开启网络热点,办公设备连接私人设备的网络热点。The
图3为本申请实施例的又一种应用场景300的示意图。如图3所示,在应用场景300中,终端设备302和终端设备303登录有相同的账号,且均具有热点共享功能。终端设备302可以通过网络设备301连接WiFi信号,终端设备303也可以通过网络设备301连接WiFi信号。FIG. 3 is a schematic diagram of another
应用场景300可以为用户在家庭娱乐的场景(简称为家庭场景),终端设备302可以为用户的办公设备,例如笔记本电脑,终端设备303可以为用户的私人设备,例如手机。在应用场景300中,用户的办公设备和私人设备均具有权限可以连接家庭的WiFi信号。The
应理解,图1至图3仅是对本申请实施例的应用场景的示例,本申请实施例可以应用于但不限于上述的应用场景。并且,图1至图3中所示的终端设备和网络设备的产品形态和数量仅是示例性的,更多或更少的数量均属于本申请的保护范畴,且本申请不对终端设备和网络设备的产品形态做具体限制。It should be understood that FIGS. 1 to 3 are only examples of application scenarios of the embodiments of the present application, and the embodiments of the present application may be applied to but not limited to the above-mentioned application scenarios. Moreover, the product forms and quantities of terminal equipment and network equipment shown in Figures 1 to 3 are only exemplary, and more or less quantities belong to the scope of protection of this application, and this application does not apply to terminal equipment and network equipment. There are specific restrictions on the product form of the equipment.
为了更好的理解本申请实施例中的终端设备,下面结合图4对本申请实施例的终端设备的硬件结构进行详细说明。In order to better understand the terminal device in the embodiment of the present application, the hardware structure of the terminal device in the embodiment of the present application will be described in detail below with reference to FIG. 4 .
图4为本申请实施例提供的终端设备400的结构示意图。如图4所示,终端设备400可以包括处理器410,外部存储器接口420,内部存储器421,通用串行总线(universalserial bus,USB)接口430,充电管理模块440,电源管理模块441,电池442,天线1,天线2,移动通信模块450,无线通信模块460,音频模块470,扬声器470A,受话器470B,麦克风470C,耳机接口470D,传感器模块480,按键490,马达491,指示器492,摄像头493,显示屏494,以及用户标识模块(subscriber identification module,SIM)卡接口495等。其中传感器模块480可以包括压力传感器480A,陀螺仪传感器480B,气压传感器480C,磁传感器480D,加速度传感器480E,距离传感器480F,接近光传感器480G,指纹传感器480H,温度传感器480J,触摸传感器480K,环境光传感器480L,骨传导传感器480M等。FIG. 4 is a schematic structural diagram of a
可以理解的是,本申请实施例示意的结构并不构成对终端设备400的具体限定。在本申请另一些实施例中,终端设备400可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the
处理器410可以包括一个或多个处理单元,例如:处理器410可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器410中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器410中的存储器为高速缓冲存储器。该存储器可以保存处理器410刚用过或循环使用的指令或数据。如果处理器410需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器410的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器410可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器410可以包含多组I2C总线。处理器410可以通过不同的I2C总线接口分别耦合触摸传感器480K,充电器,闪光灯,摄像头493等。例如:处理器410可以通过I2C接口耦合触摸传感器480K,使处理器410与触摸传感器480K通过I2C总线接口通信,实现终端设备400的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments,
I2S接口可以用于音频通信。在一些实施例中,处理器410可以包含多组I2S总线。处理器410可以通过I2S总线与音频模块470耦合,实现处理器410与音频模块470之间的通信。在一些实施例中,音频模块470可以通过I2S接口向无线通信模块460传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments,
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块470与无线通信模块460可以通过PCM总线接口耦合。在一些实施例中,音频模块470也可以通过PCM接口向无线通信模块460传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器410与无线通信模块460。例如:处理器410通过UART接口与无线通信模块460中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块470可以通过UART接口向无线通信模块460传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can 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
MIPI接口可以被用于连接处理器410与显示屏494,摄像头493等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器410和摄像头493通过CSI接口通信,实现终端设备400的拍摄功能。处理器410和显示屏494通过DSI接口通信,实现终端设备400的显示功能。The MIPI interface can be used to connect the
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器410与摄像头493,显示屏494,无线通信模块460,音频模块470,传感器模块480等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the
USB接口430是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口430可以用于连接充电器为终端设备400充电,也可以用于终端设备400与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 430 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 430 can be used to connect a charger to charge the
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备400的结构限定。在本申请另一些实施例中,终端设备400也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the
充电管理模块440用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块440可以通过USB接口430接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块440可以通过终端设备400的无线充电线圈接收无线充电输入。充电管理模块440为电池442充电的同时,还可以通过电源管理模块441为终端设备供电。The
电源管理模块441用于连接电池442,充电管理模块440与处理器410。电源管理模块441接收电池442和/或充电管理模块440的输入,为处理器410,内部存储器421,显示屏494,摄像头493,和无线通信模块460等供电。电源管理模块441还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块441也可以设置于处理器410中。在另一些实施例中,电源管理模块441和充电管理模块440也可以设置于同一个器件中。The
终端设备400的无线通信功能可以通过天线1,天线2,移动通信模块450,无线通信模块460,调制解调处理器以及基带处理器等实现。The wireless communication function of the
天线1和天线2用于发射和接收电磁波信号。终端设备400中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in
移动通信模块450可以提供应用在终端设备400上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块450可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块450可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块450还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块450的至少部分功能模块可以被设置于处理器410中。在一些实施例中,移动通信模块450的至少部分功能模块可以与处理器410的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器470A,受话器470B等)输出声音信号,或通过显示屏494显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器410,与移动通信模块450或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to
无线通信模块460可以提供应用在终端设备400上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块460可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块460经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器410。无线通信模块460还可以从处理器410接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The
在一些实施例中,终端设备400的天线1和移动通信模块450耦合,天线2和无线通信模块460耦合,使得终端设备400可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC ,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system ,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the
终端设备400通过GPU,显示屏494,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏494和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器410可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The
显示屏494用于显示图像,视频等。显示屏494包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,终端设备400可以包括1个或N个显示屏494,N为大于1的正整数。The display screen 494 is used to display images, videos and the like. Display 494 includes a display panel. The display panel can use liquid crystal display (LCD), organic light-emitting diode (organic light-emitting diode, OLED), active matrix organic light-emitting diode or active-matrix organic light emitting diode (active-matrix organic light emitting diode) , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the
终端设备400可以通过ISP,摄像头493,视频编解码器,GPU,显示屏494以及应用处理器等实现拍摄功能。The
ISP 用于处理摄像头493反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头493中。The ISP is used to process the data fed back by the camera 493. For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 493 .
摄像头493用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备400可以包括1个或N个摄像头493,N为大于1的正整数。Camera 493 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备400在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the
视频编解码器用于对数字视频压缩或解压缩。终端设备400可以支持一种或多种视频编解码器。这样,终端设备400可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The
NPU为神经网络(neural-network ,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备400的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (neural-network, NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the
外部存储器接口420可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备400的存储能力。外部存储卡通过外部存储器接口420与处理器410通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器421可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器421可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备400使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器421可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器410通过运行存储在内部存储器421的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备400的各种功能应用以及数据处理。The internal memory 421 may be used to store computer-executable program code, which includes instructions. The internal memory 421 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phonebook, etc.) created during the use of the
终端设备400可以通过音频模块470,扬声器470A,受话器470B,麦克风470C,耳机接口470D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The
音频模块470用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块470还可以用于对音频信号编码和解码。在一些实施例中,音频模块470可以设置于处理器410中,或将音频模块470的部分功能模块设置于处理器410中。The
扬声器470A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备400可以通过扬声器470A收听音乐,或收听免提通话。
受话器470B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备400接听电话或语音信息时,可以通过将受话器470B靠近人耳接听语音。
麦克风470C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风470C发声,将声音信号输入到麦克风470C。终端设备400可以设置至少一个麦克风470C。在另一些实施例中,终端设备400可以设置两个麦克风470C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备400还可以设置三个,四个或更多麦克风470C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The
耳机接口470D用于连接有线耳机。耳机接口470D可以是USB接口430,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The
压力传感器480A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器480A可以设置于显示屏494。压力传感器480A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器480A,电极之间的电容改变。终端设备400根据电容的变化确定压力的强度。当有触摸操作作用于显示屏494,终端设备400根据压力传感器480A检测所述触摸操作强度。终端设备400也可以根据压力传感器480A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The
陀螺仪传感器480B可以用于确定终端设备400的运动姿态。在一些实施例中,可以通过陀螺仪传感器480B确定终端设备400围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器480B可以用于拍摄防抖。示例性地,当按下快门,陀螺仪传感器480B检测终端设备400抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备400的抖动,实现防抖。陀螺仪传感器480B还可以用于导航,体感游戏场景。The
气压传感器480C用于测量气压。在一些实施例中,终端设备400通过气压传感器480C测得的气压值计算海拔高度,辅助定位和导航。The
磁传感器480D包括霍尔传感器。终端设备400可以利用磁传感器480D检测翻盖皮套的开合。在一些实施例中,当终端设备400是翻盖机时,终端设备400可以根据磁传感器480D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 480D includes a Hall sensor. The
加速度传感器480E可检测终端设备400在各个方向上(一般为三轴)加速度的大小。当终端设备400静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。The
距离传感器480F,用于测量距离。终端设备400可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备400可以利用距离传感器480F测距以实现快速对焦。
接近光传感器480G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备400通过发光二极管向外发射红外光。终端设备400使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备400附近有物体。当检测到不充分的反射光时,终端设备400可以确定终端设备400附近没有物体。终端设备400可以利用接近光传感器480G检测用户手持终端设备400贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器480G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器480L用于感知环境光亮度。终端设备400可以根据感知的环境光亮度自适应调节显示屏494亮度。环境光传感器480L也可用于拍照时自动调节白平衡。环境光传感器480L还可以与接近光传感器480G配合,检测终端设备400是否在口袋里,以防误触。The ambient
指纹传感器480H用于采集指纹。终端设备400可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The
温度传感器480J用于检测温度。在一些实施例中,终端设备400利用温度传感器480J检测的温度,执行温度处理策略。例如,当温度传感器480J上报的温度超过阈值,终端设备400执行降低位于温度传感器480J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备400对电池442加热,以避免低温导致终端设备400异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备400对电池442的输出电压执行升压,以避免低温导致的异常关机。The
触摸传感器480K,也称“触控器件”。触摸传感器480K可以设置于显示屏494,由触摸传感器480K与显示屏494组成触摸屏,也称“触控屏”。触摸传感器480K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏494提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器480K也可以设置于终端设备400的表面,与显示屏494所处的位置不同。Touch sensor 480K, also known as "touch device". The touch sensor 480K can be arranged on the display screen 494, and the touch sensor 480K and the display screen 494 form a touch screen, also called “touch screen”. The touch sensor 480K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations can be provided through the display screen 494 . In some other embodiments, the touch sensor 480K may also be disposed on the surface of the
骨传导传感器480M可以获取振动信号。在一些实施例中,骨传导传感器480M可以获取人体声部振动骨块的振动信号。骨传导传感器480M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器480M也可以设置于耳机中,结合成骨传导耳机。音频模块470可以基于所述骨传导传感器480M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器480M获取的血压跳动信号解析心率信息,实现心率检测功能。The
按键490包括开机键,音量键等。按键490可以是机械按键。也可以是触摸式按键。终端设备400可以接收按键输入,产生与终端设备400的用户设置以及功能控制有关的键信号输入。The keys 490 include a power key, a volume key and the like. The key 490 may be a mechanical key. It can also be a touch button. The
马达491可以产生振动提示。马达491可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏494不同区域的触摸操作,马达491也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 491 can generate a vibrating prompt. The motor 491 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 491 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 494 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器492可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 492 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口495用于连接SIM卡。SIM卡可以通过插入SIM卡接口495,或从SIM卡接口495拔出,实现和终端设备400的接触和分离。终端设备400可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口495可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口495可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口495也可以兼容不同类型的SIM卡。SIM卡接口495也可以兼容外部存储卡。终端设备400通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备400采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备400中,不能和终端设备400分离。终端设备400的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备400的软件结构。The
图5为本申请实施例的终端设备400的软件结构框图。FIG. 5 is a block diagram of a software structure of a
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。如图5所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer can consist of a series of application packages. As shown in FIG. 5, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图5所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 5, the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供终端设备400的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is issued, the terminal device vibrates, and the indicator light flashes, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图、图像渲染、合成和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。内核层至少包含显示驱动,屏幕驱动、图像处理器(graphics processing unit,GPU)驱动、摄像头、以及传感器驱动等,本申请实施例对此不做限制。例如,屏幕驱动可以驱动屏幕亮屏或息屏。The kernel layer is the layer between hardware and software. The kernel layer is used to drive the hardware and make the hardware work. The kernel layer includes at least a display driver, a screen driver, an image processing unit (graphics processing unit, GPU) driver, a camera, and a sensor driver, etc., which are not limited in this embodiment of the present application. For example, the screen driver can drive the screen to turn on or off.
上述应用场景100、应用场景200以及应用场景300中的终端设备的硬件结构和软件结构可以如上述图4至图5所示,但本申请实施例对此不作限定。The hardware structure and software structure of the terminal devices in the
目前,在一个终端设备作为主设备连接另一作为从设备的终端设备的网络热点之后,即使该两个终端设备所处的场景发生变化,网络连接依然不会发生变化。以笔记本电脑和手机为例,在没有笔记本电脑和手机可以连接的WiFi信号的其他场景下,手机可以使用移动网络上网,并作为主设备开启网络热点,笔记本电脑作为从设备连接至手机的网络热点。当上述其他场景切换为办公场景时,存在公司的WiFi信号覆盖,但笔记本电脑仍连接手机的网络热点,为了减小手机的功耗,需要用户手动关闭手机的网络热点,并将笔记本电脑的网络连接至公司的WiFi网络。当上述其他场景切换为家庭场景时,手机可以自动连接至家庭的WiFi网络,为了减小手机的功耗,仍然需要用户手动关闭手机的网络热点,并将笔记本电脑的网络连接至家庭的WiFi网络。At present, after a terminal device as a master device connects to a network hotspot of another terminal device as a slave device, even if the scene where the two terminal devices are located changes, the network connection still does not change. Take a laptop and a mobile phone as an example. In other scenarios where there is no WiFi signal that the laptop and mobile phone can connect to, the mobile phone can use the mobile network to surf the Internet, and turn on the network hotspot as the master device, and the laptop connects to the network hotspot of the mobile phone as the slave device. . When the above other scene is switched to the office scene, the company’s WiFi signal coverage exists, but the laptop is still connected to the mobile phone’s network hotspot. In order to reduce the power consumption of the mobile phone, the user needs to manually turn off the mobile phone’s network Connect to your company's WiFi network. When the above other scenes are switched to the home scene, the mobile phone can automatically connect to the home WiFi network. In order to reduce the power consumption of the mobile phone, the user still needs to manually turn off the network hotspot of the mobile phone and connect the laptop network to the home WiFi network. .
综上所述,在终端设备的场景发生变化的情况下,需要用户手动切换多个终端设备之间的网络连接情况,使得终端设备的网络连接效率较低,且不够灵活。To sum up, when the scene of the terminal device changes, the user needs to manually switch the network connection status between multiple terminal devices, which makes the network connection of the terminal device less efficient and less flexible.
为了解决上述问题,本申请提供一种网络连接方法和装置,通过判断终端设备所处的场景是否发生变化,并根据变化后的场景确定终端设备的角色(即终端设备作为主设备或者从设备),结合变化后的场景和终端设备的角色进行网络连接。这样,能够根据变化后的场景确定新的网络连接方式,并且自动按照新的网络连接方式进行网络连接,能够在减小终端设备功耗的同时,提高网络连接的效率和灵活性。In order to solve the above problems, this application provides a network connection method and device, by judging whether the scene where the terminal device is located changes, and determining the role of the terminal device according to the changed scene (that is, the terminal device is a master device or a slave device) , in combination with the changed scene and the role of the terminal device for network connection. In this way, a new network connection mode can be determined according to the changed scene, and the network connection is automatically performed according to the new network connection mode, which can improve the efficiency and flexibility of the network connection while reducing the power consumption of the terminal device.
下面结合图6至图9对本申请的网络连接方法进行详细介绍,该方法适用于包括登录有相同账号的多个终端设备,多个终端设备均具有热点共享功能。共享热点的方法可以由上述多个终端设备中的任一终端设备执行,例如手机、智能手环、平板电脑、笔记本电脑、台式电脑等,本申请对此不做具体限制。下面,以多个终端设备中的第一终端设备和第二终端设备为例,对本申请实施例的网络连接方法进行详细说明。The following describes the network connection method of the present application in detail with reference to FIGS. 6 to 9 . This method is applicable to multiple terminal devices that log in with the same account, and multiple terminal devices have a hotspot sharing function. The method for sharing a hotspot can be performed by any terminal device among the above-mentioned multiple terminal devices, such as a mobile phone, a smart bracelet, a tablet computer, a notebook computer, a desktop computer, etc., and this application does not specifically limit it. In the following, the network connection method according to the embodiment of the present application will be described in detail by taking the first terminal device and the second terminal device among the multiple terminal devices as an example.
图6为本申请实施例提供的一种网络连接方法600的流程示意图。该方法600应用于包括第一终端设备和第二终端设备的系统,第一终端设备和第二终端设备均具有热点共享功能,用户在第一终端设备和第二终端设备上登录了相同的账号。方法600所涉及的终端设备的硬件结构可以如图4所示,软件结构可以如图5所示。该方法600包括以下步骤:FIG. 6 is a schematic flowchart of a
S601、在第一终端设备所处场景发生了变化的情况下,第一终端设备确定变化后的目标场景为家庭场景、其他场景或者办公场景,其他场景为除家庭场景和办公场景之外的场景。S601. When the scene where the first terminal device is located changes, the first terminal device determines that the target scene after the change is a family scene, other scenes, or an office scene, and the other scenes are scenes other than the home scene and the office scene. .
热点共享功能指终端设备可以开启网络热点,也可以连接其他终端设备的网络热点。示例性地,平板电脑具有热点共享功能,平板电脑可以连接WiFi信号,并开启网络热点,其他终端设备可以连接该平板电脑的网络热点。平板电脑也可以连接其他终端设备的网络热点。The hotspot sharing function means that the terminal device can turn on the network hotspot, and can also connect to the network hotspot of other terminal devices. Exemplarily, the tablet computer has a hotspot sharing function, the tablet computer can connect to a WiFi signal, and open a network hotspot, and other terminal devices can connect to the network hotspot of the tablet computer. Tablet PCs can also connect to network hotspots of other terminal devices.
应理解,账号指用于终端设备注册的账户,用户在注册账户后,在终端设备中可以登录该账户对应的账号。同一用户可以在多个终端设备中登录同一账号,该多个终端设备之间互为可信设备,可信设备之间可以共享数据信息,例如网络热点的账号和密码等。It should be understood that an account refers to an account used for registering a terminal device. After registering an account, the user can log in the account corresponding to the account in the terminal device. The same user can log in the same account in multiple terminal devices, and the multiple terminal devices are mutually trusted devices, and the trusted devices can share data information, such as account numbers and passwords of network hotspots.
上述家庭场景和办公场景是根据用户的生活场所和工作场所界定的,例如,当第一终端设备和第二终端设备位于用户工作的公司时,可以认为当前处于办公场景,当第一终端设备和第二终端设备位于用户的家中、朋友的家中以及其他的室内娱乐场所时,可以认为当前处于家庭场景。其他场景指除家庭场景和办公场景以外的场景,其他场景包括其他场景。The above-mentioned home scene and office scene are defined according to the user's living place and work place. For example, when the first terminal device and the second terminal device are located in the company where the user works, it can be considered that they are currently in the office scene. When the second terminal device is located in the user's home, a friend's home, or other indoor entertainment places, it may be considered that it is currently in a home scene. Other scenes refer to scenes other than home scenes and office scenes, and other scenes include other scenes.
应理解,家庭场景中的WiFi信号,用户的私人设备和办公设备均可以自动连接。办公场景中的WiFi信号,用户的办公设备可以自动连接,私人设备不可以连接。在其他场景中不存在WiFi信号。It should be understood that the WiFi signal in the home scene, the user's personal device and office device can all be automatically connected. For the WiFi signal in the office scene, the user's office equipment can be automatically connected, but the personal equipment cannot be connected. No WiFi signal exists in other scenarios.
目标场景指第一终端设备所处的场景变化后的场景。示例性地,第一终端设备所处的场景由第一场景变化为第二场景,则第二场景为目标场景。The target scene refers to a scene after the scene where the first terminal device is located changes. Exemplarily, if the scene where the first terminal device is located changes from the first scene to the second scene, then the second scene is the target scene.
S602、第一终端设备基于目标场景,确定第一终端设备的网络角色和第二终端设备的网络角色,网络角色为主设备或从设备。S602. Based on the target scenario, the first terminal device determines a network role of the first terminal device and a network role of the second terminal device, where the network role is a master device or a slave device.
应理解,主设备为能够开启网络热点,并使其他终端设备连接其网络热点的终端设备。从设备为能够连接主设备的网络热点的终端设备。It should be understood that the main device is a terminal device capable of opening a network hotspot and allowing other terminal devices to connect to its network hotspot. The slave device is a terminal device that can connect to the network hotspot of the master device.
上述系统包括第一终端设备和第二终端设备是指,该系统中包括至少两个终端设备。示例性地,该至少两个终端设备中既包括用户的私人设备,也包括用户的办公设备。第一终端设备和第二终端设备为上述至少两个终端设备中属性不同的两个设备,该属性指办公设备属性和私人设备属性。示例性地,若第一终端设备为办公设备,则第二终端设备为私人设备;若第一终端设备为私人设备,则第二终端设备而办公设备。第一终端设备和第二终端设备随着用户的移动而移动,当第一终端设备所处的场景发生变化时,则第二终端设备与第一终端设备所处的场景发生同样的变化。The foregoing system including the first terminal device and the second terminal device means that the system includes at least two terminal devices. Exemplarily, the at least two terminal devices include both the user's personal device and the user's office device. The first terminal device and the second terminal device are two devices with different attributes among the above 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, then the second terminal device is a personal device; if the first terminal device is a private device, then the second terminal device is an office device. The first terminal device and the second terminal device move 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 undergoes the same change.
可以理解,在不同的场景中,用户的私人设备和办公设备的网络连接情况不同,私人设备和办公设备的角色也不同。It can be understood that in different scenarios, the network connection conditions of the user's personal device and the office device are different, and the roles of the personal device and the office device are also different.
S603、第一终端设备结合目标场景、第一终端设备的网络角色以及第二终端设备的网络角色,连接网络。S603. The first terminal device connects to the network in combination with the target scene, the network role of the first terminal device, and the network role of the second terminal device.
连接网络指第一终端设备连接WiFi网络、移动网络或者网络热点。第一终端设备可以根据第一终端设备的网络角色确定其所要连接的网络。示例性地,若第一终端设备的网络角色为从设备时,则第一终端设备连接第二终端设备的网络热点。若第一终端设备的网络角色为主设备时,则第一终端设备可以连接WiFi网络或者移动网络。Connecting to the network means that the first terminal device is connected to a WiFi network, a mobile network or a network hotspot. The first terminal device may determine the network to be connected to according to the network role of the first terminal device. Exemplarily, if the network role of the first terminal device is a 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.
本申请实施例提供的网络连接方法,当第一终端设备所处的场景发生变化时,第一终端设备根据变化后的场景确定第一终端设备的网络角色(即第一终端设备作为主设备或者从设备),进而结合变化后的场景确定第一终端设备所要连接的网络为WiFi网络、移动网络还是网络热点,即结合变化后的场景和终端设备的角色进行网络连接,这样,当第一终端设备所处场景发生变化时,第一终端设备能够根据变化后的场景确定新的网络连接方式,并且自动按照新的网络连接方式进行网络连接,无需用户手动切换多个终端设备之间的网络连接,能够在减小终端设备功耗的同时,提高网络连接的效率和灵活性。In the network connection method provided by the embodiment of the present 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 (that is, the first terminal device acts as the master device or Slave device), and then combined with the changed scene to determine whether the network to be connected to the first terminal device is a WiFi network, a mobile network or a network hotspot, that is, to perform network connection in combination with the changed scene and the role of the terminal device, so that when the first terminal When the scene where the device is located changes, the first terminal device can determine a new network connection mode according to the changed scene, and automatically connect to the network according to the new network connection mode, without requiring the user to manually switch the network connection between multiple terminal devices , which can improve the efficiency and flexibility of network connection while reducing the power consumption of terminal equipment.
作为一个可选的实施例,上述S601可以通过如下方式实现:第一终端设备根据第一终端设备的地理位置和/或第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识,确定目标场景为家庭场景、其他场景或者办公场景。As an optional embodiment, the above S601 can be implemented in the following manner: the first terminal device according to the geographic location 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 , to determine the target scene as a family scene, other scenes, or an office scene.
在一种可能的实施方式中,第一终端设备可以根据第一终端设备的地理位置,确定目标场景为家庭场景、其他场景或者办公场景。In a possible implementation manner, the first terminal device may determine, according to the geographical location of the first terminal device, that the target scene is a family scene, another scene, or an office scene.
示例性地,第一终端设备预先存储有家庭场景对应的地理区域以及办公场景对应的地理区域。当第一终端设备的当前地理位置属于家庭场景对应的地理区域时,则第一终端设备可以确定目标场景为家庭场景;当第一终端设备的当前地理位置属于办公场景对应的地理区域时,则第一终端设备可以确定目标场景为办公场景;当第一终端设备的当前地理位置既不属于家庭场景对应的地理区域,也不属于办公场景对应的地理区域时,则第一终端设备可以确定目标场景为其他场景。Exemplarily, the first terminal device pre-stores a geographical area corresponding to a home scene and a geographical area corresponding to an office scene. When the current geographic location 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 a home scene; when the current geographic location of the first terminal device belongs to the geographic area corresponding to the office scene, then The first terminal device may determine that the target scene is an office scene; Scenes are other scenes.
在另一种可能的实施方式中,第一终端设备可以根据第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识,确定目标场景为家庭场景、其他场景或者办公场景。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 WiFi network to be connected in the WiFi network list of the first terminal device.
WiFi网络标识可以指WiFi网络的名称。示例性地,WiFi网络列表包括第一终端设备的至少一个可用WiFi网络的名称,可用WiFi网络指WiFi信号能够覆盖第一终端设备所处位置的WiFi网络。在可用WiFi网络中,第一终端设备能够自动连接的WiFi网络称为待连接WiFi网络。第一终端设备预先存储了待连接WiFi网络的密码和名称,当第一终端设备移动至待连接WiFi网络的信号覆盖范围内时,第一终端设备可以自动连接该待连接WiFi网络。The WiFi network identification may refer to the name of the WiFi network. Exemplarily, the WiFi network list includes the name of at least one available WiFi network of the first terminal device, and the available WiFi network refers to a WiFi network whose WiFi signal can cover the location where the first terminal device is located. Among available WiFi networks, a WiFi network to which the first terminal device can automatically connect is called a WiFi network to be connected. The first terminal device pre-stores the password and name of the WiFi network to be connected, and when the first terminal device moves within the signal coverage of the WiFi network to be connected, the first terminal device can automatically connect to the WiFi network to be connected.
应理解,不同的WiFi信号对应的WiFi网络的名称不同。家庭场景和办公场景中的WiFi信号不同,家庭场景和办公场景的WiFi网络的名称也不同。当第一终端设备的WiFi网络列表中出现家庭场景中的WiFi网络标识时,说明第一终端设备所处的场景为家庭场景;当第一终端设备的WiFi网络列表中出现办公场景中的WiFi网络标识时,说明第一终端设备所处的场景为办公场景;当第一终端设备的WiFi网络列表中不存在家庭场景中的WiFi网络标识和办公场景中的WiFi网络标识时,说明第一终端设备所处的场景为其他场景。It should be understood that different WiFi signals correspond to different names of WiFi networks. The WiFi signals in the home scene and the office scene are different, and the names of the WiFi networks in the home scene and the office scene are also different. When the WiFi network identifier in the home scene appears in the WiFi network list of the first terminal device, it indicates that the scene in which the first terminal device is located is a home scene; when the WiFi network in the office scene appears in the WiFi network list of the first terminal device When identifying, it indicates that the scene where the first terminal device is located is an office scene; when the WiFi network identification in the home scene and the WiFi network identification in the office scene do not exist in the WiFi network list of the first terminal device, it indicates that the first terminal device The scene you are in is another scene.
在又一种可能的实施方式中,第一终端设备可以根据第一终端设备的地理位置和第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识,确定目标场景为家庭场景、其他场景或者办公场景。In yet another possible implementation manner, the first terminal device may determine that the target scene is a home 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 , other scenes or office scenes.
在第一终端设备通过地理位置确定的目标场景和通过第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识确定的目标场景相同情况下,则目标场景是确定的。示例性地,第一终端设备通过地理位置确定的目标场景和通过第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识确定的目标场景均为家庭场景,则目标场景为家庭场景。If the target scene determined by the first terminal device through the geographic location is the same as 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 device, the target scene is determined. Exemplarily, the target scene determined by the first terminal device through the geographic location and 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 device are both home scenes, and the target scene is the home scene. Scenes.
在第一终端设备通过地理位置确定的目标场景和通过第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识确定的目标场景不相同情况下,第一终端设备可以直接以通过第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识确定的目标场景为准,或者,第一终端设备可以将目标场景确定为其他场景。示例性地,假设第一终端设备通过地理位置确定的目标场景为家庭场景,通过第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识确定的目标场景为办公场景。若以通过第一终端设备的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识确定的目标场景为准,则目标场景为办公场景;或者,目标场景也可以确定为其他场景。When the target scene determined by the first terminal device through the geographic location is different from 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 device, the first terminal device may directly use the 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 device shall prevail, or the first terminal device may determine the target scene as another scene. Exemplarily, it is assumed that the target scene determined by the first terminal device through the geographic location is the home scene, and 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 device is the 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 device prevails, the target scene is an office scene; or, the target scene can also be determined to be other scenes.
图7为本申请实施例提供的另一种网络连接方法700的流程示意图。该方法700应用于包括第一终端设备和第二终端设备的系统。在方法700中,第一终端设备为办公设备,第二终端设备为私人设备,第一终端设备和第二终端设备均具有热点共享功能,用户在第一终端设备和第二终端设备上登录了相同的账号。方法700所涉及的终端设备的硬件结构可以如图4所示,该终端设备的软件结构可以如图5所示。该方法700包括下列步骤:FIG. 7 is a schematic flowchart of another
S701、在第一终端设备所处场景发生了变化的情况下,第一终端设备确定变化后的目标场景为家庭场景、其他场景或者办公场景,其他场景为除家庭场景和办公场景之外的场景。S701. When the scene where the first terminal device is located changes, the first terminal device determines that the target scene after the change is a home scene, other scenes, or an office scene, and the other scenes are scenes other than the home scene and the office scene. .
应理解,S701的具体实施方式与图6中的S601相同,在此不再赘述。It should be understood that the specific implementation manner of S701 is the same as that of S601 in FIG. 6 , and will not be repeated here.
在一种可能的实现方式中,目标场景为其他场景,第一终端设备执行S702~S707。In a possible implementation manner, the target scene is other scenes, and the first terminal device executes S702-S707.
S702、第一终端设备基于目标场景,确定第一终端设备为从设备,第二终端设备为主设备。S702. Based on the target scene, the first terminal device determines that the first terminal device is a slave device, and that the second terminal device is a master device.
S703、第一终端设备确定第二终端设备是否开启网络热点;S703. The first terminal device determines whether the second terminal device enables a network hotspot;
若是,则执行S704;If yes, execute S704;
若否,则执行S705。If not, execute S705.
S704、在第二终端设备开启网络热点的情况下,第一终端设备连接网络热点。S704. When the second terminal device turns on the network hotspot, the first terminal device connects to the network hotspot.
应理解,在其他场景下,私人设备和办公设备无法连接WiFi网络,这样,私人设备可以使用移动网络,同时私人设备作为主设备开启网络热点,办公设备可以作为从设备连接主设备的网络热点。因此,在第二终端设备开启网络热点的情况下,第一终端设备作为从设备连接网络热点。It should be understood that in other scenarios, private devices and office devices cannot connect to the WiFi network. In this way, the private device can use the mobile network, and at the same time, the private device acts as the master device to open the network hotspot, and the office device can serve as the slave device to connect to the network hotspot of the master device. Therefore, when the second terminal device turns on the network hotspot, the first terminal device connects to the network hotspot as a slave device.
S705、在第二终端设备未开启网络热点的情况下,第一终端设备向第二终端设备发送唤醒消息,唤醒消息用于通知第二终端设备开启网络热点。S705. When the second terminal device does not enable 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 enable the network hotspot.
S706、第一终端设备接收来自第二终端设备的网络热点信息,网络热点信息包括网络热点的账号信息和密码信息。S706. The first terminal device receives network hotspot information from the second terminal device, where the network hotspot information includes 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 enabling the network hotspot.
S707、第一终端设备根据网络热点信息,连接网络热点。S707. The first terminal device connects to the network hotspot according to the network hotspot information.
第一终端设备向第二终端设备发送上述账号信息和密码信息,用以通过第二终端设备网络热点的权限验证,然后连接第二终端设备的网络热点,并通过该网络热点上网。The first terminal device sends the above account information and password information to the second terminal device to pass the authority verification of the network hotspot of the second terminal device, and then connects to the network hotspot of the second terminal device, and surfs the Internet through the network hotspot.
具体地,第一终端设备和第二终端设备的交互过程如图8所示,其中,第一终端设备的网络角色为从设备,第二终端设备的网络角色为主设备。在图8中,第一终端设备具有网络使用需求,第一终端设备向第二终端设备发送用于通知主设备开启网络热点的唤醒消息。第一终端设备确定具有网络使用需求,例如可以为第一终端设备亮屏。示例性地,第一终端设备可以通过蓝牙或者低功耗蓝牙向第二终端设备发送唤醒消息。唤醒消息中可以包括第一终端设备登录的账号信息。第二终端设备接收上述账号信息后,确认第一终端设备为可信设备,然后开启网络热点。第二终端设备将网络热点信息发送给第一终端设备,以便第一终端设备根据网络热点信息中的账号和密码连接网络热点。Specifically, the interaction process between the first terminal device and the second terminal device is shown in FIG. 8 , wherein the network role of the first terminal device is a slave device, and the network role of the second terminal device is a master device. In FIG. 8 , the first terminal device has a network usage requirement, and the first terminal device sends a wake-up message to the second terminal device to notify the main device to enable the network hotspot. The first terminal device determines that there is a network usage requirement, for example, the screen may be turned on for the first terminal device. Exemplarily, the first terminal device may send a wake-up message to the second terminal device through Bluetooth or Bluetooth low energy consumption. The wake-up message may include account information logged in by the first terminal device. After receiving the above account information, the second terminal device confirms that the first terminal device is a trusted device, and then turns on the network hotspot. The second terminal device sends the network hotspot information to the first terminal device, so that the first terminal device connects to the network hotspot according to the account number and 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 a dormant state, the first terminal device may send a dormancy notification message to the second terminal device, and the dormancy notification message uses to notify the second terminal device that the first terminal device is in a dormant state.
继续参照图8,当第一终端设备处于休眠状态,即第一终端设备不具有网络使用需求时,为了减小第二终端设备的功耗,第一终端设备向第二终端设备发送用以通知第二终端设备关闭热点的休眠通知消息。具体地,休眠通知消息可以通过蓝牙或者低功耗蓝牙的方式发送。第二终端设备接收该休眠通知消息,并根据该休眠通知消息关闭网络热点。Continuing to refer to FIG. 8 , when the first terminal device is in a dormant state, that is, when the first terminal device has no network usage requirements, in order to reduce the power consumption of the second terminal device, the first terminal device sends a notification to the second terminal device The second terminal device closes the dormancy notification message of the hotspot. Specifically, the dormancy notification message may be sent via Bluetooth or Bluetooth Low Energy. The second terminal device receives the dormancy notification message, and closes the network hotspot according to the dormancy notification message.
可选地,第二终端设备接收第一终端设备发送的休眠通知消息后,在第一预设时长内未接收到第一终端设备发送的唤醒消息,则第二终端设备关闭网络热点。Optionally, after receiving the dormancy 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, then the second terminal device closes the network hotspot.
第一预设时长与为预设的任意时长,例如可以为1min、5min等。当第一终端设备向第二终端设备发送休眠通知消息后,说明第一终端设备此时不具有网络使用需求。若第二终端设备在第一预设时长内接收第一终端设备发送的唤醒消息,说明第一终端设备只是短暂休眠,此时第二终端设备无需关闭网络热点。若第二终端设备在第一预设时长内未接收到第一终端设备发送的唤醒消息,说明第一终端设备短时间内不具有网络使用需求,此时第二终端设备关闭网络热点。The first preset duration and any preset duration may be, for example, 1 min, 5 min, and so on. When the first terminal device sends the dormancy notification message to the second terminal device, it indicates that the first terminal device does not have a network usage 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 period, it means that the first terminal device is only in sleep for a short time, and the second terminal device does not need to close the network hotspot at this time. If the second terminal device does not receive the wake-up message sent by the first terminal device within the first preset time period, it means that the first terminal device has no need for network use in a short period of time, and at this time the second terminal device turns off the network hotspot.
在另一种可能的实现方式中,目标场景为家庭场景,第一终端设备执行S708~S709。In another possible implementation manner, the target scene is a home scene, and the first terminal device executes S708-S709.
S708、第一终端设备基于目标场景,确定第一终端设备和第二终端设备均为主设备。S708. Based on the target scene, the first terminal device determines that both the first terminal device and the second terminal device are master devices.
应理解,在家庭场景中,私人设备和办公设备均可以连接家庭场景中存在的WiFi网络,此时不存在需要连接网络热点的终端设备。因此,第一终端设备和第二终端设备均作为主设备。It should be understood that in the home scene, both the personal device and the office device can be connected to the WiFi network existing in the home scene, and there is no terminal device that needs to connect to the network hotspot at this time. Therefore, both the first terminal device and the second terminal device act as master devices.
S709、在目标场景存在无线保真WiFi信号的情况下,第一终端设备连接目标场景下的WiFi网络。S709. In a case where there is a wireless fidelity WiFi signal in the target scene, the first terminal device connects to the WiFi network in the target scene.
在第一终端设备所处的场景变化之前,第一终端设备可能作为从设备连接第二终端设备的网络热点,或者,第一终端设备作为主设备为第二终端设备提供网络热点。当第一终端设备所处的场景变化为家庭场景后,第一终端设备可以连接WiFi网络,这样,第一终端设备的网络连接方式可以自动更换,减小第二终端设备的功耗。Before the scene where the first terminal device is located changes, the first terminal device may serve as a slave device to connect to the network hotspot of the second terminal device, or the first terminal device may serve as a master device to provide a network hotspot for the second terminal device. When the scene where the first terminal device is located changes to a home scene, the first terminal device can connect to the WiFi network. In this way, the network connection mode of the first terminal device can be automatically changed to reduce power consumption of the second terminal device.
在又一种可能的实现方式中,目标场景为办公场景,第一终端设备执行S710~S712。In yet another possible implementation manner, the target scene is an office scene, and the first terminal device executes S710-S712.
S710、第一终端设备基于目标场景,确定第一终端设备为主设备,第二终端设备为从设备。S710. Based on the target scene, the first terminal device determines that the first terminal device is a master device, and that the second terminal device is a slave device.
S711、在目标场景存在WiFi信号的情况下,第一终端设备连接目标场景下的WiFi网络。S711. When there is a WiFi signal in the target scene, the first terminal device connects to the WiFi network in the target scene.
S712、第一终端设备开启网络热点。S712. The first terminal device activates a network hotspot.
应理解,在办公场景下,办公设备可以连接WiFi网络,私人设备无法连接。此时,办公设备作为主设备,私人设备作为从设备,因此,第一终端设备作为主设备连接WiFi网络。同时,第一终端设备开启网络热点,以使第二终端设备连接网络热点。It should be understood that in an office scenario, office equipment can be connected to the WiFi network, but private equipment cannot be connected. At this time, the office device serves as the master device, and the private device serves as the slave device. Therefore, the first terminal device serves as the master device to connect to the WiFi network. At the same time, the first terminal device turns on the network hotspot, so that the second terminal device connects to the network hotspot.
作为一个可选的实施例,上述的S712可以通过如下方式实现:第一终端设备接收来自第二终端设备的唤醒消息,唤醒消息用于通知第一终端设备开启网络热点;第一终端设备基于唤醒消息,开启网络热点。As an optional embodiment, the above S712 can be implemented in the following manner: the first terminal device receives a wake-up message from the second terminal device, and the wake-up message is used to notify the first terminal device to turn on the network hotspot; message, and turn on the network hotspot.
在这种情况下,第一终端设备的网络角色为主设备,第二终端终端设备的网络角色为从设备。当第一终端设备的网络热点处于关闭状态,并且第二终端设备需要连接第一终端设备的网络热点时,需要先向第一终端设备发送用于通知第一终端设备开启网络热点的唤醒消息。第一终端设备接收唤醒消息后,开启网络热点,这样,第一终端设备的网络热点无需持续处于开启状态,减小了第一终端设备的功耗。In this case, the network role of the first terminal device is a master device, and the network role of the second terminal device is a slave device. When the network hotspot of the first terminal device is turned off and the second terminal device needs to connect to the network hotspot of the first terminal device, it is necessary to first send a wake-up message to the first terminal device to notify the first terminal device to turn on the network hotspot. After receiving the wake-up message, the first terminal device turns on the network hotspot. In this way, the network hotspot of the first terminal device does not need to be continuously turned on, thereby reducing power consumption of the first terminal device.
可选地,当第一终端设备的网络角色为主设备,第二终端终端设备的网络角色为从设备,并且第一终端设备的网络热点处于开启状态,第二终端设备已连接第一终端的网络热点的情况下,第一终端设备接收来自第二终端设备的休眠通知消息,休眠通知消息用于通知第一终端设备第二终端设备处于休眠状态;第一终端设备基于所述休眠通知消息,关闭网络热点。Optionally, when the network role of the first terminal device is the master device, the network role of the second terminal device is the slave device, and the network hotspot of the first terminal device is turned on, the second terminal device has connected to the In the case of a network hotspot, the first terminal device receives a dormancy notification message from the second terminal device, and the dormancy notification message is used to notify the first terminal device that the second terminal device is in a dormant state; based on the dormancy notification message, the first terminal device, Turn off internet hotspot.
应理解,当第一终端设备接收第二终端设备的休眠通知消息,说明第二终端设备无需再连接第一终端设备的网络热点,此时,第一终端设备关闭网络热点,这样,有助于减小第一终端设备的功耗。It should be understood that when the first terminal device receives the dormancy notification message of the second terminal device, indicating that the second terminal device no longer needs to connect to the network hotspot of the first terminal device, at this time, the first terminal device closes the network hotspot, which facilitates Reduce power consumption of the first terminal device.
图9为本申请实施例提供的又一种网络连接方法900的流程示意图。该方法900应用于包括第一终端设备和第二终端设备的系统。在方法900中,第一终端设备为私人设备,第二终端设备为办公设备,第一终端设备和第二终端设备均具有热点共享功能,用户在第一终端设备和第二终端设备上登录了相同的账号。方法900所涉及的终端设备的硬件结构可以如图4所示,该终端设备的软件结构可以如图5所示。该方法900包括下列步骤:FIG. 9 is a schematic flowchart of another
S901、在第一终端设备所处场景发生了变化的情况下,第一终端设备确定变化后的目标场景为家庭场景、其他场景或者办公场景,其他场景为除家庭场景和办公场景之外的场景。S901. When the scene where the first terminal device is located changes, the first terminal device determines that the target scene after the change is a family scene, other scenes, or an office scene, and the other scenes are scenes other than the home scene and the office scene. .
应理解,S901的具体实施方式与图6中的S601相同,在此不再赘述。It should be understood that the specific implementation manner of S901 is the same as that of S601 in FIG. 6 , and will not be repeated here.
在一种可能的实现方式中,目标场景为其他场景,第一终端设备执行S902~S904。In a possible implementation manner, the target scene is other scenes, and the first terminal device executes S902-S904.
S902、第一终端设备基于目标场景,确定第一终端设备为主设备,第二终端设备为从设备。S902. Based on the target scene, the first terminal device determines that the first terminal device is a master device, and the second terminal device is a slave device.
第一终端设备为私人设备,在其他场景下,私人设备可以连接移动网络,私人设备的网络角色为主设备。第二终端设备为办公设备,办公设备无法连接移动网络,因此,办公设备的网络角色为从设备。The first terminal device is a private device. In other scenarios, the private device can connect to the mobile network, and the network role of the private device is the master device. The second terminal device is an office device, and the office device cannot connect to the mobile network. Therefore, the network role of the office device is a slave device.
S903、在目标场景存在移动网络信号的情况下,第一终端设备连接目标场景下的移动网络。S903. If there is a mobile network signal in the target scene, the first terminal device connects to the mobile network in the target scene.
应理解,移动网络信号可以为蜂窝流量,私人设备可以具有不限量的蜂窝流量,这样,在其他场景下,私人设备可以作为主设备为办公设备提供网络热点。It should be understood that the mobile network signal can be cellular traffic, and the private device can have unlimited cellular traffic. In this way, in other scenarios, the private device can serve as the main device to provide a network hotspot for the office device.
S904、第一终端设备开启网络热点。S904. The first terminal device activates a network hotspot.
应理解,第一终端设备可以具有更多或者不限量的移动网络流量,第二终端设备在其他场景下无法连接WiFi网络,同时,第二终端设备的移动网络流量较少或者不具有移动网络流量。因此,第一终端设备开启网络热点以供第二终端设备连接。It should be understood that the first terminal device may have more or unlimited mobile network traffic, the second terminal device cannot connect to the WiFi network in other scenarios, and at the same time, the second terminal device has less mobile network traffic or no mobile network traffic . Therefore, the first terminal device opens a network hotspot for the second terminal device to connect to.
应理解,S904的具体实施方式与S712类似,在此不再赘述。It should be understood that the specific implementation manner of S904 is similar to that of S712 and will not be repeated here.
在另一种可能的实现方式中,目标场景为家庭场景,第一终端设备执行S905~S906。In another possible implementation manner, the target scene is a home scene, and the first terminal device executes S905-S906.
S905、第一终端设备基于目标场景,确定第一终端设备和第二终端设备均为主设备。S905. Based on the target scene, the first terminal device determines that both the first terminal device and the second terminal device are master devices.
S906、在目标场景存在无线保真WiFi信号的情况下,第一终端设备连接目标场景下的WiFi网络。S906. In a case where a wireless fidelity WiFi signal exists in the target scene, the first terminal device connects to the WiFi network in the target scene.
应理解,S905~S906的具体实施方式与方法700家庭场景中S708~S709类似,在此不再赘述。It should be understood that the specific implementation manners of S905-S906 are similar to those of S708-S709 in the family scenario of the
在又一种可能的实现方式中,目标场景为办公场景,第一终端设备执行S907~S912。In yet another possible implementation manner, the target scene is an office scene, and the first terminal device executes S907-S912.
S907、第一终端设备基于目标场景,确定第一终端设备为从设备,第二终端设备为主设备。S907. Based on the target scene, the first terminal device determines that the first terminal device is a slave device, and the second terminal device is a master device.
S908、第一终端设备确定第二终端设备是否开启网络热点;S908. The first terminal device determines whether the second terminal device enables a network hotspot;
若是,则执行S909;If yes, execute S909;
若否,则执行S910。If not, execute S910.
S909、在第二终端设备开启网络热点的情况下,第一终端设备连接网络热点。S909. When the second terminal device turns on the network hotspot, the first terminal device connects to the network hotspot.
应理解,在办公场景下,私人设备为从设备,办公设备为主设备,因此,第一终端设备的网络角色为从设备,第二终端设备为主设备。第二终端设备连接办公场景的WiFi网络,并开启网络热点,以供第一终端设备连接。It should be understood that in an office scenario, the private device is a slave device, and the office device is a master device. Therefore, 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 connects to the WiFi network in the office scene, and turns on a network hotspot for the first terminal device to connect to.
S910、在第二终端设备未开启网络热点的情况下,第一终端设备向第二终端设备发送唤醒消息,唤醒消息用于通知第二终端设备开启网络热点。S910. When the second terminal device does not enable 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 enable the network hotspot.
S911、第一终端设备接收来自第二终端设备的网络热点信息,网络热点信息包括网络热点的账号信息和密码信息。S911. The first terminal device receives network hotspot information from the second terminal device, where the network hotspot information includes account information and password information of the network hotspot.
S912、第一终端设备根据网络热点信息,连接网络热点。S912. The first terminal device connects to the network hotspot according to the network hotspot information.
应理解,S907~S912的具体实施方式中与方法700其他场景中S702~S707类似,在此不在赘述。It should be understood that the specific implementation manners of S907-S912 are similar to those of S702-S707 in other scenarios of the
下面结合表一对目前的网络连接方法和本申请实施例提供的网络连接方法进行对比说明。A comparison between the current network connection method and the network connection method provided by the embodiment of the present application will be described below with reference to the table.
表一 目前的网络连接方法和本申请实施例的网络连接方法对比Table 1 Comparison between the current network connection method and the network connection method of the embodiment of the present application
从表一可以看出,当应用场景由办公场景或家庭场景变化为其他场景时,在目前的网络连接方法中,私人设备通常具有较多的移动网络流量,私人设备连接移动网络。当办公设备具有移动网络信号时,则办公设备也连接移动网络;当办公设备不具有移动网络信号时,办公设备无法上网。在本申请实施例的网络连接方法中,随着应用场景由办公场景或家庭场景变化为其他场景时,办公设备会自动连接私人设备的网络热点,这样,无需用户手动使办公设备连接私人设备的网络热点,提高网络连接效率。It can be seen from Table 1 that when the application scenario changes from the office scenario or the home scenario to other scenarios, in the current network connection method, the private device usually has more mobile network traffic, and the private device is connected to the mobile network. When the office equipment has a mobile network signal, the office equipment is also connected to the mobile network; when the office equipment does not have a mobile network signal, the office equipment cannot access the Internet. In the network connection method of the embodiment of the present application, as the application scene changes from the office scene or the home scene to other scenes, the office device will automatically connect to the network hotspot of the private device, so that the user does not need to manually connect the office device to the private device. Network hotspots, improve network connection efficiency.
在其他场景中,私人设备连接移动网络,办公设备连接私人设备的网络热点。当用户的终端设备的应用场景由其他场景变化为办公场景或家庭场景时,在目前的网络连接方法中,办公设备仍然连接私人设备的网络热点,使得私人设备的功耗较大。在本申请实施例的网络连接方法中,当应用场景由其他场景变化为办公场景时,办公设备连接WiFi网络,私人设备连接办公设备的网络热点。当应用场景由其他场景变化为家庭场景时,办公设备和私人设备均连接WiFi网络。本申请实施例的网络连接方法有助于减小终端设备功耗,并且提高网络连接的效率和灵活性。In other scenarios, the private device is connected to the mobile network, and the office device is connected to the network hotspot of the private device. When the application scenario of the user's terminal device changes from other scenarios to an office scenario or a home scenario, in the current network connection method, the office device is still connected to the network hotspot of the private device, which makes the power consumption of the private device larger. In the network connection method of the embodiment of the present application, when the application scene is changed from another scene to an office scene, the office device is connected to the WiFi network, and the private device is connected to the network hotspot of the office device. When the application scenario changes from other scenarios to home scenarios, both office equipment and private equipment are connected to the WiFi network. The network connection method in the embodiment of the present application helps to reduce the power consumption of the terminal device, and improves the efficiency and flexibility of the network connection.
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
上文结合图6至图9,详细描述了本申请实施例的网络连接方法,下面结合图10和图11,详细描述本申请实施例的网络连接装置。The network connection method of the embodiment of the present application is described in detail above with reference to FIG. 6 to FIG. 9 , and the network connection device of the embodiment of the present application is described in detail below with reference to FIG. 10 and FIG. 11 .
图10为本申请实施例提供的一种网络连接装置1000的结构示意图。如图10所示,装置1000包括:确定模块1001和处理模块1002。FIG. 10 is a schematic structural diagram of a network connection device 1000 provided by an embodiment of the present application. As shown in FIG. 10 , an apparatus 1000 includes: a determining module 1001 and a processing module 1002 .
在一种可能的实现方式中,该装置1000用于实现上述方法600中第一终端设备对应的步骤。In a possible implementation manner, the apparatus 1000 is configured to implement the steps corresponding to the first terminal device in the foregoing
确定模块1001,用于在装置1000所处场景发生了变化的情况下,确定变化后的目标场景为家庭场景、其他场景或者办公场景,其他场景为除家庭场景和办公场景之外的场景;基于目标场景,确定装置1000的网络角色和第二终端设备的网络角色,网络角色为主设备或从设备;The determining module 1001 is configured to determine that the changed target scene is a family scene, other scenes or office scenes when the scene where the device 1000 is located is changed, and the other scenes are scenes other than the home scene and the office scene; based on Target scenario, determine the network role of the apparatus 1000 and the network role of the second terminal device, the network role is master device or slave device;
处理模块1002,用于结合目标场景、装置1000的网络角色以及第二终端设备的网络角色,连接网络。The processing module 1002 is configured to connect to the network in combination with the target scene, the network role of the apparatus 1000 and the network role of the second terminal device.
可选地,装置1000为办公设备,第二终端设备为私人设备,目标场景为家庭场景,装置1000和第二终端设备均为主设备;处理模块1002具体用于:在目标场景存在无线保真WiFi信号的情况下,连接目标场景下的WiFi网络。Optionally, the device 1000 is an office device, the second terminal device is a personal device, the target scene is a home scene, and both the device 1000 and the second terminal device are master devices; In the case of WiFi signal, connect to the WiFi network in the target scene.
可选地,装置1000为私人设备,第二终端设备为办公设备,目标场景为家庭场景,装置1000和第二终端设备均为主设备;处理模块1002具体用于:在目标场景存在WiFi信号的情况下,连接目标场景下的WiFi网络。Optionally, the device 1000 is a personal device, the second terminal device is an office device, and the target scene is a home scene, and both the device 1000 and the second terminal device are master devices; the processing module 1002 is specifically used for: if there is a WiFi signal in the target scene In this case, connect to the WiFi network in the target scene.
可选地,装置1000为办公设备,第二终端设备为私人设备,目标场景为其他场景,装置1000为从设备,第二终端设备为主设备;处理模块1002具体用于:在第二终端设备开启网络热点的情况下,连接网络热点。Optionally, the device 1000 is an office device, the second terminal device is a personal device, the target scene is other scenes, the device 1000 is a slave device, and the second terminal device is a master device; the processing module 1002 is specifically used to: When the network hotspot is turned on, connect to the network hotspot.
可选地,装置1000为私人设备,第二终端设备为办公设备,目标场景为办公场景,装置1000为从设备,第二终端设备为主设备;处理模块1002具体用于:在第二终端设备开启网络热点的情况下,连接网络热点。Optionally, the device 1000 is a personal device, the second terminal device is an office device, the target scene is an office scene, the device 1000 is a slave device, and the second terminal device is a master device; the processing module 1002 is specifically used to: When the network hotspot is turned on, connect to the network hotspot.
可选地,处理模块1002还用于:在第二终端设备未开启网络热点的情况下,向第二终端设备发送唤醒消息,唤醒消息用于通知第二终端设备开启网络热点;上述装置1000还包括收发模块,用于接收来自第二终端设备的网络热点信息,网络热点信息包括网络热点的账号信息和密码信息;处理模块1002还用于:根据网络热点信息,连接网络热点。Optionally, the processing module 1002 is further configured to: send a wake-up message to the second terminal device when the second terminal device has not turned on the network hotspot, and the wake-up message is used to notify the second terminal device to turn on the network hotspot; It includes a transceiver module for receiving network hotspot information from the second terminal device, where the network hotspot information includes account information and password information of the network hotspot; the processing module 1002 is also used for: connecting to the network hotspot according to the network hotspot information.
可选地,上述装置1000还包括收发模块,用于在装置1000处于休眠状态的情况下,向第二终端设备发送休眠通知消息,休眠通知消息用于通知第二终端设备装置1000处于休眠状态。Optionally, the above-mentioned apparatus 1000 further includes a transceiver module, configured to send a dormancy notification message to the second terminal device when the apparatus 1000 is in the dormant state, and the dormancy notification message is used to notify the second terminal device that the apparatus 1000 is in the dormant state.
可选地,装置1000为私人设备,第二终端设备为办公设备,目标场景为其他场景,装置1000为主设备,第二终端设备为从设备;处理模块1002具体用于:在目标场景存在移动网络信号的情况下,连接目标场景下的移动网络;开启网络热点。Optionally, the device 1000 is a personal device, the second terminal device is an office device, and the target scene is another scene, the device 1000 is a master device, and the second terminal device is a slave device; In the case of network signal, connect to the mobile network in the target scene; turn on the network hotspot.
可选地,装置1000为办公设备,第二终端设备为私人设备,目标场景为办公场景,装置1000为主设备,第二终端设备为从设备;处理模块1002具体用于:在目标场景存在WiFi信号的情况下,连接目标场景下的WiFi网络;开启网络热点。Optionally, the device 1000 is an office device, the second terminal device is a private device, the target scene is an office scene, the device 1000 is a master device, and the second terminal device is a slave device; the processing module 1002 is specifically used for: there is WiFi in the target scene In the case of a signal, connect to the WiFi network in the target scene; turn on the network hotspot.
可选地,上述装置1000还包括收发模块,用于接收来自第二终端设备的唤醒消息,唤醒消息用于通知装置1000开启网络热点;处理模块1002还用于:基于唤醒消息,开启网络热点。Optionally, the above-mentioned apparatus 1000 further includes a transceiver module, configured to receive a wake-up message from the second terminal device, the wake-up message is used to notify the apparatus 1000 to enable the network hotspot; the processing module 1002 is also configured to: enable the network hotspot based on the wake-up message.
可选地,上述装置1000还包括收发模块,用于接收来自第二终端设备的休眠通知消息,休眠通知消息用于通知装置1000第二终端设备处于休眠状态;处理模块1002还用于:基于休眠通知消息,关闭网络热点。Optionally, the above-mentioned apparatus 1000 further includes a transceiver module, configured to receive a dormancy notification message from the second terminal device, and the dormancy notification message is used to notify the apparatus 1000 that the second terminal device is in a dormant state; the processing module 1002 is also configured to: Notification message, turn off network hotspot.
可选地,确定模块1001具体用于:根据装置1000的地理位置和/或装置1000的WiFi网络列表中至少一个待连接WiFi网络的WiFi网络标识,确定目标场景为家庭场景、其他场景或者办公场景。Optionally, the determining module 1001 is specifically configured to: determine that the target scene is a family scene, other scene or an office scene 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 .
应理解,这里的装置1000以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选的例子中,本领域技术人员可以理解,装置1000可以具体为上述实施例中的第一终端设备,装置1000可以用于执行上述方法实施例中与第一终端设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the apparatus 1000 here is embodied in the form of functional modules. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality. In an optional example, those skilled in the art can understand that the apparatus 1000 may specifically be the first terminal device in the above embodiment, and the apparatus 1000 may be used to execute each process corresponding to the first terminal device in the above method embodiment And/or steps, in order to avoid repetition, no more details are given here.
上述装置1000具有实现上述方法中第一终端设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。例如,上述处理模块1002可以包括连接模块,该连接模块可以用于实现上述处理模块1002对应的用于执行连接动作的各个步骤和/或流程。The above-mentioned apparatus 1000 has the function of implementing the corresponding steps performed by the first terminal device in the above-mentioned method; the above-mentioned functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. For example, the processing module 1002 may include a connection module, and the connection module may be used to implement various steps and/or processes corresponding to the processing module 1002 for performing a connection action.
在本申请的实施例,图10中的装置1000也可以是芯片,例如:SOC。对应地,处理模块1002可以是该芯片的收发电路,在此不做限定。In the embodiment of the present application, the device 1000 in FIG. 10 may also be a chip, for example: SOC. Correspondingly, the processing module 1002 may be a transceiver circuit of the chip, which is not limited here.
图11示出了本申请实施例提供的另一种网络连接装置1100的结构示意图。该装置1100包括处理器1101、收发器1102和存储器1103。其中,处理器1101、收发器1102和存储器1103通过内部连接通路互相通信,该存储器1103用于存储指令,该处理器1101用于执行该存储器1103存储的指令,以控制该收发器1102发送信号和/或接收信号。FIG. 11 shows a schematic structural diagram of another network connection device 1100 provided by an embodiment of the present application. 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 communicate with each other through an internal connection path, the memory 1103 is used to store instructions, and the processor 1101 is used to execute the instructions stored in the memory 1103 to control the transceiver 1102 to send signals and /or to receive a signal.
应理解,装置1100可以具体为上述实施例中的第一终端设备,并且可以用于执行上述方法实施例中与第一终端设备对应的各个步骤和/或流程。可选地,该存储器1103可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器1101可以用于执行存储器中存储的指令,并且当该处理器1101执行存储器中存储的指令时,该处理器1101用于执行上述方法实施例的各个步骤和/或流程。该收发器1102可以包括发射器和接收器,该发射器可以用于实现上述收发器对应的用于执行发送动作的各个步骤和/或流程,该接收器可以用于实现上述收发器对应的用于执行接收动作的各个步骤和/或流程。It should be understood that the apparatus 1100 may specifically be the first terminal device in the foregoing embodiments, and may be configured to execute various steps and/or processes corresponding to the first terminal device in the foregoing method embodiments. Optionally, the memory 1103 may include 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 used to execute instructions stored in the memory, and when the processor 1101 executes the instructions stored in the memory, the processor 1101 is used to execute various steps and/or processes of the above method embodiments. The transceiver 1102 may include a transmitter and a receiver, the transmitter may be used to implement various steps and/or processes for performing sending actions corresponding to the above transceiver, and the receiver may be used to implement the application corresponding to the above transceiver Various steps and/or processes for performing receiving actions.
应理解,在本申请实施例中,该处理器可以是中央处理单元(central processingunit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC) , field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor executes the instructions in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质用于存储计算机程序,该计算机程序用于实现上述方法实施例中所示的方法。The present application also provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is used to implement the methods shown in the above method embodiments.
本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序(也可以称为代码,或指令),当该计算机程序在计算机上运行时,该计算机可以执行上述方法实施例所示的方法。The present application also provides a computer program product. The computer program product includes a computer program (also called code, or instruction). When the computer program is run on a computer, the computer can execute the above-mentioned methods shown in the above method embodiments. method.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device, and module can refer to the corresponding process in the foregoing method embodiment, and details are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above is only the specific implementation of the application, but the protection scope of the embodiment of the application is not limited thereto, and any skilled person familiar with the technical field can easily think of changes within the technical scope disclosed in the embodiment of the application Or replacement, should be covered within the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.
Claims (26)
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)
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 Wi-Fi hotspot connection method 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 | 中兴通讯股份有限公司 | A network sharing method, device, electronic device and storage medium |
Family Cites Families (7)
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 |
-
2022
- 2022-09-28 CN CN202211186293.8A patent/CN115297530B/en active Active
Patent Citations (11)
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 Wi-Fi hotspot connection method 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 | 中兴通讯股份有限公司 | A network sharing method, device, electronic device 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)
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 |
---|---|---|
CN114079893B (en) | Bluetooth communication method, terminal device and computer-readable storage medium | |
CN114125130B (en) | Method for controlling communication service state, terminal device and readable storage medium | |
CN111371849A (en) | Data processing method and electronic device | |
CN115798390B (en) | Screen display method and terminal equipment | |
CN112684969A (en) | Always displaying method and mobile device | |
US20240098354A1 (en) | Connection establishment method and electronic device | |
CN114095599B (en) | Message display method and electronic device | |
CN112543447A (en) | Device discovery method based on address list, audio and video communication method and electronic device | |
CN114880251B (en) | Storage unit access method, access device and terminal equipment | |
WO2022262492A1 (en) | Data downloading method and apparatus, and terminal device | |
CN116077943B (en) | Method for scheduling system resources and related device | |
WO2022152167A1 (en) | Network selection method and device | |
CN114222020B (en) | Position relation identification method and device and readable storage medium | |
CN116232959B (en) | Network quality detection method and device | |
CN111801931B (en) | The method of connecting and hanging up the call when SRVCC switching occurs in the call | |
CN116095224B (en) | Notification display method and terminal device | |
CN115297530B (en) | Network connection method and device | |
WO2023109636A1 (en) | Application card display method and apparatus, terminal device, and readable storage medium | |
CN116321265A (en) | Network quality evaluation method, electronic device and storage medium | |
CN115706994A (en) | Access control method and electronic equipment | |
CN113905334A (en) | Method and device for information sharing | |
WO2020062308A1 (en) | Location information processing method and related device | |
CN115619628B (en) | Image processing method and terminal equipment | |
CN116382728B (en) | Propagation name display method and terminal equipment | |
CN116738033B (en) | Method and device for recommending service |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |