技术领域technical field
本发明涉及网络连接技术,尤其涉及一种智能设备的控制方法和装置以及一种网络连接方法和实现系统。The invention relates to network connection technology, in particular to a control method and device for intelligent equipment, a network connection method and an implementation system.
背景技术Background technique
现代社会,智能手机、智能电视等智能设备普及到了千家万户,智能设备之间的互联、共享成为必然,其中,智能手机与智能电视之间的互联更是比较火热的应用场景。In modern society, smart devices such as smartphones and smart TVs have become popular in thousands of households, and the interconnection and sharing between smart devices has become inevitable. Among them, the interconnection between smart phones and smart TVs is a relatively hot application scenario.
现有的智能电视与智能手机的无线连接方式具体是:首先,用户需要使用遥控器对智能电视进行网络设置(例如:输入局域网的服务集标识和密码),以使智能电视与智能手机接入同一个局域网中,然后打开智能电视中存储的传屏软件,并使用遥控器操作智能电视,以使智能电视显示其IP(Internet Protocol,网络之间互连的协议)地址,最后,将智能手机中的传屏软件打开,输入智能电视的IP地址,与智能电视相连以进行传屏操作。The existing wireless connection method between a smart TV and a smart phone is specifically as follows: first, the user needs to use a remote controller to perform network settings on the smart TV (for example: input the service set ID and password of the local area network), so that the smart TV and the smart phone can access In the same local area network, then open the screen sharing software stored in the smart TV, and use the remote control to operate the smart TV, so that the smart TV displays its IP (Internet Protocol, the protocol for interconnection between networks) address, and finally, connect the smart phone Open the screen sharing software in , enter the IP address of the smart TV, and connect to the smart TV for screen sharing operation.
上述连接方式中,需要两次使用遥控器对智能电视进行操作,尤其是使用遥控器对智能电视进行网络设置时,操作较为繁琐、耗时,非常不便利,使得用户体验较差。In the above connection mode, it is necessary to use the remote control twice to operate the smart TV, especially when using the remote control to set the network of the smart TV, the operation is cumbersome, time-consuming, very inconvenient, and makes the user experience poor.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种智能设备的控制方法和装置及一种网络连接方法和实现系统,以克服现有技术中使用遥控器对智能电视进行网络设置的繁琐、耗时以及不便利。In view of this, the embodiments of the present invention provide a control method and device for smart devices, a network connection method and an implementation system, so as to overcome the cumbersome, time-consuming and cumbersome network settings of smart TVs using remote controls in the prior art. Not convenient.
在第一方面,本发明实施例提供了一种智能设备的控制方法,包括:In a first aspect, an embodiment of the present invention provides a method for controlling a smart device, including:
生成网络热点;generate network hotspots;
获取外部设备连接所述网络热点的请求;Obtaining a request for an external device to connect to the network hotspot;
建立与所述外部设备的网络连接;establishing a network connection with the external device;
通过所述网络连接获取外部网络接入点的信息;Obtaining the information of the external network access point through the network connection;
建立与所述外部网络接入点的网络连接。Establish a network connection with the external network access point.
在上述方法中,优选的是,在所述建立与所述外部网络接入点的网络连接之前,还包括:In the above method, preferably, before establishing the network connection with the external network access point, it further includes:
断开与所述外部设备的所述网络连接。The network connection with the external device is disconnected.
在上述方法中,优选的是,所述智能设备包括:智能电视、智能冰箱或智能空调。In the above method, preferably, the smart device includes: a smart TV, a smart refrigerator or a smart air conditioner.
在上述方法中,优选的是,所述外部设备包括:智能手机或平板电脑。In the above method, preferably, the external device includes: a smart phone or a tablet computer.
在上述方法中,优选的是,所述生成网络热点包括:In the above method, preferably, said generating network hotspots includes:
首次开机或无法与已知的外部网络接入点相连时,启动网络热点生成程序,生成网络热点;When it is turned on for the first time or cannot be connected to a known external network access point, start the network hotspot generation program to generate a network hotspot;
在上述方法中,优选的是,所述外部网络接入点的信息包括:In the above method, preferably, the information of the external network access point includes:
服务集标识SSID和密码。The service set identifies the SSID and password.
在第二方面,本发明实施例提供了一种网络连接方法,包括:In a second aspect, an embodiment of the present invention provides a network connection method, including:
第一设备生成网络热点;The first device generates a network hotspot;
第二设备获取所述网络热点信息,发送连接请求;The second device obtains the network hotspot information, and sends a connection request;
所述第一设备获取所述连接请求,通过所述网络热点建立与所述第二设备的网络连接;The first device obtains the connection request, and establishes a network connection with the second device through the network hotspot;
所述第二设备获取外部网络接入点的信息,将所述外部网络接入点的信息发送至所述第一设备;The second device obtains the information of the external network access point, and sends the information of the external network access point to the first device;
所述第一设备接收所述外部网络接入点的信息,与所述外部网络接入点建立网络连接。The first device receives the information of the external network access point, and establishes a network connection with the external network access point.
在第三方面,本发明实施例提供了一种智能设备的控制装置包括:In a third aspect, an embodiment of the present invention provides a control device for a smart device including:
网络热点生成模块,用于生成网络热点;A network hotspot generation module, used to generate network hotspots;
热点请求获取模块,用于获取外部设备连接所述网络热点的请求;A hotspot request obtaining module, configured to obtain a request for an external device to connect to the network hotspot;
网络连接建立模块,用于建立与所述外部设备的网络连接;A network connection establishment module, configured to establish a network connection with the external device;
接入点信息获取模块,用于通过所述网络连接获取外部网络接入点的信息;An access point information acquisition module, configured to acquire information on external network access points through the network connection;
网络接入模块,用于建立与所述外部网络接入点的网络连接。A network access module, configured to establish a network connection with the external network access point.
在上述装置中,优选的是,还包括:In the above-mentioned device, preferably, also include:
网络连接断开模块,用于在所述建立与所述外部网络接入点的网络连接之前,断开与所述外部设备的所述网络连接。A network disconnection module, configured to disconnect the network connection with the external device before establishing the network connection with the external network access point.
在第四方面,本发明实施例提供了一种网络连接方法的实现系统,包括:In a fourth aspect, an embodiment of the present invention provides a system for implementing a network connection method, including:
热点生成模块,配置在第一设备中,用于所述第一设备生成网络热点;A hotspot generation module, configured in the first device, used for the first device to generate network hotspots;
连接请求发送模块,配置在第二设备中,用于所述第二设备获取所述网络热点信息,发送连接请求;A connection request sending module, configured in the second device, used for the second device to obtain the network hotspot information and send a connection request;
热点连接建立模块,配置在所述第一设备中,用于所述第一设备获取所述连接请求,通过所述网络热点建立与所述第二设备的网络连接;A hotspot connection establishing module, configured in the first device, used for the first device to obtain the connection request, and establish a network connection with the second device through the network hotspot;
信息获取模块,配置在所述第二设备中,用于所述第二设备获取外部网络接入点的信息,将所述外部网络接入点的信息发送至所述第一设备;An information acquisition module, configured in the second device, used for the second device to obtain information of an external network access point, and send the information of the external network access point to the first device;
接入点连接模块,配置在所述第一设备中,用于所述第一设备接收所述外部网络接入点的信息,与所述外部网络接入点建立网络连接。The access point connection module is configured in the first device, and is used for the first device to receive the information of the external network access point and establish a network connection with the external network access point.
本发明实施例提供的智能设备的控制方法和装置和网络连接方法及实现系统,通过首先生成网络热点,然后获取外部设备发送的连接网络热点的请求,建立与外部设备的网络连接,通过网络连接获取外部设备发送的外部网络接入点的信息,最后建立与外部网络接入点的网络连接,克服了现有技术中使用遥控器对智能电视进行网络设置的繁琐、耗时以及不便利,实现了方便、简洁以及快速地对智能电视进行网络设置并使其连接外部网络。The control method and device of the smart device and the network connection method and the implementation system provided by the embodiments of the present invention first generate a network hotspot, and then obtain a request for connecting to the network hotspot sent by the external device to establish a network connection with the external device, and then connect to the network through the network. Obtain the information of the external network access point sent by the external device, and finally establish a network connection with the external network access point, which overcomes the cumbersome, time-consuming and inconvenient use of the remote control to set the network on the smart TV in the prior art, and realizes In order to conveniently, concisely and quickly set up the network on the smart TV and make it connect to the external network.
附图说明Description of drawings
图1是本发明实施例一提供的一种智能设备的控制方法的流程图;FIG. 1 is a flow chart of a method for controlling a smart device provided in Embodiment 1 of the present invention;
图2a是本发明实施例二提供的一种网络连接方法的流程图;FIG. 2a is a flow chart of a network connection method provided by Embodiment 2 of the present invention;
图2b是本发明实施例二提供的第一设备生成网络热点后屏幕显示内容;Fig. 2b is the content displayed on the screen after the first device generates a network hotspot according to Embodiment 2 of the present invention;
图2c是本发明实施例二提供的第二设备搜索到可连接的网络热点后屏幕显示内容;Fig. 2c is the content displayed on the screen after the second device according to Embodiment 2 of the present invention searches for a connectable network hotspot;
图2d是本发明实施例二提供的第二设备与网络热点建立连接后屏幕显示内容;Fig. 2d is the content displayed on the screen after the second device provided by Embodiment 2 of the present invention establishes a connection with the network hotspot;
图2e是本发明实施例二提供的第二设备搜索到可连接的外部网络接入点后屏幕显示内容;Fig. 2e is the content displayed on the screen after the second device according to Embodiment 2 of the present invention searches for a connectable external network access point;
图2f是本发明实施例二提供的第一设备与第二设备间的网络热点连接断开后,第一设备的屏幕显示内容;Fig. 2f is the content displayed on the screen of the first device after the network hotspot connection between the first device and the second device according to Embodiment 2 of the present invention is disconnected;
图3是本发明实施例三提供的一种智能设备的控制装置的结构图;FIG. 3 is a structural diagram of a control device for a smart device provided in Embodiment 3 of the present invention;
图4是本发明实施例四提供的一种网络连接方法的实现系统的结构图。FIG. 4 is a structural diagram of a system for implementing a network connection method provided in Embodiment 4 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
实施例一Embodiment one
图1为本发明实施例一提供的一种智能设备的控制方法的流程图,本实施例的方法可以由智能设备的控制装置来执行,该装置可通过硬件和/或软件的方式实现,并一般可集成于智能设备中,例如智能电视、智能冰箱以及智能空调等。本实施例的方法具体包括:FIG. 1 is a flow chart of a control method for a smart device provided in Embodiment 1 of the present invention. The method in this embodiment can be executed by a control device for a smart device, and the device can be implemented by means of hardware and/or software, and Generally, it can be integrated into smart devices, such as smart TVs, smart refrigerators, and smart air conditioners. The method of this embodiment specifically includes:
步骤110、生成网络热点。Step 110, generating a network hotspot.
在本实施例中,步骤110至步骤150所组成的方法是一种智能设备的控制方法,也就是说,步骤110至步骤150所组成的方法的具体实施者是智能设备。其中,智能设备典型的可以是智能电视、智能冰箱以及智能空调等。In this embodiment, the method composed of steps 110 to 150 is a method for controlling a smart device, that is, the specific implementer of the method composed of steps 110 to 150 is a smart device. Wherein, the smart device may typically be a smart TV, a smart refrigerator, and a smart air conditioner.
在本实施例中,智能设备在首次开机后、每次开机后或是在特定情况下会启动存储在设定存储区域中的程序用于生成网络热点,本实施例对此不进行限制,由于生成网络热点的方法属于现有技术,因此在这里不再进行详细阐述。In this embodiment, after the smart device is turned on for the first time, every time it is turned on, or under certain circumstances, it will start the program stored in the set storage area to generate network hotspots, which is not limited in this embodiment, because The method for generating network hotspots belongs to the prior art, so it will not be described in detail here.
其中,网络热点具体是指可以与其他具有连接网络热点功能的设备进行无线连接,以相互进行数据传输的网络接入点,在此需要特别说明的是,在本实施例中,智能设备与具有连接网络热点功能的设备通过智能设备生成的网络热点相连时,这种连接并不依靠任何的外部局域网,而是依托于智能设备生成的网络热点,仅在上述两个设备之间建立了数据传输通道,并且,智能设备在生成网络热点时,该智能设备可以是已与外部局域网相连,也可以是未接入任何网络,这两种情况对本实施例均不产生任何影响。Among them, the network hotspot specifically refers to a network access point that can wirelessly connect with other devices that have the function of connecting to the network hotspot, so as to perform data transmission with each other. When the devices connected to the network hotspot function are connected through the network hotspot generated by the smart device, this connection does not rely on any external LAN, but relies on the network hotspot generated by the smart device, and only establishes data transmission between the above two devices channel, and when a smart device generates a network hotspot, the smart device may be connected to an external local area network or not connected to any network, neither of which has any impact on this embodiment.
在本实施例中,智能设备生成网络热点后,会将网络热点的属性信息(例如服务集标识和密码)进行显示或播放等,以使其他设备可以获知网络热点的属性信息,与其进行连接。其中,该网络热点可以不设置连接密码,也可以设置连接密码,本实施例对此不进行限制。In this embodiment, after the smart device generates the network hotspot, it will display or play the attribute information (such as service set ID and password) of the network hotspot, so that other devices can learn the attribute information of the network hotspot and connect with it. Wherein, the network hotspot may not set a connection password, or may set a connection password, which is not limited in this embodiment.
步骤120、获取外部设备连接网络热点的请求。Step 120 , obtaining a request for an external device to connect to a network hotspot.
在本实施例中,当外部设备获知网络热点的属性信息后,准备与智能设备连接时,首先会向智能设备发送连接网络热点的请求,其中,外部设备典型的可以是智能手机或平板电脑等。In this embodiment, when the external device obtains the attribute information of the network hotspot and prepares to connect to the smart device, it will first send a request to the smart device to connect to the network hotspot, wherein the external device can typically be a smart phone or a tablet computer, etc. .
在本实施例中,智能设备在获取外部设备连接网络热点的请求后,可以直接允许外部设备连接网络热点,也可以对外部设备进行安全性验证,通过后再允许外部设备连接网络热点,本实施例对此不进行限制。其中,设备安全性的验证方法属于现有技术,此处不再进行详细阐述。In this embodiment, after obtaining the request of the external device to connect to the network hotspot, the smart device can directly allow the external device to connect to the network hotspot, or perform security verification on the external device, and then allow the external device to connect to the network hotspot. The example does not limit this. Wherein, the method for verifying device security belongs to the prior art, and will not be described in detail here.
步骤130、建立与外部设备的网络连接。Step 130, establishing a network connection with the external device.
在本实施例中,当智能设备允许外部设备连接网络热点后,两者之间就建立了独立的网络连接,该网络连接仅在智能设备和外部设备之间有效,用于两者之间进行数据传输,同时,外部设备还可以通过该网络连接对智能设备的一些设置进行更改。例如,当智能设备中安装有传屏软件时,外部设备可以通过该网络连接对智能设备在传屏过程中的相关功能进行设置,典型的可以是:是否只投射视频,是否只投射音频,是否可无线开关机以及是否开启输入法等。In this embodiment, when the smart device allows the external device to connect to the network hotspot, an independent network connection is established between the two, and the network connection is only valid between the smart device and the external device, and is used for At the same time, external devices can also change some settings of smart devices through this network connection. For example, when the screen sharing software is installed in the smart device, the external device can set the relevant functions of the smart device during the screen sharing process through the network connection. Typically, it can be: whether to only project video, whether to only project audio, whether to It can be turned on and off wirelessly and whether to enable the input method, etc.
步骤140、通过网络连接获取外部网络接入点的信息。Step 140, acquire the information of the external network access point through the network connection.
在本实施例中,当智能设备与外部设备之间建立网络连接之后,外部设备会向智能设备发送包含有外部网络接入点的信息的数据,进而智能设备就可以获取外部网络接入点的信息。其中,外部网络接入点具体是指外部设备可以连接的,且外部设备可获知其属性信息的网络接入点,其中,外部网络接入点的信息典型的可以是SSID(Service SetIdentifier,服务集标识)和密码等。In this embodiment, after the network connection is established between the smart device and the external device, the external device will send data containing the information of the external network access point to the smart device, and then the smart device can obtain the information of the external network access point information. Wherein, the external network access point specifically refers to a network access point that an external device can connect to and whose attribute information can be obtained by the external device. Wherein, the information of the external network access point can typically be SSID (Service Set Identifier, service set ID) and password, etc.
步骤150、建立与外部网络接入点的网络连接。Step 150, establishing a network connection with an external network access point.
在本实施例中,当智能设备获取外部网络接入点的信息后,会与该外部网络接入点建立网络连接,此时,智能设备完成了外部网络的接入操作。当智能设备获取外部网络接入点的信息后,智能设备与外部设备之间的网络热点连接还没有断开时,智能设备会首先断开与外部设备的网络热点连接,然后再与外部网络接入点建立网络连接。In this embodiment, after the smart device obtains the information of the external network access point, it will establish a network connection with the external network access point. At this time, the smart device has completed the access operation of the external network. After the smart device obtains the information of the external network access point, and the network hotspot connection between the smart device and the external device has not been disconnected, the smart device will first disconnect the network hotspot connection with the external device, and then connect to the external network. The entry point establishes a network connection.
本发明实施例提供的智能设备的控制方法,通过首先生成网络热点,然后获取外部设备连接网络热点的请求,建立与外部设备的网络连接,通过网络连接获取外部网络接入点的信息,最后建立与外部网络接入点的网络连接,克服了现有技术中使用遥控器对智能电视进行网络设置的繁琐、耗时以及不便利,实现了方便、简洁以及快速地对智能电视进行网络设置并使其连接外部网络。The control method of the smart device provided by the embodiment of the present invention firstly generates a network hotspot, then obtains a request from an external device to connect to the network hotspot, establishes a network connection with the external device, obtains information on an external network access point through the network connection, and finally establishes a network connection with the external device. The network connection with the external network access point overcomes the cumbersome, time-consuming and inconvenient use of the remote controller to set the network on the smart TV in the prior art, and realizes the convenient, simple and fast network setting and use of the smart TV. It connects to the external network.
在上述实施例的基础上,优选的是,生成网络热点包括:首次开机或无法与已知的外部网络接入点相连时,启动网络热点生成程序,生成网络热点;On the basis of the foregoing embodiments, preferably, generating a network hotspot includes: starting the network hotspot generating program to generate a network hotspot when starting up for the first time or failing to connect to a known external network access point;
这样设置的好处是:仅在未连接过外部网络或无法连接已知的外部网络时,进行生成网络热点操作,而不是每次开机时都生成网络热点,优化了开机过程,减少了开机时间,提升用户的使用体验。The advantage of this setting is: only when the external network has not been connected or cannot be connected to a known external network, the operation of generating network hotspots is performed, instead of generating network hotspots every time the machine is turned on, which optimizes the booting process and reduces the booting time. Improve user experience.
实施例二Embodiment two
图2a为本发明实施例二提供的一种网络连接方法的流程图,本实施例的方法可以由网络连接方法的实现系统来执行,该系统可通过硬件和/或软件的方式实现,并一般可集成于设备中。本实施例的方法具体包括:Figure 2a is a flow chart of a network connection method provided by Embodiment 2 of the present invention. The method of this embodiment can be executed by a system for implementing the network connection method. The system can be implemented by hardware and/or software, and generally Can be integrated in the device. The method of this embodiment specifically includes:
步骤210、第一设备生成网络热点。Step 210, the first device generates a network hotspot.
在本实施例中,第一设备典型的可以是智能电视、智能冰箱以及智能空调等。如图2b所示,第一设备在生成网络热点之后,将网络热点的服务集标识“TV_Device001”显示在屏幕中,这里假设第一设备生成的网络热点的服务集标识为“TV_Device001”。In this embodiment, the first device may typically be a smart TV, a smart refrigerator, and a smart air conditioner. As shown in Figure 2b, after the first device generates the network hotspot, it displays the service set identifier "TV_Device001" of the network hotspot on the screen. Here, it is assumed that the service set identifier of the network hotspot generated by the first device is "TV_Device001".
步骤220、第二设备获取网络热点信息,发送连接请求。Step 220, the second device obtains network hotspot information, and sends a connection request.
在本实施例中,第二设备在获取网络热点信息后,会向第一设备发送连接请求,请求与网络热点进行连接。其中,第二设备典型的可以是智能手机或智能平板等。其中,第二设备获取网络热点信息的方式具体可以是从输入数据中获取,或通过搜索获取等。如图2c所述,第二设备通过搜索的方式获取网络热点信息,将搜索到的可连接的网络热点的服务集标识显示在屏幕中。In this embodiment, after acquiring the network hotspot information, the second device will send a connection request to the first device, requesting to connect to the network hotspot. Wherein, the second device may typically be a smart phone or a smart tablet. Wherein, the manner in which the second device obtains the network hotspot information may specifically be obtained from input data, or obtained through searching, and the like. As shown in FIG. 2 c , the second device acquires network hotspot information through searching, and displays the searched service set identifiers of connectable network hotspots on the screen.
步骤230、第一设备获取连接请求,通过网络热点建立与第二设备的网络连接。Step 230, the first device acquires a connection request, and establishes a network connection with the second device through a network hotspot.
步骤240、第二设备获取外部网络接入点的信息,将外部网络接入点的信息发送至第一设备。Step 240, the second device obtains the information of the external network access point, and sends the information of the external network access point to the first device.
在本实施例中,当第二设备与网络热点建立连接后,第二设备的屏幕显示内容如图2d所示。在图2d中只示例性地画出了两个应用图标,当然,第二设备的屏幕中还可能在显示图2d中的两个应用图标的同时,还会显示其他操作对应的应用图标,或是不显示图2d中的两个应用图标,而是显示多个其他操作对应的应用图标,点击图2d中的应用图标,即可控制第一设备进行相应操作。In this embodiment, after the second device establishes a connection with the network hotspot, the content displayed on the screen of the second device is as shown in FIG. 2d. Only two application icons are exemplarily drawn in FIG. 2d. Of course, while the two application icons in FIG. 2d are displayed on the screen of the second device, application icons corresponding to other operations may also be displayed, or Instead of displaying the two application icons in FIG. 2d , multiple application icons corresponding to other operations are displayed. Clicking on the application icons in FIG. 2d can control the first device to perform corresponding operations.
第二设备在与网络热点连接后,就会搜索可连接的外部网络接入点,若有多个外部网络接入点可进行连接,第二设备会按照外部网络接入点的优先级,或是根据输入的外部网络接入点的选取数据等确定所要连接的外部网络接入点。如图2e所示,第二设备将搜索到的可连接的外部网络接入点的服务集标识显示在屏幕中。在确定所要连接的外部网络接入点之后,第二设备会将该外部网络接入点的属性信息发送至第一设备。在完成上述操作之后,第二设备可以继续进行后续操作,即断开与第一设备的网络热点连接,然后与所要连接的外部网络接入点进行连接。After the second device is connected to the network hotspot, it will search for an external network access point that can be connected. If there are multiple external network access points that can be connected, the second device will follow the priority of the external network access point, or The external network access point to be connected is determined according to the input selection data of the external network access point and the like. As shown in FIG. 2e, the second device displays the searched service set identifiers of connectable external network access points on the screen. After determining the external network access point to be connected, the second device sends attribute information of the external network access point to the first device. After the above operations are completed, the second device may continue to perform subsequent operations, that is, disconnect from the network hotspot of the first device, and then connect to the external network access point to be connected.
步骤250、第一设备接收外部网络接入点的信息,与外部网络接入点建立网络连接。Step 250, the first device receives the information of the external network access point, and establishes a network connection with the external network access point.
在本实施例中,第二设备将外部网络接入点的属性信息发送至第一设备之后,会断开与第一设备的连接,此时,第一设备的屏幕显示内容如图2f所示,当然,图2f中所示的提示内容“网络未连接”只是示例性的举例,对于不同的设备其具体显示内容会有所不同。In this embodiment, after the second device sends the attribute information of the external network access point to the first device, it will disconnect from the first device. At this time, the screen display content of the first device is as shown in Figure 2f Of course, the prompt content "network is not connected" shown in FIG. 2f is only an exemplary example, and the specific display content will be different for different devices.
在本实施例中,第一设备接收外部网络接入点的信息后,会与外部网络接入点建立网络连接,此时,如果第二设备也与该外部网络接入点建立了连接,那么,第一设备和第二设备就同时接入到了同一外部网络接入点,即第一设备和第二设备接入了同一外部网络,两者之间可以依托该外部网络进行数据传输等操作。In this embodiment, after receiving the information of the external network access point, the first device will establish a network connection with the external network access point. At this time, if the second device also establishes a connection with the external network access point, then , the first device and the second device are connected to the same external network access point at the same time, that is, the first device and the second device are connected to the same external network, and the two can rely on the external network for data transmission and other operations.
在一个具体的例子中,第一设备为智能电视,第二设备为智能手机,且两者中安装了相应的传屏软件,那么,当智能电视和智能手机接入到同一外部网络之后,智能手机可以通过该外部网络查询到智能手机的IP地址,然后智能手机根据智能电视的IP地址与智能电视相连,两者相连接后,就可以使用两者中安装的传屏软件进行传屏操作。In a specific example, the first device is a smart TV and the second device is a smart phone, and the corresponding screen transmission software is installed in both, then, when the smart TV and the smart phone are connected to the same external network, the smart The mobile phone can query the IP address of the smart phone through the external network, and then the smart phone is connected to the smart TV according to the IP address of the smart TV.
另外需要说明的是,当第一设备与第二设备完成步骤210至步骤250中的操作之后,两者就接入了同一个外部局域网,此时,如果通过第二设备对第一设备的功能进行设置,那么,还需要第二设备通过该外部局域网搜索到第一设备,并与第一设备建立点对点的连接,第二设备才可以对第一设备进行功能设置,当第一设备与第二设备之间的这种点对点的连接成功建立一次之后,两者之间再次建立点对点的连接,分为如下两种情况:In addition, it should be noted that after the first device and the second device have completed the operations from step 210 to step 250, both of them have connected to the same external local area network. Then, the second device needs to search the first device through the external LAN and establish a point-to-point connection with the first device, so that the second device can perform function settings on the first device. When the first device and the second After the point-to-point connection between the devices is successfully established once, the point-to-point connection between the two devices is established again, which can be divided into the following two situations:
第一种情况,第一设备已与上述外部局域网相连,那么,第二设备开机后,可直接通过上述外部局域网与第一设备建立点对点的控制连接,其中,控制连接具体是指第一设备与第二设备之间建立的独立的连接,独立于上述局域网中的其他设备,此时,如果第一设备处于正常工作状态下,那么,第二设备可以与第一设备直接进行数据传输;如果第一设备处于待机状态下,第二设备需要先对第一设备进行“开机”操作之后,然后两者之间再进行其他所需的数据传输操作。在这里需要说明的是,当第一设备在首次开机并与上述外部局域网成功连接之后,第一设备在之后每次开机时都会主动与该外部局域网相连。In the first case, the first device has been connected to the above-mentioned external local area network, then, after the second device is turned on, it can directly establish a point-to-point control connection with the first device through the above-mentioned external local area network, wherein the control connection specifically refers to the connection between the first device and the first device. The independent connection established between the second devices is independent of other devices in the above local area network. At this time, if the first device is in a normal working state, then the second device can directly perform data transmission with the first device; if the first device When one device is in the standby state, the second device needs to "start" the first device first, and then perform other required data transmission operations between the two. It should be noted here that after the first device is powered on for the first time and successfully connected to the external LAN, the first device will actively connect to the external LAN every time it is powered on thereafter.
第二种情况,当第一设备无法与上述外部局域网相连时(此时可能是外部局域网出现问题以至无法连接,也可能是第一设备存储的网络连接数据出现问问题以至无法连接等),第一设备会再次生成网络热点,也就是说,第一设备与第二设备之间会重复步骤210至步骤250的操作,以使第一设备与第二设备再次接入同一外部局域网,再次接入的外部局域网与上次接入的外部局域网可以是同一外部局域网,也可以是不同的外部局域网。In the second case, when the first device cannot be connected to the above-mentioned external LAN (at this time, it may be that the external LAN has a problem and cannot be connected, or the network connection data stored by the first device has a problem and cannot be connected, etc.), the second A device will generate a network hotspot again, that is to say, the operations from step 210 to step 250 will be repeated between the first device and the second device, so that the first device and the second device will reconnect to the same external LAN and reconnect to the same external LAN. The external local area network and the external local area network accessed last time may be the same external local area network, or may be different external local area networks.
本发明实施例提供的网络连接方法,通过第一设备生成网络热点,第二设备获取网络热点信息并发送连接请求,第一设备获取连接请求并通过网络热点建立与第二设备的网络连接,第二设备获取外部网络接入点的信息并将外部网络接入点的信息发送至第一设备,第一设备接收外部网络接入点的信息并与外部网络接入点建立网络连接,克服了现有技术中使用遥控器对智能电视进行网络设置的繁琐、耗时以及不便利,实现了方便、简洁以及快速地对智能电视进行网络设置并使其连接外部网络。In the network connection method provided by the embodiment of the present invention, the first device generates a network hotspot, the second device obtains the network hotspot information and sends a connection request, the first device obtains the connection request and establishes a network connection with the second device through the network hotspot, and the second The second device obtains the information of the external network access point and sends the information of the external network access point to the first device, and the first device receives the information of the external network access point and establishes a network connection with the external network access point. It is cumbersome, time-consuming and inconvenient to use the remote control to set the network of the smart TV in the prior art, and it is convenient, simple and fast to set the network of the smart TV and make it connect to the external network.
实施例三Embodiment three
图3是本发明实施例三提供的一种智能设备的控制装置的结构图。如图3所示,所述装置包括:网络热点生成模块101、热点请求获取模块102、网络连接建立模块103、接入点信息获取模块104以及网络接入模块105,其中:FIG. 3 is a structural diagram of a control device for a smart device provided in Embodiment 3 of the present invention. As shown in Figure 3, the device includes: a network hotspot generation module 101, a hotspot request acquisition module 102, a network connection establishment module 103, an access point information acquisition module 104 and a network access module 105, wherein:
网络热点生成模块101,用于生成网络热点;Network hotspot generation module 101, for generating network hotspot;
热点请求获取模块102,用于获取外部设备连接网络热点的请求;A hotspot request acquisition module 102, configured to acquire a request for an external device to connect to a network hotspot;
网络连接建立模块103,用于建立与外部设备的网络连接;A network connection establishment module 103, configured to establish a network connection with an external device;
接入点信息获取模块104,用于通过网络连接获取外部网络接入点的信息;An access point information obtaining module 104, configured to obtain information of an external network access point through a network connection;
网络接入模块105,用于建立与外部网络接入点的网络连接。The network access module 105 is configured to establish a network connection with an external network access point.
本发明实施例提供的智能设备的控制装置,通过首先生成网络热点,然后获取外部设备连接网络热点的请求,建立与外部设备的网络连接,通过网络连接获取外部网络接入点的信息,最后建立与外部网络接入点的网络连接,克服了现有技术中使用遥控器对智能电视进行网络设置的繁琐、耗时以及不便利,实现了方便、简洁以及快速地对智能电视进行网络设置并使其连接外部网络。The control device of the smart device provided by the embodiment of the present invention firstly generates a network hotspot, then obtains a request from an external device to connect to the network hotspot, establishes a network connection with the external device, obtains information on an external network access point through the network connection, and finally establishes a network connection with the external device. The network connection with the external network access point overcomes the cumbersome, time-consuming and inconvenient use of the remote controller to set the network on the smart TV in the prior art, and realizes the convenient, simple and fast network setting and use of the smart TV. It connects to the external network.
在上述各实施例的基础上,还可以包括:On the basis of the foregoing embodiments, it may also include:
网络连接断开模块,用于在建立与外部网络接入点的网络连接之前,断开与外部设备的网络连接。The network disconnection module is used for disconnecting the network connection with the external device before establishing the network connection with the external network access point.
本发明实施例所提供的智能设备的控制装置可用于执行本发明任意实施例提供的智能设备的控制方法,具备相应的功能模块,实现相同的有益效果。The smart device control device provided by the embodiments of the present invention can be used to execute the smart device control method provided by any embodiment of the present invention, and has corresponding functional modules to achieve the same beneficial effect.
实施例四Embodiment Four
图4是本发明实施例四提供的一种网络连接方法的实现系统的结构图。如图4所示,所述系统包括:FIG. 4 is a structural diagram of a system for implementing a network connection method provided in Embodiment 4 of the present invention. As shown in Figure 4, the system includes:
热点生成模块201,配置在第一设备中,用于第一设备生成网络热点;The hotspot generation module 201 is configured in the first device, and is used for the first device to generate network hotspots;
连接请求发送模块202,配置在第二设备中,用于第二设备获取网络热点信息,发送连接请求;The connection request sending module 202 is configured in the second device, and is used for the second device to obtain network hotspot information and send a connection request;
热点连接建立模块203,配置在第一设备中,用于第一设备获取连接请求,通过网络热点建立与第二设备的网络连接;The hotspot connection establishment module 203 is configured in the first device, and is used for the first device to obtain a connection request, and establish a network connection with the second device through a network hotspot;
信息获取模块204,配置在第二设备中,用于第二设备获取外部网络接入点的信息,将外部网络接入点的信息发送至第一设备;The information obtaining module 204 is configured in the second device, and is used for the second device to obtain the information of the external network access point, and send the information of the external network access point to the first device;
接入点连接模块205,配置在第一设备中,用于第一设备接收外部网络接入点的信息,与外部网络接入点建立网络连接。The access point connection module 205 is configured in the first device, and is used for the first device to receive the information of the external network access point and establish a network connection with the external network access point.
本发明实施例提供的网络连接的实现系统,通过第一设备生成网络热点,第二设备获取网络热点信息并发送连接请求,第一设备获取连接请求并通过网络热点建立与第二设备的网络连接,第二设备获取外部网络接入点的信息并将外部网络接入点的信息发送至第一设备,第一设备接收外部网络接入点的信息并与外部网络接入点建立网络连接,克服了现有技术中使用遥控器对智能电视进行网络设置的繁琐、耗时以及不便利,实现了方便、简洁以及快速地对智能电视进行网络设置并使其连接外部网络。The implementation system of the network connection provided by the embodiment of the present invention generates a network hotspot through the first device, the second device obtains the network hotspot information and sends a connection request, and the first device obtains the connection request and establishes a network connection with the second device through the network hotspot , the second device obtains the information of the external network access point and sends the information of the external network access point to the first device, and the first device receives the information of the external network access point and establishes a network connection with the external network access point, overcoming It eliminates the cumbersome, time-consuming and inconvenient use of the remote controller to set the network on the smart TV in the prior art, and realizes convenient, concise and fast network setting on the smart TV and making it connect to an external network.
本发明实施例所提供的网络连接方法的实现系统可用于执行本发明任意实施例提供的网络连接方法,具备相应的功能模块,实现相同的有益效果。The implementation system of the network connection method provided by the embodiment of the present invention can be used to execute the network connection method provided by any embodiment of the present invention, has corresponding functional modules, and achieves the same beneficial effect.
显然,本领域技术人员应该明白,上述的本发明的各模块或各步骤可以通过如上所述的服务器实施。可选地,本发明实施例可以用计算机装置可执行的程序来实现,从而可以将它们存储在存储装置中由处理器来执行,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等;或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件的结合。Apparently, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by the above-mentioned server. Optionally, the embodiments of the present invention can be implemented by programs executable by a computer device, so that they can be stored in a storage device and executed by a processor, and the program can be stored in a computer-readable storage medium, The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.; or they may be fabricated into individual integrated circuit modules, or multiple modules or steps among them may be fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域技术人员而言,本发明可以有各种改动和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710131394.8ACN106937405A (en) | 2017-03-07 | 2017-03-07 | Control method and device of intelligent equipment and network connection method and system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710131394.8ACN106937405A (en) | 2017-03-07 | 2017-03-07 | Control method and device of intelligent equipment and network connection method and system |
| Publication Number | Publication Date |
|---|---|
| CN106937405Atrue CN106937405A (en) | 2017-07-07 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710131394.8APendingCN106937405A (en) | 2017-03-07 | 2017-03-07 | Control method and device of intelligent equipment and network connection method and system |
| Country | Link |
|---|---|
| CN (1) | CN106937405A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108901024A (en)* | 2018-06-25 | 2018-11-27 | 北京小鱼在家科技有限公司 | Control throws screen receiving device networking and throws screen receiving device networking methods, equipment |
| CN109548183A (en)* | 2017-08-11 | 2019-03-29 | 深圳光峰科技股份有限公司 | Screen interacts connection method, projection device, mobile terminal and system |
| CN110798493A (en)* | 2018-08-02 | 2020-02-14 | 青岛经济技术开发区海尔热水器有限公司 | A network configuration method, apparatus, terminal device and storage medium |
| CN113110815A (en)* | 2021-04-15 | 2021-07-13 | 深圳可视科技有限公司 | Method and system for realizing screen transmission function through touch and collision, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104244455A (en)* | 2014-09-01 | 2014-12-24 | 小米科技有限责任公司 | Wireless local area network access information sharing method and device |
| CN106059800A (en)* | 2016-05-23 | 2016-10-26 | Tcl集团股份有限公司 | Network access configuration method and system based on intelligent household electric appliances |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104244455A (en)* | 2014-09-01 | 2014-12-24 | 小米科技有限责任公司 | Wireless local area network access information sharing method and device |
| CN106059800A (en)* | 2016-05-23 | 2016-10-26 | Tcl集团股份有限公司 | Network access configuration method and system based on intelligent household electric appliances |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109548183A (en)* | 2017-08-11 | 2019-03-29 | 深圳光峰科技股份有限公司 | Screen interacts connection method, projection device, mobile terminal and system |
| CN108901024A (en)* | 2018-06-25 | 2018-11-27 | 北京小鱼在家科技有限公司 | Control throws screen receiving device networking and throws screen receiving device networking methods, equipment |
| CN110798493A (en)* | 2018-08-02 | 2020-02-14 | 青岛经济技术开发区海尔热水器有限公司 | A network configuration method, apparatus, terminal device and storage medium |
| CN113110815A (en)* | 2021-04-15 | 2021-07-13 | 深圳可视科技有限公司 | Method and system for realizing screen transmission function through touch and collision, electronic equipment and storage medium |
| CN113110815B (en)* | 2021-04-15 | 2021-12-21 | 深圳可视科技有限公司 | Method and system for realizing screen transmission function through touch and collision, electronic equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN106878923B (en) | Quick networking method for ultra-low power consumption intelligent equipment and intelligent home system | |
| US10178610B2 (en) | Smart home control method and system based on alljoyn technology | |
| WO2022016669A1 (en) | Bluetooth network configuration method, device, and storage medium | |
| CN105208583B (en) | A method, device and smart device for configuring smart home appliances to access the network | |
| US20130271672A1 (en) | Television manipulation method, handheld device, television, and television manipulation system | |
| EP3169086A1 (en) | Connection method for multimedia playing device, master device, control terminal, and system | |
| JP2015508273A (en) | Shared network access via peer-to-peer link | |
| CN105376048A (en) | Method and system for connecting terminal with display equipment | |
| JP7018110B1 (en) | Mobile device dock | |
| US10420156B2 (en) | Wireless communication terminal, wireless communication system, wireless communication method, and non-transitory medium saving program | |
| CN105100848A (en) | Intelligent equipment, and intelligent equipment control system and realization method thereof | |
| CN106789470B (en) | Terminal resource sharing method, device and system | |
| WO2017107550A1 (en) | Network connection method and apparatus | |
| CN107147549B (en) | Intelligent household equipment networking method and device | |
| CN102821150A (en) | Cloud server and application managing method based on same | |
| CN103856374A (en) | Data transmission method, terminal and home interconnected system | |
| CN106937405A (en) | Control method and device of intelligent equipment and network connection method and system | |
| CN112684995B (en) | Cross-screen input method and device | |
| CN103414740A (en) | Private cloud account configuration method and device | |
| CN105227397A (en) | Method for discovering equipment, main equipment, from equipment and corresponding system | |
| WO2021042612A1 (en) | Wireless screen projection method and apparatus, device and storage medium | |
| US20160285949A1 (en) | Wireless login-based remote control method and device | |
| WO2014180251A1 (en) | Smart home home gateway implementation method and device | |
| WO2015062500A1 (en) | Remote control apparatus and smart television | |
| CN104301400A (en) | Multi-screen cooperation and resource sharing method on basis of Samba protocol |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170707 |