[go: up one dir, main page]

CN114125837B - Device network distribution method, device, smart desk lamp and storage medium - Google Patents

Device network distribution method, device, smart desk lamp and storage medium Download PDF

Info

Publication number
CN114125837B
CN114125837B CN202010893699.4A CN202010893699A CN114125837B CN 114125837 B CN114125837 B CN 114125837B CN 202010893699 A CN202010893699 A CN 202010893699A CN 114125837 B CN114125837 B CN 114125837B
Authority
CN
China
Prior art keywords
desk lamp
smart desk
instruction
connection
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010893699.4A
Other languages
Chinese (zh)
Other versions
CN114125837A (en
Inventor
钟浩华
杨启昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010893699.4A priority Critical patent/CN114125837B/en
Publication of CN114125837A publication Critical patent/CN114125837A/en
Application granted granted Critical
Publication of CN114125837B publication Critical patent/CN114125837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Selective Calling Equipment (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the application discloses a device network distribution method and device, an intelligent table lamp and a storage medium, and belongs to the technical field of intelligent home. The intelligent desk lamp can broadcast a first wireless signal containing identity information to the surrounding, and receives a first connection request fed back by the control equipment based on the identity information, and responds to the connection request, the intelligent desk lamp detects whether the intelligent desk lamp is subjected to physical contact operation or not, and after the intelligent desk lamp is subjected to the physical contact operation, the intelligent desk lamp establishes communication connection with the control equipment under the indication of the physical contact operation. Because the intelligent desk lamp can establish communication connection with the control equipment on the premise that the intelligent desk lamp actually receives physical control. Therefore, the scheme improves the safety when the intelligent desk lamp is connected with the control equipment, and reduces the risk of communication connection between the intelligent desk lamp and malicious control equipment.

Description

设备配网方法、装置、智能台灯及存储介质Device network distribution method, device, smart desk lamp and storage medium

技术领域Technical Field

本申请实施例涉及智能家居技术领域,特别涉及一种设备配网方法、装置、智能台灯及存储介质。The embodiments of the present application relate to the field of smart home technology, and in particular to a device network configuration method, device, smart desk lamp, and storage medium.

背景技术Background Art

随着智能设备在生活中的广泛应用,智能设备的安全性的高低直接决定了使用智能设备的用户的安全。其中,智能台灯作为一种常见的智能设备,安全性也直接影响着用户生活的安全和舒适程度。With the widespread application of smart devices in life, the security of smart devices directly determines the safety of users. Among them, smart desk lamps are a common smart device, and their security also directly affects the safety and comfort of users' lives.

相关技术中,智能台灯在被用户购入使用时,通常可以直接配网模式,被附近的控制设备连接而完成与该终端中的帐号的绑定。完成绑定后的智能台灯,能够被建立连接的控制设备所控制,进行灯光的开关和发光模式的调节。In the related art, when a smart desk lamp is purchased and used by a user, it can usually be directly connected to the network mode and connected to a nearby control device to complete the binding with the account in the terminal. After the binding is completed, the smart desk lamp can be controlled by the connected control device to switch the light on and off and adjust the lighting mode.

发明内容Summary of the invention

本申请实施例提供了一种设备配网方法、装置、智能台灯及存储介质。所述技术方案如下:The embodiment of the present application provides a device network configuration method, device, smart desk lamp and storage medium. The technical solution is as follows:

根据本申请的一方面内容,提供了一种设备配网方法,应用于智能台灯中,所述方法包括:According to one aspect of the present application, a device network configuration method is provided, which is applied to a smart desk lamp, and the method includes:

广播第一无线信号,所述第一无线信号包括所述智能台灯的身份标识信息;Broadcasting a first wireless signal, wherein the first wireless signal includes identity information of the smart desk lamp;

接收控制设备基于所述第一无线信号发送的第一连接请求;Receiving a first connection request sent by a control device based on the first wireless signal;

响应于所述第一连接请求,检测第一接触控制指令,所述第一接触控制指令是所述智能台灯基于物理接触操作而触发的指令;In response to the first connection request, detecting a first contact control instruction, where the first contact control instruction is an instruction triggered by the smart desk lamp based on a physical contact operation;

确定检测到所述第一接触控制指令;Determining that the first contact control instruction is detected;

响应于所述第一接触控制指令建立与所述控制设备之间的第一连接。A first connection with the control device is established in response to the first contact control instruction.

根据本申请的另一方面内容,提供了一种设备配网装置,应用于智能台灯中,所述装置包括:According to another aspect of the present application, a device network distribution device is provided, which is applied to a smart desk lamp, and the device includes:

信号广播模块,用于广播第一无线信号,所述第一无线信号包括所述智能台灯的身份标识信息;A signal broadcasting module, used for broadcasting a first wireless signal, wherein the first wireless signal includes the identity information of the smart desk lamp;

请求接收模块,用于接收控制设备基于所述第一无线信号发送的第一连接请求;A request receiving module, configured to receive a first connection request sent by a control device based on the first wireless signal;

指令检测模块,用于响应于所述第一连接请求,检测第一接触控制指令,所述第一接触控制指令是所述智能台灯基于物理接触操作而触发的指令;an instruction detection module, configured to detect a first contact control instruction in response to the first connection request, wherein the first contact control instruction is an instruction triggered by the smart desk lamp based on a physical contact operation;

指令确定模块,用于确定检测到所述第一接触控制指令;An instruction determination module, used for determining that the first contact control instruction is detected;

连接建立模块,用于响应于所述第一接触控制指令建立与所述控制设备之间的第一连接。A connection establishing module is used to establish a first connection with the control device in response to the first contact control instruction.

根据本申请的另一方面内容,提供了一种智能台灯,所述智能台灯包括通信组件、处理器、和与处理器相连的存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如本申请由智能台灯执行的各个方面提供的设备配网方法。According to another aspect of the present application, a smart desk lamp is provided, which includes a communication component, a processor, and a memory connected to the processor, wherein at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement a device networking method provided in various aspects executed by the smart desk lamp as in the present application.

根据本申请的另一方面内容,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如本申请由智能台灯执行的各个方面提供的设备配网方法。According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement a device networking method provided in various aspects executed by a smart desk lamp as in the present application.

根据本申请的一个方面,提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述由智能台灯执行的绑定帐号的各种可选实现方式中提供的方法。According to one aspect of the present application, a computer program product is provided, the computer program product including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various optional implementations of the account binding performed by the smart desk lamp.

智能台灯可向周围广播包含身份标识信息的第一无线信号,并接收控制设备基于身份标识信息反馈的第一连接请求,响应该连接请求,智能台灯将检测自身是否受到物理接触操作,在被物理接触操作后,智能台灯将在该物理接触操作的指示下,与控制设备之间建立通信连接。由于智能台灯能够在自身实际接受到物理控制的前提下与控制设备建立通信连接。因此,本方案提高了智能台灯与控制设备建立连接时的安全性,降低了智能台灯与恶意的控制设备建立通信连接的风险。The smart desk lamp can broadcast a first wireless signal containing identity information to the surroundings, and receive a first connection request from the control device based on the identity information feedback. In response to the connection request, the smart desk lamp will detect whether it is subjected to physical contact operation. After being subjected to physical contact operation, the smart desk lamp will establish a communication connection with the control device under the instruction of the physical contact operation. Since the smart desk lamp can establish a communication connection with the control device under the premise that it actually receives physical control, this solution improves the security of the smart desk lamp when establishing a connection with the control device, and reduces the risk of the smart desk lamp establishing a communication connection with a malicious control device.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地介绍本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly introduce the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

图1是本申请一个示例性实施例提供的一种智能设备的结构框图;FIG1 is a structural block diagram of a smart device provided by an exemplary embodiment of the present application;

图2是本申请一个示例性实施例提供的一种终端的结构框图;FIG2 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application;

图3是本申请一个示例性实施例提供的一种系统框架的示意图;FIG3 is a schematic diagram of a system framework provided by an exemplary embodiment of the present application;

图4是本申请一个示例性实施例提供的一种设备配网方法的流程图;FIG4 is a flow chart of a device network configuration method provided by an exemplary embodiment of the present application;

图5是本申请一个示例性实施例提供的一种设备配网方法流程图;FIG5 is a flow chart of a device network configuration method provided by an exemplary embodiment of the present application;

图6是基于图5所示实施例提供的一种用户界面的示意图;FIG6 is a schematic diagram of a user interface provided based on the embodiment shown in FIG5 ;

图7是本申请实施例提供的一种绑定帐号的过程的用户界面示意图;7 is a user interface diagram of a process of binding an account provided in an embodiment of the present application;

图8是本申请一个示例性实施例提供的一种设备配网方法流程图;FIG8 is a flow chart of a device network configuration method provided by an exemplary embodiment of the present application;

图9是本申请一个示例性实施例提供的一种设备配网装置的结构框图。FIG. 9 is a structural block diagram of a device network configuration apparatus provided by an exemplary embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application more clear, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the objects associated before and after are in an "or" relationship.

为了本申请实施例所示方案易于理解,下面对本申请实施例中出现的若干名词进行介绍。In order to facilitate the understanding of the scheme shown in the embodiments of the present application, several nouns appearing in the embodiments of the present application are introduced below.

智能台灯:具有通信组件的台灯。在本申请中,通信组件可以是支持短距离通信的组件。示意性的,通信组件可以是蓝牙组件、WiFi(Wireless Fidelity,无线保真)组件、ZigBee(紫蜂)组件。该智能台灯在实现正常照明功能的前提下,能够通过通信组件与其控制设备进行通信连接。在本申请实施例中,当通信组件是蓝牙组件时,蓝牙连接包括基于已发布的各个版本的蓝牙协议的连接,同时,也包括在后续技术发展中基于各个新版本的蓝牙协议及衍生协议的连接。本申请实施例对此不作限定。Smart desk lamp: a desk lamp with a communication component. In the present application, the communication component may be a component that supports short-range communication. Illustratively, the communication component may be a Bluetooth component, a WiFi (Wireless Fidelity) component, or a ZigBee component. The smart desk lamp can be communicatively connected to its control device through the communication component while achieving normal lighting functions. In an embodiment of the present application, when the communication component is a Bluetooth component, the Bluetooth connection includes connections based on various published versions of the Bluetooth protocol, and also includes connections based on various new versions of the Bluetooth protocol and derivative protocols in subsequent technological developments. This embodiment of the present application is not limited to this.

在一种应用场景中,智能台灯可以包括4个实体按键。该实体按键分别包括主灯开关按键、夜灯开关按键、模式切换按键和亮度触控板。其中,主灯开关按键用于控制主发光灯具开启和关闭。夜灯开关按键用于控制夜灯开启和关闭。模式切换按用于切换当前点亮的灯具的发光模式。亮度触控板用于控制当前点亮的灯具的亮度。In one application scenario, the smart desk lamp may include four physical buttons. The physical buttons include a main light switch button, a night light switch button, a mode switch button, and a brightness touch pad. The main light switch button is used to control the main light fixture to turn on and off. The night light switch button is used to control the night light to turn on and off. The mode switch button is used to switch the lighting mode of the currently lit lamp. The brightness touch pad is used to control the brightness of the currently lit lamp.

可选地,实体按键既可以是通过机械按压实现控制的机械按键,也可以是通过电容变化或者电阻变化实现控制的触摸感应按键,还可以是通过热量变化实现控制的热感应按键,也可以是通过距离变化实现控制的接近信号感应按键。需要说明的是,上述陈述的智能台灯的实体按键的实现方式是示意性说明,其它任意能够实现按键功能的智能台灯均在本申请的保护范围之内,本申请实施例对此不作限定。Optionally, the physical button can be a mechanical button that is controlled by mechanical pressing, a touch-sensitive button that is controlled by a change in capacitance or resistance, a thermal-sensitive button that is controlled by a change in heat, or a proximity-sensitive button that is controlled by a change in distance. It should be noted that the above-stated implementation of the physical button of the smart desk lamp is a schematic illustration, and any other smart desk lamp that can realize the button function is within the protection scope of this application, and the embodiments of this application do not limit this.

控制设备:具有连接互联网能力且能够连接本申请中所示的智能台灯的设备。需要说明的是,由于控制设备需要与智能台灯相连接。因此,该控制设备需要与智能台灯支持相同的通信协议。当通信协议是预先设定的验证密码的协议时,控制设备和智能台灯是同时具备预先设定的验证密码。Control device: A device that has the ability to connect to the Internet and can connect to the smart desk lamp shown in this application. It should be noted that since the control device needs to be connected to the smart desk lamp. Therefore, the control device needs to support the same communication protocol as the smart desk lamp. When the communication protocol is a protocol with a pre-set verification password, the control device and the smart desk lamp both have a pre-set verification password.

可选地,控制设备既可以是网关,也可以是就是联网能力的设备。Optionally, the control device may be a gateway or a device with networking capability.

在一种可能的方式中,控制设备、智能台灯和网关组成局域网,控制设备与智能台灯之间通过互联网进行信息交互,从而实现控制设备对智能台灯的控制。In one possible approach, the control device, the smart desk lamp and the gateway form a local area network, and the control device and the smart desk lamp exchange information through the Internet, thereby enabling the control device to control the smart desk lamp.

又一种可能的方式中,控制设备、智能台灯和网关连入互联网,与互联网中的服务器进行信息交互。控制设备将控制信息发送至服务器,服务器再将信息转发至网关,网关再将控制信息发送至智能台灯,智能台灯响应该控制指令。In another possible way, the control device, the smart desk lamp and the gateway are connected to the Internet and exchange information with the server in the Internet. The control device sends the control information to the server, the server forwards the information to the gateway, the gateway sends the control information to the smart desk lamp, and the smart desk lamp responds to the control instruction.

控制设备:是用于向智能台灯发送控制指令的电子设备。通常,该控制设备可以是手机、平板电脑、笔记本电脑和可穿戴智能设备,本申请实施例对此不作限定。需要说明的是,控制设备也可以网关,该网关对智能台灯具有控制能力。Control device: an electronic device used to send control instructions to the smart desk lamp. Generally, the control device can be a mobile phone, a tablet computer, a laptop computer, and a wearable smart device, which is not limited in the embodiments of the present application. It should be noted that the control device can also be a gateway, which has the ability to control the smart desk lamp.

示意性的,控制设备中可以登录用户帐号,该用户帐号有相应的帐号标识与之对应。帐号标识可以是数字、字母或者其他字符中至少一种组合而成的唯一标识。控制设备通过用户帐号控制相应的智能台灯,智能台灯与用户帐号相绑定。Indicatively, a user account can be logged into the control device, and the user account has a corresponding account identifier corresponding to it. The account identifier can be a unique identifier composed of at least one combination of numbers, letters or other characters. The control device controls the corresponding smart desk lamp through the user account, and the smart desk lamp is bound to the user account.

可选地,当控制设备中登录有用户帐号时,用户通过用户帐号控制智能台灯。当控制设备中没有登录用户帐号时,控制设备将无法控制智能台灯并提示用户在控制设备中进行帐号登录或者帐号注册。示意性的,在另一种可能的方式中,控制设备可以预先登录有缺省的系统帐号,该系统帐号不可退出。用户使用控制设备控制智能台灯时,控制设备默认通过该系统帐号发出控制指令。Optionally, when a user account is logged into the control device, the user controls the smart desk lamp through the user account. When the user account is not logged into the control device, the control device will not be able to control the smart desk lamp and prompt the user to log in or register an account in the control device. Illustratively, in another possible manner, the control device may be pre-logged with a default system account, which cannot be logged out. When the user uses the control device to control the smart desk lamp, the control device issues control instructions through the system account by default.

配网指令:用于指示智能台灯进入与控制设备匹配并建立通信链路的状态。智能台灯进入配网状态时,智能台灯将在较短的周期内向周围广播设备识别信息。相应的,控制设备在接收到设备识别信息时,将向智能台灯发出的组网信号。示意性的,该组网信号可以是通过通信组件发出的信号。Network configuration instruction: used to instruct the smart desk lamp to enter a state of matching with the control device and establishing a communication link. When the smart desk lamp enters the network configuration state, the smart desk lamp will broadcast the device identification information to the surrounding area in a short period of time. Correspondingly, when the control device receives the device identification information, it will send a networking signal to the smart desk lamp. Indicatively, the networking signal can be a signal sent by a communication component.

联网配置信息:用于指示智能台灯中的无线保真组件与无线网关进行连接的信息。当智能台灯通过联网配置信息与无线网关连接后,无线网关可以在成功接入互联网的情况下,令智能台灯与服务器进行联网通信。示意性的,联网配置信息可以包括家庭中的网关标识和网关密码,和/或,服务器的标识和IP地址。Network configuration information: information used to instruct the wireless fidelity component in the smart desk lamp to connect to the wireless gateway. When the smart desk lamp is connected to the wireless gateway through the network configuration information, the wireless gateway can enable the smart desk lamp to communicate with the server through the network if it successfully accesses the Internet. In principle, the network configuration information may include the gateway identifier and gateway password in the home, and/or the identifier and IP address of the server.

请参见图1,图1是本申请一个示例性实施例提供的一种智能台灯的结构框图,如图1所示,该智能台灯包括处理器120、存储器140和通信组件160,所述存储器140中存储有至少一条指令,所述指令由所述处理器120加载并执行以实现如本申请由智能台灯执行的各个方法实施例所述的设备配网方法。Please refer to Figure 1, which is a structural block diagram of a smart desk lamp provided by an exemplary embodiment of the present application. As shown in Figure 1, the smart desk lamp includes a processor 120, a memory 140 and a communication component 160. The memory 140 stores at least one instruction, and the instruction is loaded and executed by the processor 120 to implement the device networking method described in the various method embodiments executed by the smart desk lamp in the present application.

在本申请中,智能台灯100广播第一无线信号,所述第一无线信号包括所述智能台灯的身份标识信息;接收控制设备基于所述第一无线信号发送的第一连接请求;响应于所述第一连接请求,检测第一接触控制指令,所述第一接触控制指令是所述智能台灯基于物理接触操作而触发的指令;确定检测到所述第一接触控制指令;响应于所述第一接触控制指令建立与所述控制设备之间的第一连接。In the present application, the smart desk lamp 100 broadcasts a first wireless signal, which includes the identity information of the smart desk lamp; receives a first connection request sent by a control device based on the first wireless signal; detects a first contact control instruction in response to the first connection request, which is an instruction triggered by the smart desk lamp based on physical contact operation; determines that the first contact control instruction is detected; and establishes a first connection with the control device in response to the first contact control instruction.

处理器120可以包括一个或者多个处理核心。处理器120利用各种接口和线路连接整个智能台灯100内的各个部分,通过运行或执行存储在存储器140内的指令、程序、代码集或指令集,以及调用存储在存储器140内的数据,执行智能台灯100的各种功能和处理数据。可选的,处理器120可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器120可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器120中,单独通过一块芯片进行实现。The processor 120 may include one or more processing cores. The processor 120 uses various interfaces and lines to connect the various parts of the entire smart desk lamp 100, and executes various functions and processes data of the smart desk lamp 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 140, and calling data stored in the memory 140. Optionally, the processor 120 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 120 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 120, but may be implemented separately through a chip.

存储器140可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选的,该存储器140包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器140可用于存储指令、程序、代码、代码集或指令集。存储器140可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储下面各个方法实施例中涉及到的数据等。The memory 140 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 140 includes a non-transitory computer-readable storage medium. The memory 140 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 140 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data involved in the following various method embodiments, etc.

通信组件160,用于与外界的电子设备之间进行通信。一种可能的方式中,该通信组件160包括编码单元、放大器、射频单元、天线和解码单元。需要说明的是,实际应用中的通信组件的组成可以根据需要进行调整,本申请实施例对此不作限定。示意性的,在一种可能的方式中,通信组件160仅支持一种工作模式。例如,智能台灯通过通信组件160进行热点分享时,不能同时与互联网进行信息交互。在另一种可能的方式中,智能台灯通过通信组件160进行热点分享的同时,还能够与互联网进行信息交互。The communication component 160 is used to communicate with external electronic devices. In one possible way, the communication component 160 includes a coding unit, an amplifier, a radio frequency unit, an antenna and a decoding unit. It should be noted that the composition of the communication component in actual application can be adjusted as needed, and the embodiment of the present application is not limited to this. Illustratively, in one possible way, the communication component 160 only supports one working mode. For example, when the smart desk lamp shares a hotspot through the communication component 160, it cannot interact with the Internet at the same time. In another possible way, the smart desk lamp can share a hotspot through the communication component 160 while also interacting with the Internet.

可选的,一种应用方式中,通信组件160包括蓝牙组件、WiFi组件或ZigBee组件中的一种。Optionally, in one application, the communication component 160 includes one of a Bluetooth component, a WiFi component or a ZigBee component.

可选的,另一种应用方式中,通信组件160包括蓝牙组件和无线保真组件。无线保真组件用于与无线网关连接,并且,无线保真组件用于对周围的设备进行热点分享。Optionally, in another application mode, the communication component 160 includes a Bluetooth component and a wireless fidelity component. The wireless fidelity component is used to connect to a wireless gateway, and the wireless fidelity component is used to share a hotspot with surrounding devices.

示例性地,本申请实施例所示的设备配网方法,可以应用在控制设备中,该控制设备具备显示屏。终端可以包括手机、平板电脑、膝上型电脑、智能眼镜、智能手环、或智能手表或网关等设备。For example, the device network configuration method shown in the embodiment of the present application can be applied to a control device having a display screen. The terminal can include a mobile phone, a tablet computer, a laptop, smart glasses, a smart bracelet, or a smart watch or a gateway.

请参见图2,图2是本申请一个示例性实施例提供的一种控制设备的结构框图,如图2所示,该控制设备包括处理器220、存储器240和通信组件260,所述存储器240中存储有至少一条指令,所述指令由所述处理器220加载并执行以实现如本申请各个方法实施例所述的控制设备的绑定方法。Please refer to Figure 2, which is a structural block diagram of a control device provided by an exemplary embodiment of the present application. As shown in Figure 2, the control device includes a processor 220, a memory 240 and a communication component 260. The memory 240 stores at least one instruction, and the instruction is loaded and executed by the processor 220 to implement the binding method of the control device as described in the various method embodiments of the present application.

处理器220可以包括一个或者多个处理核心。处理器220利用各种接口和线路连接整个控制设备200内的各个部分,通过运行或执行存储在存储器240内的指令、程序、代码集或指令集,以及调用存储在存储器240内的数据,执行控制设备200的各种功能和处理数据。可选的,处理器220可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器220可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器220中,单独通过一块芯片进行实现。The processor 220 may include one or more processing cores. The processor 220 uses various interfaces and lines to connect the various parts of the entire control device 200, and executes various functions and processes data of the control device 200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 240, and calling data stored in the memory 240. Optionally, the processor 220 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 220 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 220, but may be implemented separately through a chip.

存储器240可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选的,该存储器240包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器240可用于存储指令、程序、代码、代码集或指令集。存储器240可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储下面各个方法实施例中涉及到的数据等。The memory 240 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 240 includes a non-transitory computer-readable storage medium. The memory 240 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 240 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data involved in the following various method embodiments, etc.

通信组件260用于与智能台灯的通信组件160通信连接,以实现控制设备向智能台灯发送控制指令以及其它信息的功能。在本申请实施例中,控制设备与智能台灯之间建立第一连接。The communication component 260 is used to communicate with the communication component 160 of the smart desk lamp to realize the function of the control device sending control instructions and other information to the smart desk lamp. In the embodiment of the present application, a first connection is established between the control device and the smart desk lamp.

请参考图3,图3是本申请一个示例性实施例提供的一种系统框架的示意图。在图3中,包括智能台灯310、控制设备320、网关330和服务器340。Please refer to Fig. 3, which is a schematic diagram of a system framework provided by an exemplary embodiment of the present application. In Fig. 3, a smart desk lamp 310, a control device 320, a gateway 330 and a server 340 are included.

其中,智能台灯310与网关330进行第一连接。可选地,第一连接可以是蓝牙连接、WiFi连接或ZigBee连接。示意性的,当第一连接是蓝牙连接时,智能台灯通过蓝牙与控制设备320进行通信连接。Among them, the smart desk lamp 310 is first connected to the gateway 330. Optionally, the first connection can be a Bluetooth connection, a WiFi connection or a ZigBee connection. Indicatively, when the first connection is a Bluetooth connection, the smart desk lamp is connected to the control device 320 for communication via Bluetooth.

在一种可能的场景中,若控制设备320的使用者处于设置有网关330的室内,则控制设备320与服务器340的通信连接通过网关330完成。智能台灯与服务器340的通信连接也通过网关330完成。In a possible scenario, if the user of the control device 320 is in a room where the gateway 330 is installed, the communication connection between the control device 320 and the server 340 is completed through the gateway 330. The communication connection between the smart desk lamp and the server 340 is also completed through the gateway 330.

在另一种可能的场景中,若控制设备320的使用者处于没有网关330的室外,则控制设备320也可以通过自身的通信组件通过移动通信网络接入互联网,从而与服务器340建立通信连接。In another possible scenario, if the user of the control device 320 is outdoors without the gateway 330 , the control device 320 may also access the Internet through the mobile communication network via its own communication component, thereby establishing a communication connection with the server 340 .

请参考图4,图4是本申请一个示例性实施例提供的一种设备配网方法的流程图。该设备配网方法可以应用在上述图1或图3所示的智能台灯中。在图4中,设备配网方法包括:Please refer to FIG. 4, which is a flow chart of a device network configuration method provided by an exemplary embodiment of the present application. The device network configuration method can be applied to the smart desk lamp shown in FIG. 1 or FIG. 3 above. In FIG. 4, the device network configuration method includes:

步骤410,广播第一无线信号,第一无线信号包括智能台灯的身份标识信息。Step 410: broadcast a first wireless signal, where the first wireless signal includes the identity information of the smart desk lamp.

其中,第一无线信号中包括智能台灯的身份标识信息。可选地,智能台灯将在接收在配网指令时,向周围广播自身的设备识别信息。The first wireless signal includes the identity information of the smart desk lamp. Optionally, the smart desk lamp will broadcast its own device identification information to the surrounding area when receiving the network configuration instruction.

在一种可能的实现方式中,配网指令可以是智能台灯上接收到指定的实体按键操作时触发的。或者,配网指令也可以是智能台灯在通电后自动触发的指令。一种可能的方式中,该智能台灯没有绑定帐号,则该智能台灯在上电后自动触发配置指令,并在自身的配网指令的作用下,向周围广播台灯识别信息。另一种可能的方式中,该智能台灯在其中的实体按键被按下时,触发配网指令,向周围广播台灯识别信息。In one possible implementation, the network configuration instruction may be triggered when the smart desk lamp receives a designated physical button operation. Alternatively, the network configuration instruction may be an instruction automatically triggered by the smart desk lamp after power is turned on. In one possible way, if the smart desk lamp is not bound to an account, the smart desk lamp automatically triggers the configuration instruction after power is turned on, and broadcasts the desk lamp identification information to the surrounding area under the action of its own network configuration instruction. In another possible way, when a physical button of the smart desk lamp is pressed, the network configuration instruction is triggered to broadcast the desk lamp identification information to the surrounding area.

示意性的,智能台灯向周围广播第一无线信号。以便控制设备能够搜索到该设备识别信息,并向智能台灯发送组网信号。In an illustrative manner, the smart desk lamp broadcasts a first wireless signal to the surroundings, so that the control device can search for the device identification information and send a networking signal to the smart desk lamp.

步骤420,接收控制设备基于第一无线信号发送的第一连接请求。Step 420: Receive a first connection request sent by the control device based on a first wireless signal.

智能台灯能够接收第一连接请求。需要说明的是,该第一连接请求是控制设备基于第一无线信号发送的。因此,该第一连接请求能够被智能台灯接收并识别到。The smart desk lamp can receive the first connection request. It should be noted that the first connection request is sent by the control device based on the first wireless signal. Therefore, the first connection request can be received and identified by the smart desk lamp.

步骤430,响应于第一连接请求,检测第一接触控制指令,第一接触控制指令是智能台灯基于物理接触操作而触发的指令。Step 430: In response to the first connection request, a first contact control instruction is detected, where the first contact control instruction is an instruction triggered by the smart desk lamp based on a physical contact operation.

示意性的,智能台灯响应于第一连接请求,检测第一接触控制指令。该第一接触控制指令是智能台灯接受到物理接触操作而触发的指令。也即,当智能台灯被使用者实际触碰的情况下,智能台灯将触发接触控制指令。Illustratively, the smart desk lamp detects a first contact control instruction in response to the first connection request. The first contact control instruction is an instruction triggered by the smart desk lamp receiving a physical contact operation. That is, when the smart desk lamp is actually touched by the user, the smart desk lamp will trigger the contact control instruction.

一种可能的方式中,第一接触控制指令可以是智能台灯中的实体按键接受到触碰后触发的指令。该实体按键可以是1个、2个或者多个。触碰包括短按、长按、轻按、重按、单击、连击。另一方面,触碰还包括多个按键之间的组合按压方式。当智能台灯中的实体按键接收到预定方式按压的触碰时,触发第一接触控制指令。In one possible way, the first contact control instruction may be an instruction triggered after a physical button in the smart desk lamp receives a touch. The physical buttons may be 1, 2, or more. Touching includes short pressing, long pressing, light pressing, heavy pressing, single pressing, and continuous pressing. On the other hand, touching also includes a combination of pressing methods between multiple buttons. When a physical button in the smart desk lamp receives a touch pressed in a predetermined manner, the first contact control instruction is triggered.

另一种可能的方式中,第一接触控制指令可以是智能台灯中的可转动部件发生转动时触发的指令。该可转动部件可以是灯头、旋钮、悬臂或灯座中的至少一个,本申请实施例对此不作限定。以可转动部件是灯头为例进行说明。当智能台灯的灯头由折叠状态被转动到展开状态时,触发第一接触控制指令。或者,当智能台灯的灯头由展开状态被转动到折叠状态时,触发第一接触控制指令。In another possible manner, the first contact control instruction may be an instruction triggered when a rotatable component in the smart desk lamp rotates. The rotatable component may be at least one of a lamp head, a knob, a cantilever, or a lamp holder, which is not limited in the embodiments of the present application. Take the rotatable component as an example. When the lamp head of the smart desk lamp is rotated from a folded state to an unfolded state, the first contact control instruction is triggered. Alternatively, when the lamp head of the smart desk lamp is rotated from an unfolded state to a folded state, the first contact control instruction is triggered.

在又一种可能的方式中,第一接触控制指令可以是智能台灯的壳体被连续敲击N次时触发的指令。其中N为大于3的正整数。智能台灯通过陀螺仪检测敲击,当智能台灯的瞬时加速度超过指定阈值时,则智能台灯确认出现一次敲击。当在目标时段中出现N次敲击时,智能台灯触发第一接触控制指令。In another possible manner, the first contact control instruction may be an instruction triggered when the housing of the smart desk lamp is knocked N times in succession. Where N is a positive integer greater than 3. The smart desk lamp detects knocking through a gyroscope, and when the instantaneous acceleration of the smart desk lamp exceeds a specified threshold, the smart desk lamp confirms that a knock has occurred. When N knocks occur in the target period, the smart desk lamp triggers the first contact control instruction.

步骤440,确定检测到第一接触控制指令。Step 440: Determine whether a first contact control instruction is detected.

在本实施例中,终端能够在检测到第一接触控制指令时,确定检测到第一接触控制指令。In this embodiment, the terminal can determine that the first contact control instruction is detected when the first contact control instruction is detected.

在一种可能的方式中,智能台灯能够检测基于智能台灯的实体按键触发的第一按压流程,将第一按压流程所触发的指令作为第一接触控制指令。需要说明的是,第一按压流程可以是一组实体按键被按压的操作集合。例如,该第一按压流程可以是长按A按键4秒。或者,该第一按压流程也可以是同时按下A按键和B按键并持续3秒。或者,该第一按压流程也可以长按A按键3秒后,再长按B按键3秒。In one possible way, the smart desk lamp can detect the first pressing process triggered by the physical button of the smart desk lamp, and use the instruction triggered by the first pressing process as the first contact control instruction. It should be noted that the first pressing process can be a set of operations in which a group of physical buttons are pressed. For example, the first pressing process can be long pressing the A button for 4 seconds. Alternatively, the first pressing process can also be pressing the A button and the B button at the same time for 3 seconds. Alternatively, the first pressing process can also be long pressing the A button for 3 seconds, and then long pressing the B button for 3 seconds.

在本实施例中,当智能台灯中的实体按键按照第一按压流程按压时,智能台灯将第一按压流程所触发的指令作为第一接触控制指令。In this embodiment, when the physical button in the smart desk lamp is pressed according to the first pressing process, the smart desk lamp uses the instruction triggered by the first pressing process as the first contact control instruction.

步骤450,响应于第一接触控制指令建立与控制设备之间的第一连接。Step 450: Establish a first connection with a control device in response to a first contact control instruction.

在本申请实施例中,智能台灯能够响应于第一接触控制指令,建立与控制设备之间的第一连接。需要说明的是,当控制设备能够直接与互联网通信的设备时,智能台灯能够通过控制设备访问互联网。In the embodiment of the present application, the smart desk lamp can establish a first connection with the control device in response to the first contact control instruction. It should be noted that when the control device is a device that can directly communicate with the Internet, the smart desk lamp can access the Internet through the control device.

在一种可能实现的第一连接的建立方式中,智能台灯读取第一接触控制指令对应的指令字符串;将对应的指令字符串与预设的信息模版进行匹配;当对应的指令字符串与预设的信息模版匹配时,响应第一连接请求与控制设备建立第一连接。In one possible method of establishing a first connection, the smart desk lamp reads an instruction string corresponding to a first contact control instruction; matches the corresponding instruction string with a preset information template; and when the corresponding instruction string matches the preset information template, responds to the first connection request to establish a first connection with the control device.

例如,智能台灯在通电状态下,实体按键被按压后,生成第一接触控制指令,该第一接触控制指令中携带有对应的指令字符串。智能台灯内部将该对应的指令字符串与预设的信息模版进行匹配,当对应的指令字符串与预设的信息模版匹配时,响应第一连接请求与控制设备建立第一连接。For example, when the smart desk lamp is powered on and a physical button is pressed, a first contact control instruction is generated, and the first contact control instruction carries a corresponding instruction string. The smart desk lamp matches the corresponding instruction string with a preset information template, and when the corresponding instruction string matches the preset information template, the smart desk lamp responds to the first connection request and establishes a first connection with the control device.

在上述读取第一接触控制指令中的对应的指令字符串的过程中。智能台灯能够监控实体按键的信息输入接口。当信息输入接口产生数据时,将数据获取为指令字符串。由于本申请无需对智能台灯进行断电再上电的过程,使得用户在绑定智能台灯与控制设备中的主控帐号的过程中,不必中断智能台灯提供的照明服务,提高了智能台灯的连续工作能力,避免了断电造成用户行动受限的问题。In the process of reading the corresponding instruction string in the first contact control instruction, the smart desk lamp can monitor the information input interface of the physical button. When the information input interface generates data, the data is obtained as an instruction string. Since the present application does not require the process of powering off and then powering on the smart desk lamp, the user does not have to interrupt the lighting service provided by the smart desk lamp during the process of binding the smart desk lamp to the master account in the control device, thereby improving the continuous working ability of the smart desk lamp and avoiding the problem of restricted user movement due to power outages.

示意性的,以智能台灯是台灯为例,介绍本申请的一种可能的实施方式。在台灯处于通电状态下,接收作用于实体按键的接触控制指令;当按键信息与预设的信息模版匹配时,以提醒模式控制台灯发光,提醒模式用于提示台灯正在获取联网配置信息;通过安全通信链路获取联网配置信息。提醒模式可以包括闪烁、高亮或者以彩色光发光等模式。Schematically, a possible implementation of the present application is described by taking a smart desk lamp as an example. When the desk lamp is powered on, it receives a contact control instruction acting on a physical button; when the button information matches a preset information template, it controls the desk lamp to light up in a reminder mode, and the reminder mode is used to prompt the desk lamp that it is acquiring networking configuration information; and the networking configuration information is acquired through a secure communication link. The reminder mode may include flashing, highlighting, or emitting colored light.

综上所述,由于智能台灯可向周围广播包含身份标识信息的第一无线信号,并接收控制设备基于身份标识信息反馈的第一连接请求,响应该连接请求,智能台灯将检测自身是否受到物理接触操作,在被物理接触操作后,智能台灯将在该物理接触操作的指示下,与控制设备之间建立通信连接。由于智能台灯能够在自身实际接受到物理控制的前提下与控制设备建立通信连接。因此,本方案提高了智能台灯与控制设备建立连接时的安全性,降低了智能台灯与恶意的控制设备建立通信连接的风险。In summary, since the smart desk lamp can broadcast the first wireless signal containing identity information to the surroundings, and receive the first connection request fed back by the control device based on the identity information, in response to the connection request, the smart desk lamp will detect whether it is subjected to physical contact operation. After being subjected to physical contact operation, the smart desk lamp will establish a communication connection with the control device under the instruction of the physical contact operation. Since the smart desk lamp can establish a communication connection with the control device under the premise that it actually receives physical control. Therefore, this solution improves the security of the smart desk lamp when establishing a connection with the control device, and reduces the risk of the smart desk lamp establishing a communication connection with a malicious control device.

在智能台灯与控制设备之间建立第一连接之后,智能台灯还能够连入互联网。该方法的流程是在执行完成步骤450之后执行。在执行完成步骤450之后,智能台灯可以执行步骤(a)、步骤(b)和步骤(c)。After the first connection is established between the smart desk lamp and the control device, the smart desk lamp can also be connected to the Internet. The process of the method is performed after the step 450 is completed. After the step 450 is completed, the smart desk lamp can perform steps (a), (b) and (c).

步骤(a),通过所述第一连接接收所述控制设备发送的无线配网信息,所述无线配网信息包括网络设备信息和帐号信息。Step (a): receiving wireless network configuration information sent by the control device through the first connection, wherein the wireless network configuration information includes network device information and account information.

一种可能的方式中,网络设备信息可以是网络设备MAC地址或者其它标识信息。可选地,账号信息可以是无线路由器的ssid和相应的密码。In one possible manner, the network device information may be a network device MAC address or other identification information. Alternatively, the account information may be the SSID of the wireless router and a corresponding password.

步骤(b),根据所述网络设备信息与无线路由器建立第二连接。Step (b), establishing a second connection with the wireless router according to the network device information.

需要说明的是,在本申请实施例中,无线路由器和网关可以是同一种设备。第二连接可以是基于无线保真技术的短距离无线通信连接。It should be noted that, in the embodiment of the present application, the wireless router and the gateway may be the same device. The second connection may be a short-range wireless communication connection based on wireless fidelity technology.

步骤(c),通过所述第二连接向服务器发送绑定请求,所述绑定请求包括所述帐号信息,所述绑定请求用于将所述智能台灯和所述控制设备中登录的主控账号进行绑定。Step (c), sending a binding request to the server through the second connection, wherein the binding request includes the account information, and the binding request is used to bind the smart desk lamp and the master control account logged in to the control device.

在本申请实施例中,智能台灯连接蓝牙设备,蓝牙设备连接互联网。In an embodiment of the present application, the smart desk lamp is connected to a Bluetooth device, and the Bluetooth device is connected to the Internet.

示意性的,智能台灯在与互联网建立连接后,能够通过服务器的IP地址或者其它给定的地址访问到服务器,向该服务器发送绑定请求。其中,绑定请求中包括主控帐号的标识和智能台灯的标识。主控帐号的标识用于指示控制设备中当前登录的帐号。In an illustrative manner, after establishing a connection with the Internet, the smart desk lamp can access the server through the server's IP address or other given addresses, and send a binding request to the server. The binding request includes the master account identifier and the smart desk lamp identifier. The master account identifier is used to indicate the currently logged-in account in the control device.

可选地,在本实施例中,智能台灯将能够响应于服务器返回的成功绑定消息,该成功绑定消息用于指示服务器端已经将智能台灯与控制设备建立绑定关系。基于此场景,智能台灯将在本地保存与控制设备间的绑定关系,以便后续过程中接受该控制设备中的主控帐号的控制。Optionally, in this embodiment, the smart desk lamp will be able to respond to the successful binding message returned by the server, which is used to indicate that the server has established a binding relationship between the smart desk lamp and the control device. Based on this scenario, the smart desk lamp will locally save the binding relationship between the smart desk lamp and the control device so that it can be controlled by the master account in the control device in the subsequent process.

在本申请实施例中,智能台灯还能够在服务器中设置设备影子。具体而言,智能台灯向服务器发送设备影子创建请求,设备影子创建请求用于请求在服务器中创建与智能台灯的运行状态一致的动态备份;响应于服务器返回的设备创建成功消息,按照约定周期向服务器同步状态信息,约定周期是设备影子创建请求中包含的周期信息。In the embodiment of the present application, the smart desk lamp can also set a device shadow in the server. Specifically, the smart desk lamp sends a device shadow creation request to the server, and the device shadow creation request is used to request to create a dynamic backup consistent with the operating status of the smart desk lamp in the server; in response to the device creation success message returned by the server, the status information is synchronized to the server according to the agreed period, and the agreed period is the period information contained in the device shadow creation request.

需要说明的是,设备影子可以包括两个作用。在一种可能的作用中,设备影子用于延时控制。当智能台灯断电后,服务器中的智能台灯处于离线状态,服务器在设备影子中记录智能台灯断电时的状态数据。当智能台灯再次通电上线时,服务器可以根据设备影子恢复智能台灯断电前的状态。并且,由于设备影子的存在,控制设备能够在智能台灯断电下线的期间,对智能台灯正常发出指令。智能台灯将在通电上线后,响应控制设备发出的指令,使得控制设备发出的指令被延时响应,避免控制设备发出的指令得不到响应的问题。It should be noted that the device shadow can include two functions. In one possible function, the device shadow is used for delayed control. When the smart desk lamp is powered off, the smart desk lamp in the server is offline, and the server records the status data of the smart desk lamp when it is powered off in the device shadow. When the smart desk lamp is powered on again, the server can restore the state of the smart desk lamp before the power failure according to the device shadow. In addition, due to the existence of the device shadow, the control device can normally issue instructions to the smart desk lamp during the period when the smart desk lamp is powered off. After being powered on and online, the smart desk lamp will respond to the instructions issued by the control device, so that the instructions issued by the control device are responded to with a delay, avoiding the problem that the instructions issued by the control device cannot be responded to.

在另一种可能的作用中,设备影子可以避免多个具有控制权限的设备短时间内对于智能台灯的密集操作。例如,在指定的控制周期内,控制设备A向智能台灯发出按下主灯开关按键的指令,控制设备B同时也向智能台灯发出按下主灯开关按键的指令。设备影子可以舍弃在先控制设备A发送的指令,而仅响应控制设备B同时也向智能台灯发出按下主灯开关按键的指令,使得智能台灯正常关灯,避免了多个控制设备的频繁操作导致的智能台灯响应出现异常。In another possible role, the device shadow can prevent multiple devices with control permissions from intensively operating the smart desk lamp in a short period of time. For example, within a specified control cycle, control device A sends a command to the smart desk lamp to press the main light switch button, and control device B also sends a command to the smart desk lamp to press the main light switch button. The device shadow can discard the command sent by the first control device A, and only respond to the command sent by control device B to press the main light switch button to the smart desk lamp at the same time, so that the smart desk lamp can turn off the light normally, avoiding abnormal responses of the smart desk lamp caused by frequent operations of multiple control devices.

在一种可能的方式中,当智能台灯已经被主控帐号绑定时,智能台灯不再响应其它帐号的绑定请求。在具体的执行方式中,当智能台灯已在服务器中创建相应的设备影子时,输出拒绝绑定提示信息。其中,拒绝绑定提示信息既可以是显示在显示屏中的图文信息,也可以是通过扬声器播放的语音信息。In one possible way, when the smart desk lamp has been bound to the master account, the smart desk lamp will no longer respond to binding requests from other accounts. In a specific implementation, when the smart desk lamp has created a corresponding device shadow in the server, a prompt message of rejecting the binding is output. The prompt message of rejecting the binding can be either a graphic message displayed on the display screen or a voice message played through the speaker.

综上所述,本申请实施例能够在智能台灯和控制设备处于第一连接的情况下,通过该第一连接接收控制设备发送的无线配网信息,随后,智能台灯能够根据该无线配网信息中的网络设备信息和帐户信息与无线路由器建立第二连接,在此基础上,智能台灯通过第二连接向服务器发送绑定请求,绑定请求中包括智能台灯的帐号信息,该帐号将与控制设备中登录的主控帐号进行绑定,可见本申请实施例能够在智能台灯安全地与控制设备建立第一连接后,将绑定关系录入在云端中的服务器中,实现了智能台灯安全地被远程控制。在保证智能台灯被控制安全性的前提下,提高了智能台灯被远程控制的能力。In summary, the embodiment of the present application can receive the wireless network configuration information sent by the control device through the first connection when the smart desk lamp and the control device are in the first connection. Subsequently, the smart desk lamp can establish a second connection with the wireless router according to the network device information and account information in the wireless network configuration information. On this basis, the smart desk lamp sends a binding request to the server through the second connection. The binding request includes the account information of the smart desk lamp. The account will be bound to the main control account logged in the control device. It can be seen that the embodiment of the present application can enter the binding relationship into the server in the cloud after the smart desk lamp safely establishes the first connection with the control device, thereby realizing the safe remote control of the smart desk lamp. On the premise of ensuring the safety of the smart desk lamp being controlled, the ability of the smart desk lamp to be remotely controlled is improved.

基于上一个实施例所公开的方案,本申请实施例还能够从控制设备侧介绍本方案的显示,请参考如下实施例。Based on the solution disclosed in the previous embodiment, the embodiment of the present application can also introduce the display of this solution from the control device side, please refer to the following embodiment.

请参见图5,图5是本申请一个示例性实施例提供的一种设备配网方法流程图。该设备配网方法可以应用在上述图1或图3所示的控制设备中。在图5中,该设备配网方法包括:Please refer to FIG. 5, which is a flow chart of a device network configuration method provided by an exemplary embodiment of the present application. The device network configuration method can be applied to the control device shown in FIG. 1 or FIG. 3 above. In FIG. 5, the device network configuration method includes:

步骤510,响应于登录信息的完成录入,向服务器发送帐号登录请求。Step 510, in response to completion of the entry of the login information, an account login request is sent to the server.

示意性的,控制设备中既可以通过系统应用控制智能设备,也可以通过第三方应用控制智能设备。Illustratively, in the control device, the smart device can be controlled by system applications or by third-party applications.

以控制设备通过系统应用控制智能设备为例,介绍本实施例。This embodiment is introduced by taking the control device controlling the smart device through the system application as an example.

当控制设备中的系统应用启动后,或者,首次启动后。系统应用将显示用户帐号的登录界面,用户能够通过该登录界面接收用户输入的登录信息。当用户完成登录信息的输入后,控制设备将向服务器发送帐号登录请求。其中,该帐号登录请求用于请求在服务器中登录上述登录信息对应的主控帐号。When the system application in the control device is started, or when it is started for the first time, the system application will display the login interface of the user account, and the user can receive the login information entered by the user through the login interface. When the user completes the input of the login information, the control device will send an account login request to the server. Among them, the account login request is used to request to log in the master account corresponding to the above login information in the server.

步骤520,响应于服务器返回的登录成功消息,搜索周围的第一无线信号,在搜索到第一无线信号后,向第一无线信号中的身份标识信息对应的智能台灯发射组网信号。Step 520, in response to the login success message returned by the server, search for the first wireless signal in the surrounding area, and after searching for the first wireless signal, transmit a networking signal to the smart desk lamp corresponding to the identity information in the first wireless signal.

步骤530,指示智能台灯建立与控制设备之间的第一连接。Step 530, instructing the smart desk lamp to establish a first connection with the control device.

可选地,控制设备的显示屏中还可以在上述不同的阶段显示不同的内容,以便用户掌握智能台灯与控制设备的绑定进度。Optionally, the display screen of the control device may also display different contents in the above-mentioned different stages, so that the user can understand the binding progress of the smart desk lamp and the control device.

示意性的,请参见图6,图6是基于图5所示实施例提供的一种用户界面的示意图。在图6中,控制设备可以通过执行步骤610、步骤620和步骤630。Schematically, please refer to Fig. 6, which is a schematic diagram of a user interface provided based on the embodiment shown in Fig. 5. In Fig. 6, the control device can perform steps 610, 620 and 630.

步骤610,当向智能台灯发送组网信号时,控制设备显示状态展示界面,状态展示界面用于指示控制设备当前与智能台灯之间待连接的关系。Step 610, when sending a networking signal to the smart desk lamp, the control device displays a status display interface, and the status display interface is used to indicate the current relationship between the control device and the smart desk lamp to be connected.

步骤620,当与智能台灯成功建立第一连接时,通过显示屏在状态展示界面上显示遮盖层,遮盖层中显示联网操作信息,联网操作信息用于设置智能台灯中的无线保真组件接入家中的无线网关。Step 620, when the first connection is successfully established with the smart desk lamp, a cover layer is displayed on the status display interface through the display screen, and the cover layer displays networking operation information, which is used to set the wireless fidelity component in the smart desk lamp to access the wireless gateway in the home.

步骤630,当接收到成功绑定消息时,在状态展示界面展示对应的提示信息。Step 630: When a successful binding message is received, a corresponding prompt message is displayed on the status display interface.

请参见图7,图7是本申请实施例提供的一种智能台灯的绑定过程的用户界面示意图。在图7中,用户界面由状态710依次变化为状态720、状态730和状态740。在状态710中,该用户界面为状态展示界面。该状态展示界面显示有“正在扫描设备”,也即该消息用于指示控制设备正在扫描台灯的标识。当控制设备扫描到台灯的标识时,状态710变为状态720。在状态720中,状态展示界面上显示有一个遮盖层721,在该遮盖层721上显示有“联网确认:长按左侧读写键直至主灯灯光闪烁后松手,根据应用提示完成下一步操作。”随后,当台灯向控制设备返回已完成联网确认操作时,控制设备关闭该遮盖层。显示屏的显示状态转变为状态730,控制设备与智能台灯建立第一连接。在状态730中,控制设备通过百分比动画的形式展现当前控制设备与台灯的绑定进度。当控制设备接收到成功绑定消息时,控制设备将在状态显示界面展示对应的提示信息。此时,状态730变为状态740。在状态740中,对应的提示信息的内容为“设备添加成功,你的新设备已就绪”。Please refer to Figure 7, which is a user interface schematic diagram of a binding process of a smart desk lamp provided in an embodiment of the present application. In Figure 7, the user interface changes from state 710 to state 720, state 730 and state 740 in sequence. In state 710, the user interface is a state display interface. The state display interface displays "Scanning device", that is, the message is used to indicate that the control device is scanning the identification of the desk lamp. When the control device scans the identification of the desk lamp, state 710 changes to state 720. In state 720, a cover layer 721 is displayed on the state display interface, and "Networking confirmation: Long press the left read-write key until the main light flashes and then release it, and complete the next operation according to the application prompts." Subsequently, when the desk lamp returns to the control device that the networking confirmation operation has been completed, the control device closes the cover layer. The display state of the display screen changes to state 730, and the control device establishes a first connection with the smart desk lamp. In state 730, the control device displays the binding progress of the current control device and the desk lamp in the form of a percentage animation. When the control device receives the successful binding message, the control device will display the corresponding prompt information in the status display interface. At this time, the state 730 changes to the state 740. In the state 740, the content of the corresponding prompt information is "The device has been added successfully, and your new device is ready."

综上所述,本申请实施例介绍的控制设备,能够在用户界面中提醒需要用户在适当的时候在智能台灯上通过实体按键的按压,实现智能台灯和控制设备之间的第一连接。由于控制终端上的提示明确及时,能够使得智能台灯在安全的情况下与控制设备建立第一连接,提高了控制设备与智能台灯之间的连接的安全性。In summary, the control device introduced in the embodiment of the present application can remind the user in the user interface that the user needs to press a physical button on the smart desk lamp at an appropriate time to achieve the first connection between the smart desk lamp and the control device. Since the prompt on the control terminal is clear and timely, the smart desk lamp can establish the first connection with the control device in a safe manner, thereby improving the security of the connection between the control device and the smart desk lamp.

请参见图8,图8是本申请实施例提供的一种设备配网方法的流程图。该设备配网的流程可以应用在智能台灯中。在图8中示出了智能台灯在执行完成如上述方法示出的步骤410至步骤450、步骤(a)、步骤(b)和步骤(c)之后,执行本方法。在本方法包括如下步骤。Please refer to Figure 8, which is a flow chart of a device network configuration method provided in an embodiment of the present application. The device network configuration process can be applied to a smart desk lamp. Figure 8 shows that the smart desk lamp executes this method after completing steps 410 to 450, steps (a), (b) and (c) as shown in the above method. This method includes the following steps.

步骤811,检测第二接触控制指令,第二接触控制指令是智能台灯的实体按键在第二按压流程下触发的指令。Step 811, detecting a second contact control instruction, where the second contact control instruction is an instruction triggered by a physical button of the smart desk lamp under a second pressing process.

在本例中,智能台灯能够检测第二接触控制指令,需要说明的是,第二接触控制指令是在智能台灯的实体按键在第二按压流程下触发的指令。其中第二按压流程可以和第一按压流程是不同按压流程。也即,触发第一接触控制指令的按压实体按键的流程,和,触发第二接触控制指令的按压实体按键的流程不同。In this example, the smart desk lamp can detect the second contact control instruction. It should be noted that the second contact control instruction is an instruction triggered by the physical button of the smart desk lamp under the second pressing process. The second pressing process can be a different pressing process from the first pressing process. That is, the process of pressing the physical button to trigger the first contact control instruction is different from the process of pressing the physical button to trigger the second contact control instruction.

步骤812,控制智能台灯中的发光组件以第一发光模式发光。Step 812, control the light-emitting component in the smart desk lamp to emit light in a first light-emitting mode.

示意性的,智能台灯能够控制自身中的发光组件以第一发光模式发光。其中,第一发光模式包括闪烁、高亮或彩色等发光方式。Illustratively, the smart desk lamp can control the light-emitting components in the smart desk lamp to emit light in a first light-emitting mode, wherein the first light-emitting mode includes flashing, highlighting or coloring light-emitting modes.

步骤813,响应于第二接触控制指令,扫描待接入设备广播的第二无线信号,第二无线信号包括待接入设备的身份标识信息。Step 813: In response to the second contact control instruction, scan the second wireless signal broadcast by the device to be connected, where the second wireless signal includes the identity information of the device to be connected.

在本例中,智能台灯将作为扫描周围接入设备的设备。其中,智能台灯具有扫描能力。In this example, the smart desk lamp will be used as a device to scan surrounding connected devices. The smart desk lamp has scanning capabilities.

可选的,待接入设备可以是不包括实体按键的传感器,待接入设备也可以是包括实体按键的传感器,或者,待接入设备也可以是包括实体按键的灯具。Optionally, the device to be connected may be a sensor without a physical button, the device to be connected may be a sensor including a physical button, or the device to be connected may be a lamp including a physical button.

在应用本方案时,家庭中的全部灯具均可以自动接入智能台灯,将智能台灯作为网关。When this solution is applied, all lamps in the home can be automatically connected to the smart desk lamp, using the smart desk lamp as a gateway.

步骤820,验证待接入设备的身份标识信息。Step 820: Verify the identity information of the device to be connected.

可选的,智能台灯能够验证待接入设备的身份标识信息。在一种可能的验证方式中,智能台灯能够将该身份标识信息发送至服务器,由服务器来验证待接入设备是否是正品设备。在另一种可能的验证方式中,智能台灯能够获取到待接入设备的MAC地址以及待接入设备的名称。智能台灯验证待接入设备的名称是否符合预设的命名规则。例如,预设规则是“taideng-X”。其中“taideng”是固定出现的字符,“X”表示MAC地址的后两位。当待接入设备的名称不符合预设的命名规则时,智能台灯将直接拒绝该待接入设备的接入请求。Optionally, the smart desk lamp can verify the identity information of the device to be accessed. In one possible verification method, the smart desk lamp can send the identity information to the server, and the server verifies whether the device to be accessed is a genuine device. In another possible verification method, the smart desk lamp can obtain the MAC address of the device to be accessed and the name of the device to be accessed. The smart desk lamp verifies whether the name of the device to be accessed complies with the preset naming rules. For example, the preset rule is "taideng-X". Among them, "taideng" is a fixed character, and "X" represents the last two digits of the MAC address. When the name of the device to be accessed does not comply with the preset naming rules, the smart desk lamp will directly reject the access request of the device to be accessed.

步骤830,当待接入设备的身份标识信息通过验证时,与待接入设备建立第三连接。Step 830: When the identity information of the device to be connected is verified, a third connection is established with the device to be connected.

示意性的,步骤830可以通过步骤(1)、步骤(2)和步骤(3)来实现。Illustratively, step 830 can be implemented through step (1), step (2) and step (3).

步骤(1),向待接入设备发送第二连接请求,第二连接请求用于询问待接入设备是否确认与智能台灯建立第三连接。Step (1), sending a second connection request to the device to be connected, the second connection request is used to inquire whether the device to be connected confirms to establish a third connection with the smart desk lamp.

需要说明的是,第三连接可以是蓝牙连接、WiFi连接或Zigbee连接中的一种。It should be noted that the third connection may be a Bluetooth connection, a WiFi connection or a Zigbee connection.

步骤(2),控制智能台灯中的发光组件以第二发光模式发光。Step (2), controlling the light-emitting component in the smart desk lamp to emit light in a second light-emitting mode.

在本例中,为了对用户作出针对性提醒,第一发光模式和第二发光模式是不同的发光模式。In this example, in order to give a targeted reminder to the user, the first light pattern and the second light pattern are different light patterns.

步骤(3),响应于待接入设备发送的连接确认信息,与待接入设备建立第三连接。Step (3), in response to the connection confirmation information sent by the device to be connected, establish a third connection with the device to be connected.

需要说明的是,当待接入设备中具有实体按键时,待接入设备在向智能台灯发送第二无线信号之前,需要在实体按键按照第三按压流程按压。可见,待接入设备接入智能台灯时也能保证连接的可控性和安全性。It should be noted that when the device to be connected has a physical button, the device to be connected needs to press the physical button according to the third pressing process before sending the second wireless signal to the smart desk lamp. It can be seen that the controllability and security of the connection can also be guaranteed when the device to be connected is connected to the smart desk lamp.

综上所述,本申请实施例提供的设备配网方法,能够令智能台灯充当网关的角色,安全地与周围的待接入设备进行连接,不仅提高了智能台灯接入控制设备的安全性,也提高了其它待接入设备接入智能台灯的安全性。To sum up, the device networking method provided in the embodiment of the present application can enable the smart desk lamp to act as a gateway and securely connect to surrounding devices to be connected, which not only improves the security of the smart desk lamp accessing the control device, but also improves the security of other devices to be connected accessing the smart desk lamp.

下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

请参考图9,图9是本申请一个示例性实施例提供的一种设备配网装置的结构框图。该设备配网装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。该装置包括:Please refer to Figure 9, which is a structural block diagram of a device network configuration device provided by an exemplary embodiment of the present application. The device network configuration device can be implemented as all or part of the terminal through software, hardware, or a combination of both. The device includes:

信号广播模块910,用于广播第一无线信号,所述第一无线信号包括所述智能台灯的身份标识信息;A signal broadcasting module 910, configured to broadcast a first wireless signal, wherein the first wireless signal includes the identity information of the smart desk lamp;

请求接收模块920,用于接收控制设备基于所述第一无线信号发送的第一连接请求;A request receiving module 920, configured to receive a first connection request sent by a control device based on the first wireless signal;

指令检测模块930,用于响应于所述第一连接请求,检测第一接触控制指令,所述第一接触控制指令是所述智能台灯基于物理接触操作而触发的指令;An instruction detection module 930, configured to detect a first contact control instruction in response to the first connection request, where the first contact control instruction is an instruction triggered by the smart desk lamp based on a physical contact operation;

指令确定模块940,用于确定检测到所述第一接触控制指令;An instruction determination module 940 is used to determine that the first contact control instruction is detected;

连接建立模块950,用于响应于所述第一接触控制指令建立与所述控制设备之间的第一连接。The connection establishing module 950 is used to establish a first connection with the control device in response to the first contact control instruction.

在一个可选的实施例中,所述装置还包括无线配网模块,用于通过所述第一连接接收所述控制设备发送的无线配网信息,所述无线配网信息包括网络设备信息和帐号信息;根据所述网络设备信息与无线路由器建立第二连接;通过所述第二连接向服务器发送绑定请求,所述绑定请求包括所述帐号信息,所述绑定请求用于将所述智能台灯和所述控制设备中登录的主控账号进行绑定。In an optional embodiment, the device also includes a wireless network configuration module, which is used to receive wireless network configuration information sent by the control device through the first connection, and the wireless network configuration information includes network device information and account information; establish a second connection with a wireless router based on the network device information; send a binding request to the server through the second connection, and the binding request includes the account information. The binding request is used to bind the smart desk lamp and the master control account logged in to the control device.

在一个可选的实施例中,所述第一接触控制指令是所述智能台灯中的实体按键接受到触碰后触发的指令;和/或,所述第一接触控制指令是所述智能台灯中的可转动部件发生转动时触发的指令。In an optional embodiment, the first contact control instruction is an instruction triggered when a physical button in the smart desk lamp receives a touch; and/or, the first contact control instruction is an instruction triggered when a rotatable part in the smart desk lamp rotates.

在一个可选的实施例中,所述连接建立模块950,用于读取所述第一接触控制指令对应的指令字符串;将所述对应的指令字符串与预设的信息模版进行匹配;当所述对应的指令字符串与所述预设的信息模版匹配时,响应所述第一连接请求与所述控制设备建立所述第一连接。In an optional embodiment, the connection establishment module 950 is used to read the instruction string corresponding to the first contact control instruction; match the corresponding instruction string with a preset information template; and when the corresponding instruction string matches the preset information template, respond to the first connection request to establish the first connection with the control device.

在一个可选的实施例中,连接建立模块950,用于监控所述实体按键的信息输入接口;当所述信息输入接口产生数据时,将所述数据获取为所述指令字符串。In an optional embodiment, the connection establishment module 950 is used to monitor the information input interface of the physical key; when the information input interface generates data, the data is obtained as the instruction string.

在一个可选的实施例中,所述装置涉及的所述第一连接为蓝牙连接、WiFi连接或Zigbee连接中的一种。In an optional embodiment, the first connection involved in the device is one of a Bluetooth connection, a WiFi connection or a Zigbee connection.

在一个可选的实施例中,指令检测模块930,用于检测基于所述智能台灯的实体按键触发的第一按压流程;将所述第一按压流程所触发的指令作为所述第一接触控制指令。In an optional embodiment, the instruction detection module 930 is used to detect a first pressing process triggered by a physical button of the smart desk lamp; and use the instruction triggered by the first pressing process as the first contact control instruction.

在一个可选的实施例中,所述装置还包括组网模块,用于检测第二接触控制指令,所述第二接触控制指令是所述智能台灯的实体按键在第二按压流程下触发的指令;响应于所述第二接触控制指令,扫描待接入设备广播的第二无线信号,所述第二无线信号包括所述待接入设备的身份标识信息;验证所述待接入设备的身份标识信息;当所述待接入设备的身份标识信息通过验证时,与所述待接入设备建立第三连接。In an optional embodiment, the device also includes a networking module for detecting a second contact control instruction, which is an instruction triggered by the physical button of the smart desk lamp under a second pressing process; in response to the second contact control instruction, scanning a second wireless signal broadcast by the device to be accessed, the second wireless signal includes identity information of the device to be accessed; verifying the identity information of the device to be accessed; and establishing a third connection with the device to be accessed when the identity information of the device to be accessed passes the verification.

在一个可选的实施例中,所述组网模块,用于向所述待接入设备发送第二连接请求,所述第二连接请求用于询问所述待接入设备是否确认与所述智能台灯建立所述第三连接;响应于所述待接入设备发送的连接确认信息,与所述待接入设备建立第三连接。In an optional embodiment, the networking module is used to send a second connection request to the device to be connected, and the second connection request is used to inquire whether the device to be connected confirms to establish the third connection with the smart desk lamp; in response to the connection confirmation information sent by the device to be connected, establish the third connection with the device to be connected.

在一个可选的实施例中,所述装置还包括发光提醒模块,用于控制所述智能台灯中的发光组件以第一发光模式发光;控制所述智能台灯中的发光组件以第二发光模式发光。In an optional embodiment, the device further includes a lighting reminder module, which is used to control the light-emitting component in the smart desk lamp to emit light in a first lighting mode; and control the light-emitting component in the smart desk lamp to emit light in a second lighting mode.

综上所述,本实施例提供的设备配网装置,能够令智能台灯可向周围广播包含身份标识信息的第一无线信号,并接收控制设备基于身份标识信息反馈的第一连接请求,响应该连接请求,智能台灯将检测自身是否受到物理接触操作,在被物理接触操作后,智能台灯将在该物理接触操作的指示下,与控制设备之间建立通信连接。由于智能台灯能够在自身实际接受到物理控制的前提下与控制设备建立通信连接。因此,本方案提高了智能台灯与控制设备建立连接时的安全性,降低了智能台灯与恶意的控制设备建立通信连接的风险。In summary, the equipment network distribution device provided in this embodiment can enable the smart desk lamp to broadcast a first wireless signal containing identity information to the surroundings, and receive a first connection request fed back by the control device based on the identity information. In response to the connection request, the smart desk lamp will detect whether it is subjected to physical contact operation. After being subjected to physical contact operation, the smart desk lamp will establish a communication connection with the control device under the instruction of the physical contact operation. Since the smart desk lamp can establish a communication connection with the control device under the premise that it actually receives physical control. Therefore, this solution improves the security of the smart desk lamp when establishing a connection with the control device, and reduces the risk of the smart desk lamp establishing a communication connection with a malicious control device.

本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述由智能设备执行的设备配网方法。An embodiment of the present application further provides a computer-readable medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the device network configuration method executed by the smart device as described in the above embodiments.

需要说明的是:上述实施例提供的设备配网装置在执行设备配网方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的设备配网装置与设备配网方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the device network configuration device provided in the above embodiment only uses the division of the above functional modules as an example when executing the device network configuration method. In actual applications, the above functional distribution can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device network configuration device provided in the above embodiment and the device network configuration method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

以上所述仅为本申请的能够实现的示例性的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only an illustrative embodiment that can be implemented in the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims (13)

1.一种设备配网方法,其特征在于,应用于智能台灯中,所述方法包括:1. A device network configuration method, characterized in that it is applied to a smart desk lamp, and the method comprises: 广播第一无线信号,所述第一无线信号包括所述智能台灯的身份标识信息;Broadcasting a first wireless signal, wherein the first wireless signal includes identity information of the smart desk lamp; 接收控制设备基于所述第一无线信号发送的第一连接请求;Receiving a first connection request sent by a control device based on the first wireless signal; 响应于所述第一连接请求,检测第一接触控制指令,所述第一接触控制指令是所述智能台灯基于物理接触操作而触发的指令;In response to the first connection request, detecting a first contact control instruction, where the first contact control instruction is an instruction triggered by the smart desk lamp based on a physical contact operation; 确定检测到所述第一接触控制指令;Determining that the first contact control instruction is detected; 读取所述第一接触控制指令对应的指令字符串;Reading the instruction character string corresponding to the first contact control instruction; 将所述对应的指令字符串与预设的信息模版进行匹配;Matching the corresponding instruction string with a preset information template; 当所述对应的指令字符串与所述预设的信息模版匹配时,响应所述第一连接请求与所述控制设备建立第一连接。When the corresponding instruction string matches the preset information template, a first connection is established with the control device in response to the first connection request. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 通过所述第一连接接收所述控制设备发送的无线配网信息,所述无线配网信息包括网络设备信息和帐号信息;receiving wireless network configuration information sent by the control device through the first connection, wherein the wireless network configuration information includes network device information and account information; 根据所述网络设备信息与无线路由器建立第二连接;Establishing a second connection with the wireless router according to the network device information; 通过所述第二连接向服务器发送绑定请求,所述绑定请求包括所述帐号信息,所述绑定请求用于将所述智能台灯和所述控制设备中登录的主控账号进行绑定。A binding request is sent to the server through the second connection, wherein the binding request includes the account information, and the binding request is used to bind the smart desk lamp and the master control account logged in to the control device. 3.根据权利要求1所述的方法,其特征在于,3. The method according to claim 1, characterized in that 所述第一接触控制指令是所述智能台灯中的实体按键接受到触碰后触发的指令;The first touch control instruction is an instruction triggered after a physical button in the smart desk lamp receives a touch; 和/或,and/or, 所述第一接触控制指令是所述智能台灯中的可转动部件发生转动时触发的指令。The first contact control instruction is an instruction triggered when the rotatable component in the smart desk lamp rotates. 4.根据权利要求3所述的方法,其特征在于,所述第一接触控制指令是所述智能台灯中的实体按键接受到触碰后触发的指令,所述读取所述第一接触控制指令对应的指令字符串包括:4. The method according to claim 3, characterized in that the first touch control instruction is an instruction triggered after a physical button in the smart desk lamp receives a touch, and the step of reading an instruction string corresponding to the first touch control instruction comprises: 监控所述实体按键的信息输入接口;An information input interface for monitoring the physical buttons; 当所述信息输入接口产生数据时,将所述数据获取为所述指令字符串。When the information input interface generates data, the data is acquired as the instruction character string. 5.根据权利要求1所述的方法,其特征在于,5. The method according to claim 1, characterized in that: 所述第一连接为蓝牙连接、WiFi连接或Zigbee连接中的一种。The first connection is one of a Bluetooth connection, a WiFi connection or a Zigbee connection. 6.根据权利要求1所述的方法,其特征在于,所述检测第一接触控制指令包括:6. The method according to claim 1, wherein detecting the first contact control instruction comprises: 检测基于所述智能台灯的实体按键触发的第一按压流程;Detecting a first pressing process triggered by a physical button of the smart desk lamp; 将所述第一按压流程所触发的指令作为所述第一接触控制指令。The instruction triggered by the first pressing process is used as the first contact control instruction. 7.根据权利要求2所述的方法,其特征在于,所述根据所述网络设备信息与无线路由器建立第二连接之后包括:7. The method according to claim 2, characterized in that after establishing the second connection with the wireless router according to the network device information, the method further comprises: 检测第二接触控制指令,所述第二接触控制指令是所述智能台灯的实体按键在第二按压流程下触发的指令;Detecting a second contact control instruction, where the second contact control instruction is an instruction triggered by a physical button of the smart desk lamp under a second pressing process; 响应于所述第二接触控制指令,扫描待接入设备广播的第二无线信号,所述第二无线信号包括所述待接入设备的身份标识信息;In response to the second contact control instruction, scanning a second wireless signal broadcast by the device to be connected, wherein the second wireless signal includes identity information of the device to be connected; 验证所述待接入设备的身份标识信息;Verifying the identity information of the device to be connected; 当所述待接入设备的身份标识信息通过验证时,与所述待接入设备建立第三连接。When the identity information of the device to be connected is verified, a third connection is established with the device to be connected. 8.根据权利要求7所述的方法,其特征在于,所述与所述待接入设备建立第三连接包括:8. The method according to claim 7, wherein establishing a third connection with the device to be connected comprises: 向所述待接入设备发送第二连接请求,所述第二连接请求用于询问所述待接入设备是否确认与所述智能台灯建立所述第三连接;Sending a second connection request to the device to be connected, where the second connection request is used to inquire whether the device to be connected confirms to establish the third connection with the smart desk lamp; 响应于所述待接入设备发送的连接确认信息,与所述待接入设备建立第三连接。In response to the connection confirmation information sent by the device to be connected, a third connection is established with the device to be connected. 9.根据权利要求8所述的方法,其特征在于,9. The method according to claim 8, characterized in that 所述扫描待接入设备广播的第二无线信号之前包括:控制所述智能台灯中的发光组件以第一发光模式发光;Before scanning the second wireless signal broadcast by the device to be connected, the method includes: controlling the light-emitting component in the smart desk lamp to emit light in a first light-emitting mode; 所述向所述待接入设备发送第二连接请求之后包括:控制所述智能台灯中的发光组件以第二发光模式发光。After sending the second connection request to the device to be connected, the method includes: controlling the light-emitting component in the smart desk lamp to emit light in a second light-emitting mode. 10.一种设备配网装置,其特征在于,应用于智能台灯中,所述装置包括:10. A device network distribution device, characterized in that it is applied to a smart desk lamp, and the device comprises: 信号广播模块,用于广播第一无线信号,所述第一无线信号包括所述智能台灯的身份标识信息;A signal broadcasting module, used for broadcasting a first wireless signal, wherein the first wireless signal includes the identity information of the smart desk lamp; 请求接收模块,用于接收控制设备基于所述第一无线信号发送的第一连接请求;A request receiving module, configured to receive a first connection request sent by a control device based on the first wireless signal; 指令检测模块,用于响应于所述第一连接请求,检测第一接触控制指令,所述第一接触控制指令是所述智能台灯基于物理接触操作而触发的指令;an instruction detection module, configured to detect a first contact control instruction in response to the first connection request, wherein the first contact control instruction is an instruction triggered by the smart desk lamp based on a physical contact operation; 指令确定模块,用于确定检测到所述第一接触控制指令;An instruction determination module, used for determining that the first contact control instruction is detected; 连接建立模块,用于读取所述第一接触控制指令对应的指令字符串;将所述对应的指令字符串与预设的信息模版进行匹配;当所述对应的指令字符串与所述预设的信息模版匹配时,响应所述第一连接请求与所述控制设备建立第一连接。A connection establishment module is used to read the instruction string corresponding to the first contact control instruction; match the corresponding instruction string with a preset information template; when the corresponding instruction string matches the preset information template, respond to the first connection request to establish a first connection with the control device. 11.一种智能台灯,其特征在于,所述智能台灯包括通信组件、处理器、和与所述处理器相连的存储器,以及存储在所述存储器上的程序指令,所述处理器执行所述程序指令时实现如权利要求1至9任一所述的设备配网方法。11. A smart desk lamp, characterized in that the smart desk lamp comprises a communication component, a processor, a memory connected to the processor, and program instructions stored in the memory, and when the processor executes the program instructions, the device networking method as described in any one of claims 1 to 9 is implemented. 12.一种计算机可读存储介质,所述存储介质中存储有程序指令,其特征在于,所述程序指令被处理器执行时实现如权利要求1至9任一所述的设备配网方法。12. A computer-readable storage medium, wherein program instructions are stored in the storage medium, wherein when the program instructions are executed by a processor, the device network configuration method according to any one of claims 1 to 9 is implemented. 13.一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述计算机设备执行如权利要求1至9任一所述的设备配网方法。13. A computer program product, characterized in that the computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the device network configuration method as described in any one of claims 1 to 9.
CN202010893699.4A 2020-08-31 2020-08-31 Device network distribution method, device, smart desk lamp and storage medium Active CN114125837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010893699.4A CN114125837B (en) 2020-08-31 2020-08-31 Device network distribution method, device, smart desk lamp and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010893699.4A CN114125837B (en) 2020-08-31 2020-08-31 Device network distribution method, device, smart desk lamp and storage medium

Publications (2)

Publication Number Publication Date
CN114125837A CN114125837A (en) 2022-03-01
CN114125837B true CN114125837B (en) 2024-09-06

Family

ID=80359530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010893699.4A Active CN114125837B (en) 2020-08-31 2020-08-31 Device network distribution method, device, smart desk lamp and storage medium

Country Status (1)

Country Link
CN (1) CN114125837B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278551B (en) * 2022-06-14 2023-10-13 广东逸动科技有限公司 Control method, remote control end, intelligent terminal, communication system and storage medium
CN115396246B (en) * 2022-08-17 2024-11-01 深圳市欧瑞博科技股份有限公司 Data center access method, system, computer equipment and storage medium
CN117614762B (en) * 2023-11-08 2025-05-02 深圳博芯科技股份有限公司 Offline voice system for smart home

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516183A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Device connection method and device
CN109240111A (en) * 2018-10-15 2019-01-18 深圳市欧瑞博科技有限公司 Intelligent home furnishing control method, device, system and intelligent gateway

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780154B (en) * 2015-03-13 2018-06-19 小米科技有限责任公司 Apparatus bound method and apparatus
CN105093948A (en) * 2015-07-13 2015-11-25 小米科技有限责任公司 Intelligent device control method, terminal, and server
CN109547299A (en) * 2018-10-15 2019-03-29 深圳市欧瑞博科技有限公司 Information processing method, device, intelligence control system, intelligent gateway and server
CN113169991A (en) * 2019-02-22 2021-07-23 深圳市欢太科技有限公司 Intelligent device distribution network method, device, electronic device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516183A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Device connection method and device
CN109240111A (en) * 2018-10-15 2019-01-18 深圳市欧瑞博科技有限公司 Intelligent home furnishing control method, device, system and intelligent gateway

Also Published As

Publication number Publication date
CN114125837A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN114125837B (en) Device network distribution method, device, smart desk lamp and storage medium
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
CN104780154B (en) Apparatus bound method and apparatus
US9979497B2 (en) Audio playing method and apparatus based on Bluetooth connection
US9990480B2 (en) Method, apparatus and storage medium for setting smart device management account
US20220014374A1 (en) U2f physical token-based centralized authentication system for iot devices
WO2018076604A1 (en) Bluetooth pairing method and terminal device
CN106534072B (en) user information authorization method, device, equipment and system
WO2020133495A1 (en) Smart device management method, mobile terminal, and system
CN111093105A (en) Remote control method and device
LU102058B1 (en) Bluetooth connection method and system
CN115544464A (en) Firmware burning method, device and system for micro-control chip and storage medium
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN111970676A (en) WiFi hotspot access method, device, equipment and storage medium
CN112040057B (en) Device control method, device, electronic device, control system and storage medium
CN107171912A (en) A method for connecting a smart home system, a terminal, and the Internet of Things
CN114158019B (en) Terminal control method, terminal control system and storage medium
CN114201184A (en) Method, device, storage medium, device and system for burning information
CN105792237B (en) A kind of SOT state of termination monitoring method and device
WO2016107013A1 (en) Transmission processing and remote processing method and apparatus and computer storage medium
CN114201196A (en) Method, device, storage medium, device and system for upgrading module
CN114666775B (en) Method, device, storage medium, equipment and system for burning information
CN115129246A (en) Hard disk and partition control method and device of hard disk
US20240020366A1 (en) Custom Function Implementation Method, Storage Medium, and Electronic Device

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