[go: up one dir, main page]

CN110320811A - A kind of cut-in method and a kind of electronic equipment of smart home device - Google Patents

A kind of cut-in method and a kind of electronic equipment of smart home device Download PDF

Info

Publication number
CN110320811A
CN110320811A CN201910523678.0A CN201910523678A CN110320811A CN 110320811 A CN110320811 A CN 110320811A CN 201910523678 A CN201910523678 A CN 201910523678A CN 110320811 A CN110320811 A CN 110320811A
Authority
CN
China
Prior art keywords
smart home
home device
mesh
electronic equipment
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910523678.0A
Other languages
Chinese (zh)
Other versions
CN110320811B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910523678.0A priority Critical patent/CN110320811B/en
Publication of CN110320811A publication Critical patent/CN110320811A/en
Priority to PCT/CN2020/096457 priority patent/WO2020253695A1/en
Application granted granted Critical
Publication of CN110320811B publication Critical patent/CN110320811B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种智能家居设备的接入方法及一种电子设备,涉及通信技术领域,可以使智能家居设备快速、简单的获取接入无线通信网络的配置信息,提高了用户体验。本申请中的电子设备可以根据获取的所有智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。而无需电子设备逐一建立与所有智能家居设备的连接,以及逐一发送配置信息。操作更加简单、更加快捷,用户体验度更高。

The application discloses an access method for smart home equipment and an electronic device, which relate to the field of communication technology, and enable smart home equipment to quickly and simply acquire configuration information for accessing a wireless communication network, thereby improving user experience. The electronic device in this application can trigger the Mesh connection to all smart home devices in batches according to the obtained device discovery IDs of all smart home devices, and send the configuration information for accessing the wireless communication network in batches based on the established connections, so that Each smart home device accesses the wireless communication network according to the configuration information. There is no need for electronic devices to establish connections with all smart home devices one by one, and to send configuration information one by one. The operation is simpler and faster, and the user experience is higher.

Description

一种智能家居设备的接入方法及一种电子设备Access method of smart home equipment and electronic equipment

技术领域technical field

本申请实施例涉及通信技术领域,尤其涉及一种智能家居设备的接入方法及一种电子设备。The embodiments of the present application relate to the field of communication technologies, and in particular, to a method for accessing a smart home device and an electronic device.

背景技术Background technique

随着智能家居的快速发展,越来越多的用户选择利用智能化的通信技术、控制技术、音视频等技术将安防,照明,环境,健康,厨电、家装,清洁等智能家居设备集成,构建高效的住宅设施与家庭日程事务的管理系统,提升家居安全性、便利性、舒适性、艺术性,并实现环保节能的居住环境。例如,通过智能手机控制智能家居设备进行工作。With the rapid development of smart home, more and more users choose to use intelligent communication technology, control technology, audio and video technology to integrate security, lighting, environment, health, kitchen appliances, home decoration, cleaning and other smart home equipment, Build an efficient management system for residential facilities and family schedules, improve home safety, convenience, comfort, and artistry, and realize an environmentally friendly and energy-saving living environment. For example, controlling smart home devices to work through a smartphone.

智能家居设备在初次使用前,需要先接入智能手机接入的无线通信网络,例如接入智能手机接入的控制设备无线保真(Wireless Fidelity,WiFi)网络。现有的智能家居设备接入WiFi网络的方法可以包括:智能家居设备通过接入点(access point,AP)模式广播携带有智能家居设备的服务集标识(Service Set Identifier,SSID)等设备信息的WiFibeacon帧。智能手机根据接收到的设备信息与智能家居设备建立AP连接,然后基于该AP连接向智能家居设备发送用于智能家居设备根据该配置信息接入WiFi网络的配置信息。Before a smart home device is used for the first time, it needs to be connected to a wireless communication network connected to a smart phone, for example, to a wireless fidelity (Wireless Fidelity, WiFi) network connected to a control device connected to the smart phone. An existing method for a smart home device to access a WiFi network may include: the smart home device broadcasts a message carrying device information such as a service set identifier (Service Set Identifier, SSID) of the smart home device through an access point (access point, AP) mode. WiFi beacon frame. The smart phone establishes an AP connection with the smart home device according to the received device information, and then sends configuration information for the smart home device to access the WiFi network according to the configuration information to the smart home device based on the AP connection.

但是,在有多个需要接入WiFi网络的智能家居设备时,就需要智能手机逐一地与每一个智能家居设备分别建立AP连接,以及基于分别建立的AP连接分别发送配置信息,操作过于繁琐。而且在智能家居设备接入WiFi网络之后,智能手机需要从AP模式切换到WiFi模式,而不同型号的智能手机切换网络模式的兼容性是不同的,上述方法对于有的智能手机无法适用。因此,综上所述,使用上述方法将智能家居设备接入WiFi网络,用户体验度较差。However, when there are multiple smart home devices that need to access the WiFi network, the smart phone needs to establish an AP connection with each smart home device one by one, and send configuration information based on the separately established AP connections, which is too cumbersome to operate. Moreover, after the smart home device is connected to the WiFi network, the smart phone needs to switch from the AP mode to the WiFi mode, and the compatibility of switching the network mode of different types of smart phones is different, and the above method is not applicable to some smart phones. Therefore, in summary, using the above method to connect smart home devices to a WiFi network has poor user experience.

发明内容Contents of the invention

本申请实施例提供一种智能家居设备的接入,可以使智能家居设备快速、简单的获取接入无线通信网络的配置信息,提高了用户体验。The embodiment of the present application provides an access of a smart home device, which enables the smart home device to quickly and simply acquire configuration information for accessing a wireless communication network, thereby improving user experience.

为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:

第一方面,提供一种智能家居设备的接入方法,该方法应用于电子设备,该方法包括:该电子设备获取至少一个智能家居设备的设备发现标识ID,该设备发现ID用于唯一标识对应的智能家居设备;该电子设备根据至少一个智能家居设备的设备发现ID,与上述至少一个智能家居设备建立Mesh连接;该电子设备通过建立的Mesh连接,向上述至少一个智能家居设备发送配置信息,该配置信息用于接入该电子设备所接入的无线通信网络。In a first aspect, a method for accessing a smart home device is provided, the method is applied to an electronic device, and the method includes: the electronic device acquires a device discovery ID of at least one smart home device, and the device discovery ID is used to uniquely identify the corresponding The smart home device; the electronic device establishes a Mesh connection with the at least one smart home device according to the device discovery ID of the at least one smart home device; the electronic device sends configuration information to the at least one smart home device through the established Mesh connection, The configuration information is used to access the wireless communication network accessed by the electronic device.

上述第一方面提供的技术方案,电子设备可以根据获取的所有智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。而无需电子设备逐一建立与所有智能家居设备的连接,以及逐一发送配置信息。操作更加简单、更加快捷,用户体验度更高。According to the technical solution provided in the first aspect above, the electronic device can trigger the Mesh connection to all smart home devices in batches based on the obtained device discovery IDs of all smart home devices, and based on the established connection, send batches for accessing the wireless communication network. configuration information, so that each smart home device can access the wireless communication network according to the configuration information. There is no need for electronic devices to establish connections with all smart home devices one by one, and to send configuration information one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,该无线通信网络是无线保真WiFi网络;该配置信息包括所述无线通信网络的服务集标识SSID、WiFi密钥和设备注册码。本申请的智能家居设备的接入方法可以用于智能家居设备根据电子设备发送的接入WiFi网络的配置信息,接入WiFi网络。In a possible implementation manner, the wireless communication network is a Wireless Fidelity WiFi network; the configuration information includes an SSID, a WiFi key, and a device registration code of the wireless communication network. The access method of the smart home device of the present application can be used for the smart home device to access the WiFi network according to the configuration information for accessing the WiFi network sent by the electronic device.

在一种可能的实现方式中,上述至少一个智能家居设备是未与电子设备建立Mesh连接的设备。本申请的智能家居设备的接入方法用于未与电子设备建立Mesh连接的设备,对于已于电子设备建立Mesh连接的设备则不必进行本申请的智能家居设备的接入方法。可以避免电子设备与已于电子设备建立Mesh连接的设备的交互导致的不必要的资源浪费和时间浪费。In a possible implementation manner, the at least one smart home device is a device that has not established a Mesh connection with the electronic device. The method for accessing smart home devices of this application is used for devices that have not established a Mesh connection with an electronic device. For devices that have established a Mesh connection with an electronic device, the method for accessing smart home devices of this application does not need to be performed. Unnecessary resource waste and time waste caused by the interaction between the electronic device and the device that has established a Mesh connection with the electronic device can be avoided.

在一种可能的实现方式中,上述设备发现ID为Hi Mesh ID;该Hi Mesh ID至少包括:Himesh标识、设备类型和设备标识ID;其中,Himesh标识用于指示智能家居设备是否支持Mesh网络,设备类型用于指示智能家居设备的设备类型是家居设备,设备ID用于唯一标识所述智能家居设备。电子设备通过获取的智能家居设备的Hi Mesh ID,可以快速准确地建立与对应智能家居设备的Mesh连接。In a possible implementation, the device discovery ID is a Hi Mesh ID; the Hi Mesh ID includes at least: a Himesh ID, a device type, and a device ID; wherein, the Himesh ID is used to indicate whether the smart home device supports the Mesh network, The device type is used to indicate that the device type of the smart home device is a home device, and the device ID is used to uniquely identify the smart home device. By obtaining the Hi Mesh ID of the smart home device, the electronic device can quickly and accurately establish a Mesh connection with the corresponding smart home device.

在一种可能的实现方式中,电子设备中预置有该电子设备的Hi Mesh ID;在该电子设备获取至少一个智能家居设备的设备发现ID之前,该方法还包括:电子设备广播第一消息,该第一消息中携带有电子设备的Hi mesh ID;电子设备从上述至少一个智能家居设备接收响应消息,从每一个智能家居设备接收的响应消息中携带有对应智能家居设备的HiMesh ID;电子设备根据接收到的响应消息中携带的Hi mesh ID,确定至少一个智能家居设备。电子设备可以通过主动扫描获取每一个智能家居设备的Hi Mesh ID,操作简单。In a possible implementation, the Hi Mesh ID of the electronic device is preset in the electronic device; before the electronic device obtains the device discovery ID of at least one smart home device, the method further includes: the electronic device broadcasts the first message , the first message carries the Hi mesh ID of the electronic device; the electronic device receives a response message from the at least one smart home device, and the response message received from each smart home device carries the HiMesh ID of the corresponding smart home device; The device determines at least one smart home device according to the Hi mesh ID carried in the received response message. Electronic devices can obtain the Hi Mesh ID of each smart home device through active scanning, which is easy to operate.

在一种可能的实现方式中,上述第一消息为mesh probe request消息。电子设备可以通过批量发送mesh probe request消息,请求获取每一个智能家居设备的Hi meshID。In a possible implementation manner, the foregoing first message is a mesh probe request message. The electronic device can request to obtain the Hi meshID of each smart home device by sending mesh probe request messages in batches.

在一种可能的实现方式中,电子设备中预置有该电子设备的Hi Mesh ID;在电子设备获取至少一个智能家居设备的设备发现ID之前,该方法还包括:电子设备监听广播消息,该电子设备监听到的每一个广播消息中携带有对应设备的Hi mesh ID;电子设备根据监听到的广播消息中携带的Hi mesh ID,确定至少一个智能家居设备。电子设备可以通过被动监听获取智能家居设备的Hi Mesh ID,操作简单。In a possible implementation manner, the Hi Mesh ID of the electronic device is preset in the electronic device; before the electronic device obtains the device discovery ID of at least one smart home device, the method further includes: the electronic device listens to broadcast messages, the Each broadcast message monitored by the electronic device carries the Hi mesh ID of the corresponding device; the electronic device determines at least one smart home device according to the Hi mesh ID carried in the monitored broadcast message. Electronic devices can obtain the Hi Mesh ID of smart home devices through passive monitoring, which is easy to operate.

在一种可能的实现方式中,电子设备根据接收到的响应消息中携带的Hi meshID,确定至少一个智能家居设备,包括:该电子设备根据接收到的响应消息中携带的Himesh ID,确定至少两个未与该电子设备建立Mesh连接的智能家居设备;该电子设备接收用户至少两个未与该电子设备建立Mesh连接的智能家居设备中至少一个智能家居设备的选择操作,确定至少一个智能家居设备。电子设备可以支持用户选择需要建立Mesh连接的智能家居设备,用户体验度更高。In a possible implementation manner, the electronic device determines at least one smart home device according to the Himesh ID carried in the received response message, including: the electronic device determines at least two smart home devices according to the Himesh ID carried in the received response message. A smart home device that has not established a Mesh connection with the electronic device; the electronic device receives a selection operation of at least one smart home device among at least two smart home devices that have not established a Mesh connection with the electronic device, and determines at least one smart home device . Electronic devices can support users to choose smart home devices that need to establish a Mesh connection, and the user experience is higher.

在一种可能的实现方式中,电子设备根据监听到的广播消息中携带的Hi meshID,确定至少一个智能家居设备,包括:该电子设备根据监听到的广播消息中携带的Himesh ID,确定至少两个未与该电子设备建立Mesh连接的智能家居设备;该电子设备接收用户对至少两个未与该电子设备建立Mesh连接的智能家居设备中至少一个智能家居设备的选择操作,确定至少一个智能家居设备。电子设备可以支持用户选择需要建立Mesh连接的智能家居设备,用户体验度更高。In a possible implementation manner, the electronic device determines at least one smart home device according to the Himesh ID carried in the monitored broadcast message, including: the electronic device determines at least two smart home devices according to the Himesh ID carried in the monitored broadcast message. A smart home device that has not established a Mesh connection with the electronic device; the electronic device receives a user's selection operation on at least one of the at least two smart home devices that have not established a Mesh connection with the electronic device, and determines at least one smart home device. equipment. Electronic devices can support users to choose smart home devices that need to establish a Mesh connection, and the user experience is higher.

在一种可能的实现方式中,电子设备根据至少一个智能家居设备的设备发现ID,与至少一个智能家居设备建立Mesh连接,包括:该电子设备向至少一个智能家居设备发送第二消息,所述第二消息用于请求与每个智能家居设备建立Mesh连接;该电子设备从对应智能家居设备接收连接响应消息;该电子设备根据接收到的每一个连接响应消息,与对应智能家居设备建立Mesh连接。电子设备可以批量触发到所有智能家居设备的Mesh连接,而无需电子设备逐一建立与所有智能家居设备的连接。操作更加简单、更加快捷,用户体验度更高。In a possible implementation manner, the electronic device establishes a Mesh connection with at least one smart home device according to the device discovery ID of at least one smart home device, including: the electronic device sends a second message to at least one smart home device, the The second message is used to request to establish a Mesh connection with each smart home device; the electronic device receives a connection response message from the corresponding smart home device; the electronic device establishes a Mesh connection with the corresponding smart home device according to each connection response message received . Electronic devices can trigger Mesh connections to all smart home devices in batches, without the need for electronic devices to establish connections with all smart home devices one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,第二消息为mesh peer open连接请求消息。电子设备可以通过批量发送mesh peer open消息,请求建立与每一个智能家居设备的Mesh连接。In a possible implementation manner, the second message is a mesh peer open connection request message. The electronic device can request to establish a Mesh connection with each smart home device by sending mesh peer open messages in batches.

在一种可能的实现方式中,在电子设备通过Mesh连接,向至少一个智能家居设备发送配置信息之后,该方法还包括:该电子设备断开与至少一个智能家居设备的Mesh连接。通过该方法,可以避免配置信息发送之后,仍然保持Mesh连接,导致的不必要的耗电问题,用户体验度更高。In a possible implementation manner, after the electronic device sends configuration information to at least one smart home device through the Mesh connection, the method further includes: the electronic device disconnects the Mesh connection with the at least one smart home device. Through this method, it is possible to avoid unnecessary power consumption problems caused by maintaining the Mesh connection after the configuration information is sent, and the user experience is improved.

在一种可能的实现方式中,电子设备中安装有智能家居应用APP;该电子设备响应于用户在该智能家居APP的界面上的第一操作,获取至少一个智能家居设备的设备发现ID;该电子设备响应于用户在该智能家居APP的界面上的第二操作,根据至少一个智能家居设备的设备发现ID,与至少一个智能家居设备建立Mesh连接;该电子设备响应于用户在该智能家居APP的界面上的第三操作,通过Mesh连接,向至少一个智能家居设备发送配置信息。电子设备可以根据用户在人机交互界面上的操作,对应做出响应,更加人性化,用户体验度更高。In a possible implementation, a smart home application APP is installed in the electronic device; the electronic device acquires a device discovery ID of at least one smart home device in response to a user's first operation on the interface of the smart home APP; The electronic device establishes a Mesh connection with at least one smart home device according to the device discovery ID of at least one smart home device in response to the user's second operation on the interface of the smart home APP; The third operation on the interface is to send configuration information to at least one smart home device through the Mesh connection. Electronic devices can respond accordingly according to the user's operations on the human-computer interaction interface, which is more humanized and has a higher user experience.

第二方面,提供一种智能家居设备的接入方法,该方法应用于智能家居设备,该方法包括:智能家居设备向电子设备发送该智能家居设备的设备发现标识ID,该设备发现ID用于唯一标识该智能家居设备;该设备发现ID用于电子设备与该智能家居设备建立Mesh连接;该智能家居设备从电子设备接收Mesh连接建立请求消息;该智能家居设备与电子设备建立Mesh连接;该智能家居设备通过建立的Mesh连接,从电子设备接收配置信息,该配置信息用于接入电子设备所接入的无线通信网络。In the second aspect, a method for accessing a smart home device is provided, the method is applied to a smart home device, and the method includes: the smart home device sends a device discovery ID of the smart home device to an electronic device, and the device discovery ID is used for Uniquely identify the smart home device; the device discovery ID is used to establish a Mesh connection between the electronic device and the smart home device; the smart home device receives a Mesh connection establishment request message from the electronic device; the smart home device establishes a Mesh connection with the electronic device; the The smart home device receives configuration information from the electronic device through the established Mesh connection, and the configuration information is used to access the wireless communication network to which the electronic device is connected.

上述第二方面提供的技术方案,每一个智能家居设备通过向电子设备发送其设备发现标识ID,以便电子设备可以根据每一个智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。而无需电子设备逐一建立与所有智能家居设备的连接,以及逐一发送配置信息。操作更加简单、更加快捷,用户体验度更高。In the technical solution provided by the second aspect above, each smart home device sends its device discovery ID to the electronic device, so that the electronic device can trigger the Mesh of all smart home devices in batches according to the device discovery ID of each smart home device. connection, and sending configuration information for accessing the wireless communication network in batches based on the established connection, so that each smart home device accesses the wireless communication network according to the configuration information. There is no need for electronic devices to establish connections with all smart home devices one by one, and to send configuration information one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,该无线通信网络是无线保真WiFi网络;该配置信息包括所述无线通信网络的服务集标识SSID、WiFi密钥和设备注册码。本申请的智能家居设备的接入方法可以用于智能家居设备根据电子设备发送的接入WiFi网络的配置信息,接入WiFi网络。In a possible implementation manner, the wireless communication network is a Wireless Fidelity WiFi network; the configuration information includes an SSID, a WiFi key, and a device registration code of the wireless communication network. The access method of the smart home device of the present application can be used for the smart home device to access the WiFi network according to the configuration information for accessing the WiFi network sent by the electronic device.

在一种可能的实现方式中,上述设备发现ID为Hi Mesh ID;该Hi Mesh ID至少包括:Himesh标识、设备类型和设备标识ID;其中,Himesh标识用于指示智能家居设备是否支持Mesh网络,设备类型用于指示智能家居设备的设备类型是家居设备,设备ID用于唯一标识所述智能家居设备。电子设备通过获取的智能家居设备的Hi Mesh ID,可以快速准确地建立与对应智能家居设备的Mesh连接。In a possible implementation, the device discovery ID is a Hi Mesh ID; the Hi Mesh ID includes at least: a Himesh ID, a device type, and a device ID; wherein, the Himesh ID is used to indicate whether the smart home device supports the Mesh network, The device type is used to indicate that the device type of the smart home device is a home device, and the device ID is used to uniquely identify the smart home device. By obtaining the Hi Mesh ID of the smart home device, the electronic device can quickly and accurately establish a Mesh connection with the corresponding smart home device.

在一种可能的实现方式中,智能家居设备中预置有智能家居设备的Hi Mesh ID;在智能家居设备向电子设备发送智能家居设备的设备发现标识ID之前,该方法还包括:智能家居设备从电子设备接收第一消息,该第一消息中携带有电子设备的Hi mesh ID;智能家居设备根据智能家居设备的Hi mesh ID,确定是否向电子设备发送智能家居设备的Himesh ID;智能家居设备向电子设备发送智能家居设备的设备发现标识ID,包括:智能家居设备向电子设备发送响应消息,该响应消息中携带有智能家居设备的设备发现标识ID。智能家居设备可以根据电子设备广播的第一消息,结合自身的Hi mesh ID,确定是否需要向电子设备发送其Hi mesh ID,用于与电子设备建立Mesh连接。In a possible implementation, the Hi Mesh ID of the smart home device is preset in the smart home device; before the smart home device sends the device discovery identification ID of the smart home device to the electronic device, the method further includes: the smart home device Receive the first message from the electronic device, the first message carries the Hi mesh ID of the electronic device; the smart home device determines whether to send the Himesh ID of the smart home device to the electronic device according to the Hi mesh ID of the smart home device; the smart home device Sending the device discovery ID of the smart home device to the electronic device includes: the smart home device sending a response message to the electronic device, the response message carrying the device discovery ID of the smart home device. The smart home device can determine whether to send its Hi mesh ID to the electronic device according to the first message broadcast by the electronic device in combination with its own Hi mesh ID, so as to establish a Mesh connection with the electronic device.

在一种可能的实现方式中,智能家居设备中预置有该智能家居设备的Hi MeshID;智能家居设备向电子设备发送智能家居设备的设备发现标识ID,包括:智能家居设备发送广播消息,该广播消息中携带有智能家居设备的Hi mesh ID。每一个智能家居设备可以通过广播其Hi mesh ID,以便电子设备可以根据其Hi mesh ID确定是否与其建立Mesh连接。In a possible implementation, the Hi MeshID of the smart home device is preset in the smart home device; the smart home device sends the device discovery ID of the smart home device to the electronic device, including: the smart home device sends a broadcast message, the The Hi mesh ID of the smart home device is carried in the broadcast message. Each smart home device can broadcast its Hi mesh ID, so that the electronic device can determine whether to establish a Mesh connection with it according to its Hi mesh ID.

第三方面,提供一种电子设备,该电子设备包括:存储器,用于存储计算机程序代码,该计算机程序代码包括指令;射频电路,用于进行无线电信号的发送和接收;处理器,用于执行所述指令调用射频电路获取至少一个智能家居设备的设备发现标识ID,该设备发现ID用于唯一标识对应的智能家居设备;以及根据至少一个智能家居设备的设备发现ID,与上述至少一个智能家居设备建立Mesh连接;以及调用射频电路通过建立的Mesh连接,向上述至少一个智能家居设备发送配置信息,该配置信息用于接入该电子设备所接入的无线通信网络。In a third aspect, an electronic device is provided, which includes: a memory for storing computer program codes, the computer program codes including instructions; a radio frequency circuit for sending and receiving radio signals; a processor for executing The instruction invokes a radio frequency circuit to obtain a device discovery ID of at least one smart home device, and the device discovery ID is used to uniquely identify the corresponding smart home device; and according to the device discovery ID of at least one smart home device, the at least one smart home The device establishes a Mesh connection; and calls the radio frequency circuit to send configuration information to the at least one smart home device through the established Mesh connection, and the configuration information is used to access the wireless communication network connected to the electronic device.

上述第三方面提供的技术方案,电子设备可以根据获取的所有智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。而无需电子设备逐一建立与所有智能家居设备的连接,以及逐一发送配置信息。操作更加简单、更加快捷,用户体验度更高。In the technical solution provided by the third aspect above, the electronic device can trigger the Mesh connection to all the smart home devices in batches based on the obtained device discovery IDs of all the smart home devices, and based on the established connection, send batches for accessing the wireless communication network. configuration information, so that each smart home device can access the wireless communication network according to the configuration information. There is no need for electronic devices to establish connections with all smart home devices one by one, and to send configuration information one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,该无线通信网络是无线保真WiFi网络;该配置信息包括所述无线通信网络的服务集标识SSID、WiFi密钥和设备注册码。电子设备可以与WiFi网络连接,智能家居设备可以根据电子设备发送的接入WiFi网络的配置信息,接入WiFi网络。In a possible implementation manner, the wireless communication network is a Wireless Fidelity WiFi network; the configuration information includes an SSID, a WiFi key, and a device registration code of the wireless communication network. The electronic device can be connected to the WiFi network, and the smart home device can access the WiFi network according to the configuration information sent by the electronic device for accessing the WiFi network.

在一种可能的实现方式中,上述至少一个智能家居设备是未与电子设备建立Mesh连接的设备。本申请的智能家居设备是未与电子设备建立Mesh连接的设备,对于已于电子设备建立Mesh连接的设备则不必关注。可以避免电子设备与已于电子设备建立Mesh连接的设备的交互导致的不必要的资源浪费和时间浪费。In a possible implementation manner, the at least one smart home device is a device that has not established a Mesh connection with the electronic device. The smart home device in this application is a device that has not established a Mesh connection with an electronic device, and there is no need to pay attention to a device that has established a Mesh connection with an electronic device. Unnecessary resource waste and time waste caused by the interaction between the electronic device and the device that has established a Mesh connection with the electronic device can be avoided.

在一种可能的实现方式中,上述设备发现ID为Hi Mesh ID;该Hi Mesh ID至少包括:Himesh标识、设备类型和设备标识ID;其中,Himesh标识用于指示智能家居设备是否支持Mesh网络,设备类型用于指示智能家居设备的设备类型是家居设备,设备ID用于唯一标识所述智能家居设备。电子设备通过获取的智能家居设备的Hi Mesh ID,可以快速准确地建立与对应智能家居设备的Mesh连接。In a possible implementation, the device discovery ID is a Hi Mesh ID; the Hi Mesh ID includes at least: a Himesh ID, a device type, and a device ID; wherein, the Himesh ID is used to indicate whether the smart home device supports the Mesh network, The device type is used to indicate that the device type of the smart home device is a home device, and the device ID is used to uniquely identify the smart home device. By obtaining the Hi Mesh ID of the smart home device, the electronic device can quickly and accurately establish a Mesh connection with the corresponding smart home device.

在一种可能的实现方式中,电子设备中预置有该电子设备的Hi Mesh ID;在射频短路获取至少一个智能家居设备的设备发现ID之前,射频电路还用于,广播第一消息,该第一消息中携带有电子设备的Hi mesh ID;以及从上述至少一个智能家居设备接收响应消息,从每一个智能家居设备接收的响应消息中携带有对应智能家居设备的Hi Mesh ID;处理器还用于,根据接收到的响应消息中携带的Hi mesh ID,确定至少一个智能家居设备。电子设备可以通过主动扫描获取每一个智能家居设备的Hi Mesh ID,操作简单。In a possible implementation, the Hi Mesh ID of the electronic device is preset in the electronic device; before the radio frequency short-circuit obtains the device discovery ID of at least one smart home device, the radio frequency circuit is also used to broadcast a first message, the The first message carries the Hi mesh ID of the electronic device; and receives a response message from at least one smart home device, and the response message received from each smart home device carries the Hi Mesh ID of the corresponding smart home device; the processor also It is used to determine at least one smart home device according to the Hi mesh ID carried in the received response message. Electronic devices can obtain the Hi Mesh ID of each smart home device through active scanning, which is easy to operate.

在一种可能的实现方式中,上述第一消息为mesh probe request消息。电子设备可以通过批量发送mesh probe request消息,请求获取每一个智能家居设备的Hi meshID。In a possible implementation manner, the foregoing first message is a mesh probe request message. The electronic device can request to obtain the Hi meshID of each smart home device by sending mesh probe request messages in batches.

在一种可能的实现方式中,电子设备中预置有该电子设备的Hi Mesh ID;在射频电路获取至少一个智能家居设备的设备发现ID之前,射频电路还用于,监听广播消息,该射频电路监听到的每一个广播消息中携带有对应设备的Hi mesh ID;处理器还用于,根据监听到的广播消息中携带的Hi mesh ID,确定至少一个智能家居设备。电子设备可以通过被动监听获取智能家居设备的Hi Mesh ID,操作简单。In a possible implementation, the Hi Mesh ID of the electronic device is preset in the electronic device; before the radio frequency circuit obtains the device discovery ID of at least one smart home device, the radio frequency circuit is also used to monitor broadcast messages, and the radio frequency Each broadcast message monitored by the circuit carries the Hi mesh ID of the corresponding device; the processor is also used to determine at least one smart home device according to the Hi mesh ID carried in the monitored broadcast message. Electronic devices can obtain the Hi Mesh ID of smart home devices through passive monitoring, which is easy to operate.

在一种可能的实现方式中,处理器根据接收到的响应消息中携带的Hi mesh ID,确定至少一个智能家居设备,包括:该处理器根据接收到的响应消息中携带的Hi mesh ID,确定至少两个未与该电子设备建立Mesh连接的智能家居设备;该处理器执行所述指令调用射频电路根据用户至少两个未与该电子设备建立Mesh连接的智能家居设备中至少一个智能家居设备的选择操作,确定至少一个智能家居设备。电子设备可以支持用户选择需要建立Mesh连接的智能家居设备,用户体验度更高。In a possible implementation manner, the processor determines at least one smart home device according to the Hi mesh ID carried in the received response message, including: the processor determines according to the Hi mesh ID carried in the received response message At least two smart home devices that have not established a Mesh connection with the electronic device; the processor executes the instruction to call the radio frequency circuit according to the at least one smart home device in the user's at least two smart home devices that have not established a Mesh connection with the electronic device Select Actions to identify at least one smart home device. Electronic devices can support users to choose smart home devices that need to establish a Mesh connection, and the user experience is higher.

在一种可能的实现方式中,处理器根据监听到的广播消息中携带的Hi mesh ID,确定至少一个智能家居设备,包括:该处理器根据监听到的广播消息中携带的Hi mesh ID,确定至少两个未与该电子设备建立Mesh连接的智能家居设备;该处理器执行所述指令调用射频电路根据用户对至少两个未与该电子设备建立Mesh连接的智能家居设备中至少一个智能家居设备的选择操作,确定至少一个智能家居设备。电子设备可以支持用户选择需要建立Mesh连接的智能家居设备,用户体验度更高。In a possible implementation manner, the processor determines at least one smart home device according to the Hi mesh ID carried in the monitored broadcast message, including: the processor determines according to the Hi mesh ID carried in the monitored broadcast message At least two smart home devices that have not established a Mesh connection with the electronic device; the processor executes the instruction to call the radio frequency circuit According to the user's at least one smart home device in the at least two smart home devices that have not established a Mesh connection with the electronic device The selection operation determines at least one smart home device. Electronic devices can support users to choose smart home devices that need to establish a Mesh connection, and the user experience is higher.

在一种可能的实现方式中,处理器执行所述指令调用射频电路根据至少一个智能家居设备的设备发现ID,与至少一个智能家居设备建立Mesh连接,包括:该处理器执行所述指令调用射频电路向至少一个智能家居设备发送第二消息,所述第二消息用于请求与每个智能家居设备建立Mesh连接;该处理器执行所述指令调用射频电路从对应智能家居设备接收连接响应消息;该处理器执行所述指令调用射频电路根据接收到的每一个连接响应消息,与对应智能家居设备建立Mesh连接。电子设备可以批量触发到所有智能家居设备的Mesh连接,而无需电子设备逐一建立与所有智能家居设备的连接。操作更加简单、更加快捷,用户体验度更高。In a possible implementation manner, the processor executes the instruction to call the radio frequency circuit to establish a Mesh connection with at least one smart home device according to the device discovery ID of at least one smart home device, including: the processor executes the instruction to call the radio frequency circuit The circuit sends a second message to at least one smart home device, and the second message is used to request to establish a Mesh connection with each smart home device; the processor executes the instruction to call the radio frequency circuit to receive a connection response message from the corresponding smart home device; The processor executes the instruction to call the radio frequency circuit to establish a Mesh connection with the corresponding smart home device according to each connection response message received. Electronic devices can trigger Mesh connections to all smart home devices in batches, without the need for electronic devices to establish connections with all smart home devices one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,第二消息为mesh peer open连接请求消息。电子设备可以通过批量发送mesh peer open消息,请求建立与每一个智能家居设备的Mesh连接。In a possible implementation manner, the second message is a mesh peer open connection request message. The electronic device can request to establish a Mesh connection with each smart home device by sending mesh peer open messages in batches.

在一种可能的实现方式中,在处理器执行所述指令调用射频电路,通过Mesh连接,向至少一个智能家居设备发送配置信息之后,处理器还用于,执行所述指令调用射频电路,断开与至少一个智能家居设备的Mesh连接。通过该操作,可以避免配置信息发送之后,仍然保持Mesh连接,导致的不必要的耗电问题,用户体验度更高。In a possible implementation manner, after the processor executes the instruction to invoke the radio frequency circuit, and sends configuration information to at least one smart home device through the Mesh connection, the processor is further configured to execute the instruction to invoke the radio frequency circuit to disconnect the Turn on a Mesh connection with at least one smart home device. This operation can avoid unnecessary power consumption problems caused by maintaining the Mesh connection after the configuration information is sent, and improves user experience.

在一种可能的实现方式中,电子设备中安装有智能家居应用APP;该处理器响应于用户在该智能家居APP的界面上的第一操作,执行所述指令调用射频电路,调用射频电路获取至少一个智能家居设备的设备发现ID;该处理器响应于用户在该智能家居APP的界面上的第二操作,执行所述指令调用射频电路,调用射频电路,根据至少一个智能家居设备的设备发现ID,与至少一个智能家居设备建立Mesh连接;该处理器响应于用户在该智能家居APP的界面上的第三操作,执行所述指令调用射频电路,调用射频电路,通过Mesh连接,向至少一个智能家居设备发送配置信息。电子设备可以根据用户在人机交互界面上的操作,对应做出响应,更加人性化,用户体验度更高。In a possible implementation manner, a smart home application APP is installed in the electronic device; the processor executes the instruction to call the radio frequency circuit in response to the user's first operation on the interface of the smart home APP, and calls the radio frequency circuit to obtain The device discovery ID of at least one smart home device; the processor responds to the second operation of the user on the interface of the smart home APP, executes the instruction to call the radio frequency circuit, and calls the radio frequency circuit, according to the device discovery of at least one smart home device ID, establishes a Mesh connection with at least one smart home device; the processor responds to the third operation of the user on the interface of the smart home APP, executes the instruction to call the radio frequency circuit, calls the radio frequency circuit, and connects to at least one Smart home devices send configuration information. Electronic devices can respond accordingly according to the user's operations on the human-computer interaction interface, which is more humanized and has a higher user experience.

第四方面,提供一种电子设备,该电子设备包括:接收单元,用于获取至少一个智能家居设备的设备发现标识ID,该设备发现ID用于唯一标识对应的智能家居设备;连接建立单元,用于根据至少一个智能家居设备的设备发现ID,与上述至少一个智能家居设备建立Mesh连接;发送单元,用于通过建立的Mesh连接,向上述至少一个智能家居设备发送配置信息,该配置信息用于接入该电子设备所接入的无线通信网络。According to a fourth aspect, an electronic device is provided, and the electronic device includes: a receiving unit, configured to acquire a device discovery ID ID of at least one smart home device, where the device discovery ID is used to uniquely identify a corresponding smart home device; a connection establishment unit, It is used to establish a Mesh connection with the at least one smart home device according to the device discovery ID of the at least one smart home device; the sending unit is used to send configuration information to the at least one smart home device through the established Mesh connection, and the configuration information uses for accessing the wireless communication network to which the electronic device is connected.

上述第四方面提供的技术方案,电子设备可以根据获取的所有智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。而无需电子设备逐一建立与所有智能家居设备的连接,以及逐一发送配置信息。操作更加简单、更加快捷,用户体验度更高。According to the technical solution provided by the fourth aspect above, the electronic device can trigger the Mesh connection to all smart home devices in batches based on the obtained device discovery IDs of all smart home devices, and send batches based on the established connections for accessing the wireless communication network. configuration information, so that each smart home device can access the wireless communication network according to the configuration information. There is no need for electronic devices to establish connections with all smart home devices one by one, and to send configuration information one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,该无线通信网络是无线保真WiFi网络;该配置信息包括所述无线通信网络的服务集标识SSID、WiFi密钥和设备注册码。电子设备可以与WiFi网络连接,智能家居设备可以根据电子设备发送的接入WiFi网络的配置信息,接入WiFi网络。In a possible implementation manner, the wireless communication network is a Wireless Fidelity WiFi network; the configuration information includes an SSID, a WiFi key, and a device registration code of the wireless communication network. The electronic device can be connected to the WiFi network, and the smart home device can access the WiFi network according to the configuration information sent by the electronic device for accessing the WiFi network.

在一种可能的实现方式中,上述至少一个智能家居设备是未与电子设备建立Mesh连接的设备。本申请的智能家居设备是未与电子设备建立Mesh连接的设备,对于已于电子设备建立Mesh连接的设备则不必关注。可以避免电子设备与已于电子设备建立Mesh连接的设备的交互导致的不必要的资源浪费和时间浪费。In a possible implementation manner, the at least one smart home device is a device that has not established a Mesh connection with the electronic device. The smart home device in this application is a device that has not established a Mesh connection with an electronic device, and there is no need to pay attention to a device that has established a Mesh connection with an electronic device. Unnecessary resource waste and time waste caused by the interaction between the electronic device and the device that has established a Mesh connection with the electronic device can be avoided.

在一种可能的实现方式中,上述设备发现ID为Hi Mesh ID;该Hi Mesh ID至少包括:Himesh标识、设备类型和设备标识ID;其中,Himesh标识用于指示智能家居设备是否支持Mesh网络,设备类型用于指示智能家居设备的设备类型是家居设备,设备ID用于唯一标识所述智能家居设备。电子设备通过获取的智能家居设备的Hi Mesh ID,可以快速准确地建立与对应智能家居设备的Mesh连接。In a possible implementation, the device discovery ID is a Hi Mesh ID; the Hi Mesh ID includes at least: a Himesh ID, a device type, and a device ID; wherein, the Himesh ID is used to indicate whether the smart home device supports the Mesh network, The device type is used to indicate that the device type of the smart home device is a home device, and the device ID is used to uniquely identify the smart home device. By obtaining the Hi Mesh ID of the smart home device, the electronic device can quickly and accurately establish a Mesh connection with the corresponding smart home device.

在一种可能的实现方式中,电子设备中预置有该电子设备的Hi Mesh ID;发送单元还用于,在接收单元获取至少一个智能家居设备的设备发现ID之前,广播第一消息,该第一消息中携带有电子设备的Hi mesh ID;接收单元还用于,从上述至少一个智能家居设备接收响应消息,从每一个智能家居设备接收的响应消息中携带有对应智能家居设备的HiMesh ID;连接建立单元还用于,根据接收到的响应消息中携带的Hi mesh ID,确定至少一个智能家居设备。电子设备可以通过主动扫描获取每一个智能家居设备的Hi Mesh ID,操作简单。In a possible implementation manner, the Hi Mesh ID of the electronic device is preset in the electronic device; the sending unit is further configured to, before the receiving unit acquires the device discovery ID of at least one smart home device, broadcast a first message, the The first message carries the Hi mesh ID of the electronic device; the receiving unit is also used to receive a response message from the above at least one smart home device, and the response message received from each smart home device carries the HiMesh ID of the corresponding smart home device The connection establishment unit is also used to determine at least one smart home device according to the Hi mesh ID carried in the received response message. Electronic devices can obtain the Hi Mesh ID of each smart home device through active scanning, which is easy to operate.

在一种可能的实现方式中,上述第一消息为mesh probe request消息。电子设备可以通过批量发送mesh probe request消息,请求获取每一个智能家居设备的Hi meshID。In a possible implementation manner, the foregoing first message is a mesh probe request message. The electronic device can request to obtain the Hi meshID of each smart home device by sending mesh probe request messages in batches.

在一种可能的实现方式中,电子设备中预置有该电子设备的Hi Mesh ID;接收单元还用于,在接收单元获取至少一个智能家居设备的设备发现ID之前,监听广播消息,该射频电路监听到的每一个广播消息中携带有对应设备的Hi mesh ID;连接建立单元还用于,根据监听到的广播消息中携带的Hi mesh ID,确定至少一个智能家居设备。电子设备可以通过被动监听获取智能家居设备的Hi Mesh ID,操作简单。In a possible implementation, the Hi Mesh ID of the electronic device is preset in the electronic device; the receiving unit is also used to monitor broadcast messages before the receiving unit obtains the device discovery ID of at least one smart home device, and the radio frequency Each broadcast message monitored by the circuit carries the Hi mesh ID of the corresponding device; the connection establishment unit is also used to determine at least one smart home device according to the Hi mesh ID carried in the monitored broadcast message. Electronic devices can obtain the Hi Mesh ID of smart home devices through passive monitoring, which is easy to operate.

在一种可能的实现方式中,连接建立单元根据接收到的响应消息中携带的Himesh ID,确定至少一个智能家居设备,包括:该连接建立单元根据接收到的响应消息中携带的Hi mesh ID,确定至少两个未与该电子设备建立Mesh连接的智能家居设备;连接建立单元根据用户至少两个未与该电子设备建立Mesh连接的智能家居设备中至少一个智能家居设备的选择操作,确定至少一个智能家居设备。电子设备可以支持用户选择需要建立Mesh连接的智能家居设备,用户体验度更高。In a possible implementation manner, the connection establishing unit determines at least one smart home device according to the Himesh ID carried in the received response message, including: the connection establishing unit according to the received Himesh ID carried in the response message, Determine at least two smart home devices that have not established a Mesh connection with the electronic device; the connection establishment unit determines at least one Smart home devices. Electronic devices can support users to choose smart home devices that need to establish a Mesh connection, and the user experience is higher.

在一种可能的实现方式中,连接建立单元根据监听到的广播消息中携带的Himesh ID,确定至少一个智能家居设备,包括:该连接建立单元根据监听到的广播消息中携带的Hi mesh ID,确定至少两个未与该电子设备建立Mesh连接的智能家居设备;该连接建立单元根据用户对至少两个未与该电子设备建立Mesh连接的智能家居设备中至少一个智能家居设备的选择操作,确定至少一个智能家居设备。电子设备可以支持用户选择需要建立Mesh连接的智能家居设备,用户体验度更高。In a possible implementation manner, the connection establishment unit determines at least one smart home device according to the Himesh ID carried in the monitored broadcast message, including: the connection establishment unit determines according to the Himesh ID carried in the monitored broadcast message, Determine at least two smart home devices that have not established a Mesh connection with the electronic device; the connection establishment unit determines according to the user's selection operation on at least one of the at least two smart home devices that have not established a Mesh connection with the electronic device At least one smart home device. Electronic devices can support users to choose smart home devices that need to establish a Mesh connection, and the user experience is higher.

在一种可能的实现方式中,连接建立单元根据至少一个智能家居设备的设备发现ID,与至少一个智能家居设备建立Mesh连接,包括:该连接建立单元通过发送单元向至少一个智能家居设备发送第二消息,所述第二消息用于请求与每个智能家居设备建立Mesh连接;该连接建立单元通过接收单元从对应智能家居设备接收连接响应消息;该该连接建立单元根据接收到的每一个连接响应消息,与对应智能家居设备建立Mesh连接。电子设备可以批量触发到所有智能家居设备的Mesh连接,而无需电子设备逐一建立与所有智能家居设备的连接。操作更加简单、更加快捷,用户体验度更高。In a possible implementation manner, the connection establishment unit establishes a Mesh connection with at least one smart home device according to the device discovery ID of at least one smart home device, including: the connection establishment unit sends the first Two messages, the second message is used to request to establish a Mesh connection with each smart home device; the connection establishment unit receives a connection response message from the corresponding smart home device through the receiving unit; the connection establishment unit receives each connection according to the received Respond to the message and establish a Mesh connection with the corresponding smart home device. Electronic devices can trigger Mesh connections to all smart home devices in batches, without the need for electronic devices to establish connections with all smart home devices one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,第二消息为mesh peer open连接请求消息。电子设备可以通过批量发送mesh peer open消息,请求建立与每一个智能家居设备的Mesh连接。In a possible implementation manner, the second message is a mesh peer open connection request message. The electronic device can request to establish a Mesh connection with each smart home device by sending mesh peer open messages in batches.

在一种可能的实现方式中,连接建立单元还用于,在发送单元通过Mesh连接,向至少一个智能家居设备发送配置信息之后,断开与至少一个智能家居设备的Mesh连接。通过该操作,可以避免配置信息发送之后,仍然保持Mesh连接,导致的不必要的耗电问题,用户体验度更高。In a possible implementation manner, the connection establishing unit is further configured to disconnect the Mesh connection with the at least one smart home device after the sending unit sends the configuration information to the at least one smart home device through the Mesh connection. This operation can avoid unnecessary power consumption problems caused by maintaining the Mesh connection after the configuration information is sent, and improves user experience.

在一种可能的实现方式中,电子设备中安装有智能家居应用APP;接收单元响应于用户在该智能家居APP的界面上的第一操作,获取至少一个智能家居设备的设备发现ID;连接建立单元响应于用户在该智能家居APP的界面上的第二操作,根据至少一个智能家居设备的设备发现ID,与至少一个智能家居设备建立Mesh连接;发送单元响应于用户在该智能家居APP的界面上的第三操作,通过Mesh连接,向至少一个智能家居设备发送配置信息。电子设备可以根据用户在人机交互界面上的操作,对应做出响应,更加人性化,用户体验度更高。In a possible implementation, the smart home application APP is installed in the electronic device; the receiving unit acquires the device discovery ID of at least one smart home device in response to the user's first operation on the interface of the smart home app; the connection is established The unit responds to the second operation of the user on the interface of the smart home APP, and establishes a Mesh connection with at least one smart home device according to the device discovery ID of at least one smart home device; The third operation above is to send configuration information to at least one smart home device through the Mesh connection. Electronic devices can respond accordingly according to the user's operations on the human-computer interaction interface, which is more humanized and has a higher user experience.

第五方面,提供一种智能家居设备,该智能家居设备包括:存储器,用于存储计算机程序代码,该计算机程序代码包括指令;射频电路,用于进行无线电信号的发送和接收;处理器,用于执行所述指令调用射频电路向电子设备发送该智能家居设备的设备发现标识ID,该设备发现ID用于唯一标识该智能家居设备;该设备发现ID用于电子设备与该智能家居设备建立Mesh连接;处理器还用于执行所述指令调用射频电路从电子设备接收Mesh连接建立请求消息;以及与电子设备建立Mesh连接;以及通过建立的Mesh连接,从电子设备接收配置信息,该配置信息用于接入电子设备所接入的无线通信网络。In a fifth aspect, a smart home device is provided, and the smart home device includes: a memory for storing computer program codes, the computer program codes including instructions; a radio frequency circuit for sending and receiving radio signals; a processor for When the instruction is executed, the radio frequency circuit is invoked to send the device discovery ID of the smart home device to the electronic device, and the device discovery ID is used to uniquely identify the smart home device; the device discovery ID is used for the electronic device to establish a Mesh with the smart home device. connection; the processor is also used to execute the instruction to call the radio frequency circuit to receive a Mesh connection establishment request message from the electronic device; and establish a Mesh connection with the electronic device; and receive configuration information from the electronic device through the established Mesh connection, the configuration information is used It is used to access the wireless communication network connected to the electronic device.

上述第五方面提供的技术方案,每一个智能家居设备通过向电子设备发送其设备发现标识ID,以便电子设备可以根据每一个智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。而无需电子设备逐一建立与所有智能家居设备的连接,以及逐一发送配置信息。操作更加简单、更加快捷,用户体验度更高。In the technical solution provided in the fifth aspect above, each smart home device sends its device discovery ID to the electronic device, so that the electronic device can trigger the Mesh of all smart home devices in batches according to the device discovery ID of each smart home device. connection, and sending configuration information for accessing the wireless communication network in batches based on the established connection, so that each smart home device accesses the wireless communication network according to the configuration information. There is no need for electronic devices to establish connections with all smart home devices one by one, and to send configuration information one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,该无线通信网络是无线保真WiFi网络;该配置信息包括所述无线通信网络的服务集标识SSID、WiFi密钥和设备注册码。本申请的智能家居设备的接入方法可以用于智能家居设备根据电子设备发送的接入WiFi网络的配置信息,接入WiFi网络。In a possible implementation manner, the wireless communication network is a Wireless Fidelity WiFi network; the configuration information includes an SSID, a WiFi key, and a device registration code of the wireless communication network. The access method of the smart home device of the present application can be used for the smart home device to access the WiFi network according to the configuration information for accessing the WiFi network sent by the electronic device.

在一种可能的实现方式中,上述设备发现ID为Hi Mesh ID;该Hi Mesh ID至少包括:Himesh标识、设备类型和设备标识ID;其中,Himesh标识用于指示智能家居设备是否支持Mesh网络,设备类型用于指示智能家居设备的设备类型是家居设备,设备ID用于唯一标识所述智能家居设备。电子设备通过获取的智能家居设备的Hi Mesh ID,可以快速准确地建立与对应智能家居设备的Mesh连接。In a possible implementation, the device discovery ID is a Hi Mesh ID; the Hi Mesh ID includes at least: a Himesh ID, a device type, and a device ID; wherein, the Himesh ID is used to indicate whether the smart home device supports the Mesh network, The device type is used to indicate that the device type of the smart home device is a home device, and the device ID is used to uniquely identify the smart home device. By obtaining the Hi Mesh ID of the smart home device, the electronic device can quickly and accurately establish a Mesh connection with the corresponding smart home device.

在一种可能的实现方式中,智能家居设备中预置有智能家居设备的Hi Mesh ID;在射频电路向电子设备发送智能家居设备的设备发现标识ID之前,射频电路还用于,从电子设备接收第一消息,该第一消息中携带有电子设备的Hi mesh ID;处理器还用于,根据智能家居设备的Hi mesh ID,确定是否向电子设备发送智能家居设备的Hi mesh ID;射频电路向电子设备发送智能家居设备的设备发现标识ID,包括:射频电路向电子设备发送响应消息,该响应消息中携带有智能家居设备的设备发现标识ID。智能家居设备可以根据电子设备广播的第一消息,结合自身的Hi mesh ID,确定是否需要向电子设备发送其Hi meshID,用于与电子设备建立Mesh连接。In a possible implementation, the Hi Mesh ID of the smart home device is preset in the smart home device; before the radio frequency circuit sends the device discovery identification ID of the smart home device to the electronic device, the radio frequency circuit is also used for Receive the first message, the first message carries the Hi mesh ID of the electronic device; the processor is also used to determine whether to send the Hi mesh ID of the smart home device to the electronic device according to the Hi mesh ID of the smart home device; the radio frequency circuit Sending the device discovery ID of the smart home device to the electronic device includes: the radio frequency circuit sends a response message to the electronic device, and the response message carries the device discovery ID of the smart home device. The smart home device can determine whether to send its Hi mesh ID to the electronic device according to the first message broadcast by the electronic device in combination with its own Hi mesh ID, so as to establish a Mesh connection with the electronic device.

在一种可能的实现方式中,智能家居设备中预置有该智能家居设备的Hi MeshID;射频电路向电子设备发送智能家居设备的设备发现标识ID,包括:射频电路发送广播消息,该广播消息中携带有智能家居设备的Hi mesh ID。每一个智能家居设备可以通过广播其Hi mesh ID,以便电子设备可以根据其Hi mesh ID确定是否与其建立Mesh连接。In a possible implementation, the Hi MeshID of the smart home device is preset in the smart home device; the radio frequency circuit sends the device discovery ID of the smart home device to the electronic device, including: the radio frequency circuit sends a broadcast message, and the broadcast message It carries the Hi mesh ID of the smart home device. Each smart home device can broadcast its Hi mesh ID, so that the electronic device can determine whether to establish a Mesh connection with it according to its Hi mesh ID.

第六方面,提供一种智能家居设备,该智能家居设备包括:发送单元,用于向电子设备发送该智能家居设备的设备发现标识ID,该设备发现ID用于唯一标识该智能家居设备;该设备发现ID用于电子设备与该智能家居设备建立Mesh连接;接收单元,用于从电子设备接收Mesh连接建立请求消息;连接建立单元,用于与电子设备建立Mesh连接;发送单元还用于,通过建立的Mesh连接,从电子设备接收配置信息,该配置信息用于接入电子设备所接入的无线通信网络。In a sixth aspect, a smart home device is provided, and the smart home device includes: a sending unit, configured to send a device discovery identification ID of the smart home device to an electronic device, and the device discovery ID is used to uniquely identify the smart home device; The device discovery ID is used for the electronic device to establish a Mesh connection with the smart home device; the receiving unit is used for receiving a Mesh connection establishment request message from the electronic device; the connection establishment unit is used for establishing a Mesh connection with the electronic device; the sending unit is also used for, Through the established Mesh connection, configuration information is received from the electronic device, and the configuration information is used to access the wireless communication network accessed by the electronic device.

上述第六方面提供的技术方案,每一个智能家居设备通过向电子设备发送其设备发现标识ID,以便电子设备可以根据每一个智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。而无需电子设备逐一建立与所有智能家居设备的连接,以及逐一发送配置信息。操作更加简单、更加快捷,用户体验度更高。In the technical solution provided in the sixth aspect above, each smart home device sends its device discovery identification ID to the electronic device, so that the electronic device can trigger the Mesh of all smart home devices in batches according to the device discovery identification ID of each smart home device. connection, and sending configuration information for accessing the wireless communication network in batches based on the established connection, so that each smart home device accesses the wireless communication network according to the configuration information. There is no need for electronic devices to establish connections with all smart home devices one by one, and to send configuration information one by one. The operation is simpler and faster, and the user experience is higher.

在一种可能的实现方式中,该无线通信网络是无线保真WiFi网络;该配置信息包括所述无线通信网络的服务集标识SSID、WiFi密钥和设备注册码。本申请的智能家居设备的接入方法可以用于智能家居设备根据电子设备发送的接入WiFi网络的配置信息,接入WiFi网络。In a possible implementation manner, the wireless communication network is a Wireless Fidelity WiFi network; the configuration information includes an SSID, a WiFi key, and a device registration code of the wireless communication network. The access method of the smart home device of the present application can be used for the smart home device to access the WiFi network according to the configuration information for accessing the WiFi network sent by the electronic device.

在一种可能的实现方式中,上述设备发现ID为Hi Mesh ID;该Hi Mesh ID至少包括:Himesh标识、设备类型和设备标识ID;其中,Himesh标识用于指示智能家居设备是否支持Mesh网络,设备类型用于指示智能家居设备的设备类型是家居设备,设备ID用于唯一标识所述智能家居设备。电子设备通过获取的智能家居设备的Hi Mesh ID,可以快速准确地建立与对应智能家居设备的Mesh连接。In a possible implementation, the device discovery ID is a Hi Mesh ID; the Hi Mesh ID includes at least: a Himesh ID, a device type, and a device ID; wherein, the Himesh ID is used to indicate whether the smart home device supports the Mesh network, The device type is used to indicate that the device type of the smart home device is a home device, and the device ID is used to uniquely identify the smart home device. By obtaining the Hi Mesh ID of the smart home device, the electronic device can quickly and accurately establish a Mesh connection with the corresponding smart home device.

在一种可能的实现方式中,智能家居设备中预置有智能家居设备的Hi Mesh ID;接收单元还用于,在发送单元向电子设备发送智能家居设备的设备发现标识ID之前,从电子设备接收第一消息,该第一消息中携带有电子设备的Hi mesh ID;连接建立单元还用于,根据智能家居设备的Hi mesh ID,确定是否向电子设备发送智能家居设备的Hi mesh ID;发送单元向电子设备发送智能家居设备的设备发现标识ID,包括:发送单元向电子设备发送响应消息,该响应消息中携带有智能家居设备的设备发现标识ID。智能家居设备可以根据电子设备广播的第一消息,结合自身的Hi mesh ID,确定是否需要向电子设备发送其Himesh ID,用于与电子设备建立Mesh连接。In a possible implementation, the Hi Mesh ID of the smart home device is preset in the smart home device; the receiving unit is also used to, before the sending unit sends the device discovery identification ID of the smart home device to the electronic device Receive the first message, which carries the Hi mesh ID of the electronic device in the first message; the connection establishment unit is also used to determine whether to send the Hi mesh ID of the smart home device to the electronic device according to the Hi mesh ID of the smart home device; The unit sending the device discovery ID of the smart home device to the electronic device includes: the sending unit sends a response message to the electronic device, and the response message carries the device discovery ID of the smart home device. The smart home device can determine whether to send its Himesh ID to the electronic device according to the first message broadcast by the electronic device in combination with its own Hi mesh ID, so as to establish a Mesh connection with the electronic device.

在一种可能的实现方式中,智能家居设备中预置有该智能家居设备的Hi MeshID;发送单元向电子设备发送智能家居设备的设备发现标识ID,包括:发送单元发送广播消息,该广播消息中携带有智能家居设备的Hi mesh ID。每一个智能家居设备可以通过广播其Hi mesh ID,以便电子设备可以根据其Hi mesh ID确定是否与其建立Mesh连接。In a possible implementation, the Hi MeshID of the smart home device is preset in the smart home device; the sending unit sends the device discovery ID of the smart home device to the electronic device, including: the sending unit sends a broadcast message, and the broadcast message It carries the Hi mesh ID of the smart home device. Each smart home device can broadcast its Hi mesh ID, so that the electronic device can determine whether to establish a Mesh connection with it according to its Hi mesh ID.

第七方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机执行指令,该计算机执行指令被处理器执行时实现如第一方面任一种可能的实现方式中的智能家居的接入方法,或者实现如第二方面任一种可能的实现方式中的智能家居的接入方法。In a seventh aspect, there is provided a computer-readable storage medium, where computer-executable instructions are stored on the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the intelligence in any possible implementation manner of the first aspect is realized. A method for accessing a home, or implementing a method for accessing a smart home in any possible implementation manner of the second aspect.

第八方面,提供一种芯片系统,该芯片系统包括处理器、存储器,存储器中存储有指令;所述指令被所述处理器执行时,实现如第一方面任一种可能的实现方式中的智能家居的接入方法,或者实现如第二方面任一种可能的实现方式中的智能家居的接入方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In an eighth aspect, there is provided a chip system, the chip system includes a processor, a memory, and an instruction is stored in the memory; when the instruction is executed by the processor, the implementation of any possible implementation manner of the first aspect is implemented. A method for accessing a smart home, or implementing a method for accessing a smart home as in any possible implementation of the second aspect. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.

附图说明Description of drawings

图1为本申请实施例提供的智能家居设备的接入方法的应用场景示例;FIG. 1 is an example of an application scenario of a method for accessing a smart home device provided in an embodiment of the present application;

图2为本申请实施例提供的一种手机的硬件结构图;FIG. 2 is a hardware structural diagram of a mobile phone provided by an embodiment of the present application;

图3为本申请实施例提供的智能家居设备的接入方法流程图;FIG. 3 is a flowchart of a method for accessing a smart home device provided in an embodiment of the present application;

图4为本申请实施例提供的智能家居设备的接入方法交互图一;FIG. 4 is an interaction diagram 1 of an access method for a smart home device provided by an embodiment of the present application;

图5为本申请实施例提供的智能家居APP界面示意图;FIG. 5 is a schematic diagram of the smart home APP interface provided by the embodiment of the present application;

图6为本申请实施例提供的智能家居设备的接入方法交互图二;FIG. 6 is the second interaction diagram of the access method of smart home devices provided by the embodiment of the present application;

图7为本申请实施例提供的一种手机的结构示意图;FIG. 7 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application;

图8为本申请实施例提供的一种智能家居设备的结构示意图。FIG. 8 is a schematic structural diagram of a smart home device provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供一种智能家居设备的接入方法及电子设备。具体的,该方法包括:为了使得智能家居设备接入智能家居系统中电子设备接入的无线通信网络(例如,电子设备接入了家庭WiFi网络),电子设备同时连接到多个智能家居设备,发送用于接入家庭WiFi网络的配置信息,使得多个智能家居设备可以根据该配置信息批量接入家庭WiFi网络。Embodiments of the present application provide a method for accessing a smart home device and an electronic device. Specifically, the method includes: in order to enable the smart home device to access the wireless communication network accessed by the electronic device in the smart home system (for example, the electronic device is connected to the home WiFi network), the electronic device is connected to multiple smart home devices at the same time, Send configuration information for accessing the home WiFi network, so that multiple smart home devices can access the home WiFi network in batches according to the configuration information.

如图1所示,为本申请实施例提供的智能家居设备的接入方法的应用场景示例。本申请实施例的一种智能家居设备的接入方法可以应用于如图1所示的智能家居系统100中。该智能家居系统100包括手机110、路由器120和智能家居设备。智能家居设备包括如图1中所示的智能插座130、智能台灯140和智能音响150。其中,手机110可以用于控制智能插座130、智能台灯140和智能音响150。例如:控制智能台灯140的开启时间和灯泡亮度,控制智能音响150的播放列表和播放音量大小。As shown in FIG. 1 , it is an example of an application scenario of a method for accessing a smart home device provided in the embodiment of the present application. A method for accessing a smart home device in an embodiment of the present application may be applied to the smart home system 100 shown in FIG. 1 . The smart home system 100 includes a mobile phone 110, a router 120 and smart home devices. Smart home devices include a smart socket 130 , a smart desk lamp 140 and a smart speaker 150 as shown in FIG. 1 . Among them, the mobile phone 110 can be used to control the smart socket 130 , the smart lamp 140 and the smart speaker 150 . For example: control the turn-on time and light bulb brightness of the smart desk lamp 140 , control the play list and play volume of the smart audio 150 .

其中,图1的智能家居系统100中的各个设备之间可以在WiFi模式下通信,也可以在蓝牙、AP模式下通信,或者通过其他模式通信。本申请对此不作限定。Wherein, each device in the smart home system 100 in FIG. 1 may communicate in WiFi mode, or communicate in Bluetooth or AP mode, or communicate in other modes. This application is not limited to this.

为了使得通信信息可以根据智能家居系统中网络的实际情况,自动选择最佳路由。图1的智能家居系统100中的各个设备之间可以进行Mesh组网,形成Mesh网络。例如,WiFi Mesh网络、蓝牙Mesh网络。其中,Mesh网络也可以称为“多跳(multi-hop)”网络。手机110、路由器120、智能插座130、智能台灯140和智能音响150作为该Mesh网络中的节点,都可以同时作为接入点(access point,AP)和路由器。Mesh网络中的每个节点都可以发送和接收信号,每个节点都可以与一个或者多个对等节点进行直接通信。这样,如果最近的节点由于流量过大而导致拥塞的话,那么数据可以自动重新路由到一个通信流量较小的邻近节点进行传输。In order to enable the communication information to automatically select the best route according to the actual situation of the network in the smart home system. Various devices in the smart home system 100 in FIG. 1 can perform Mesh networking to form a Mesh network. For example, WiFi Mesh network, Bluetooth Mesh network. Wherein, the Mesh network may also be called a "multi-hop (multi-hop)" network. The mobile phone 110, the router 120, the smart socket 130, the smart desk lamp 140 and the smart speaker 150 are nodes in the Mesh network, and all of them can serve as an access point (access point, AP) and a router at the same time. Each node in the Mesh network can send and receive signals, and each node can communicate directly with one or more peer nodes. In this way, if the nearest node is congested due to excessive traffic, the data can be automatically rerouted to a neighboring node with less traffic for transmission.

需要说明的是,本申请实施例中以电子设备通过与智能家居设备建立WiFi Mesh连接,通过该连接向智能家居设备发送用于接入家庭WiFi网络的配置信息。电子设备还可以通过与智能家居设备建立其他类型的Mesh连接来发送配置信息。例如,电子设备还可以与智能家居设备建立蓝牙Mesh连接。It should be noted that in the embodiment of the present application, the electronic device establishes a WiFi Mesh connection with the smart home device, and sends configuration information for accessing the home WiFi network to the smart home device through the connection. Electronic devices can also send configuration information through other types of mesh connections with smart home devices. For example, electronic devices can also establish Bluetooth Mesh connections with smart home devices.

本申请实施例的智能家居设备的接入方法则具体应用于智能家居设备加入智能家居系统100的过程中。例如,图1中的智能插座130、智能台灯140和智能音响150为新加智能家居设备,初次使用前,需要加入智能家居系统100。更加具体的,本申请实施例的智能家居设备的接入方法应用于图1中的智能插座130、智能台灯140和智能音响150首次接入家庭WiFi网络的过程中。The access method of the smart home device in the embodiment of the present application is specifically applied in the process of adding the smart home device to the smart home system 100 . For example, the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 in FIG. 1 are newly added smart home devices, which need to be added to the smart home system 100 before using them for the first time. More specifically, the method for accessing smart home devices according to the embodiment of the present application is applied to the first access process of the smart socket 130 , smart desk lamp 140 and smart speaker 150 in FIG. 1 to the home WiFi network.

需要说明的是,图1中的智能插座130、智能台灯140和智能音响150仅作为几种智能家居设备的示例,事实上,本申请实施例中的智能家居设备还可以为智能体重(脂)称、智能灯泡、智能风扇、智能空调、智能电视、智能扫地机器人等各种智能的家居电器设备。It should be noted that the smart socket 130, smart desk lamp 140 and smart speaker 150 in Figure 1 are only examples of several smart home devices. Various smart home appliances such as scales, smart light bulbs, smart fans, smart air conditioners, smart TVs, and smart sweeping robots.

另外,本申请实施例中的电子设备除了图1所示的智能手机,还可以是其他桌面型、膝上型、手持型设备,例如平板电脑、上网本、个人数字助理(Personal DigitalAssistant,PDA)、可穿戴设备(例如智能手表)、便携式多媒体播放器(PortableMultimedia Player,PMP)、专用媒体播放器、AR(增强现实)/VR(虚拟现实)设备等。本申请实施例对电子设备的具体类型和结构不作限定。In addition, in addition to the smart phone shown in Figure 1, the electronic device in the embodiment of the present application can also be other desktop, laptop, or handheld devices, such as tablet computers, netbooks, personal digital assistants (Personal Digital Assistant, PDA), Wearable devices (such as smart watches), portable multimedia players (PortableMultimedia Player, PMP), dedicated media players, AR (augmented reality)/VR (virtual reality) devices, etc. The embodiment of the present application does not limit the specific type and structure of the electronic device.

如图2所示,为本申请实施例提供的一种手机的硬件结构图。如图2所示,手机110可以包括处理器210,存储器(包括外部存储器接口220和内部存储器221),通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。其中传感器模块280可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。As shown in FIG. 2 , it is a hardware structural diagram of a mobile phone provided by the embodiment of the present application. As shown in Figure 2, the mobile phone 110 may include a processor 210, a memory (including an external memory interface 220 and an internal memory 221), a universal serial bus (universal serial bus, USB) interface 230, a charging management module 240, and a power management module 241 , battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, earphone jack 270D, sensor module 280, button 290, motor 291, indicator 292 , a camera 293, a display screen 294, and a subscriber identification module (subscriber identification module, SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

可以理解的是,本发明实施例示意的结构并不构成对手机110的具体限定。在本申请另一些实施例中,手机110可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 110 . In other embodiments of the present application, the mobile phone 110 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

处理器210可以包括一个或多个处理单元。例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),飞行控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。Processor 210 may include one or more processing units. For example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a flight controller, a video Codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.

在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or A universal serial bus (universal serial bus, USB) interface, etc.

USB接口230是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口230可以用于连接充电器为手机110充电,也可以用于手机110与外围设备之间传输数据。也可以用于连接其他电子设备,例如AR设备等。The USB interface 230 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 230 can be used to connect a charger to charge the mobile phone 110, and can also be used to transmit data between the mobile phone 110 and peripheral devices. It can also be used to connect other electronic devices, such as AR devices, etc.

可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机110的结构限定。It can be understood that the interface connection relationship between modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 110 .

充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块240可以通过USB接口230接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块240可以通过手机110的无线充电线圈接收无线充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为电子设备供电。The charging management module 240 is configured to receive charging input from the charger. Wherein, the charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 240 can receive the charging input of the wired charger through the USB interface 230 . In some wireless charging embodiments, the charging management module 240 can receive wireless charging input through the wireless charging coil of the mobile phone 110 . While the charging management module 240 is charging the battery 242 , it can also supply power to the electronic device through the power management module 241 .

电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,显示屏294,摄像组件293,和无线通信模块260等供电。电源管理模块241还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。The power management module 241 is used for connecting the battery 242 , the charging management module 240 and the processor 210 . The power management module 241 receives the input from the battery 242 and/or the charging management module 240 to provide power for the processor 210 , the internal memory 221 , the display screen 294 , the camera component 293 , and the wireless communication module 260 . The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 241 can also be set in the processor 210 . In some other embodiments, the power management module 241 and the charging management module 240 may also be set in the same device.

手机110的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 110 can be realized by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。手机110中的每个天线可用于覆盖单个或多个通信频段。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in handset 110 can be used to cover single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块250可以提供应用在手机110上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(lownoise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。The mobile communication module 250 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 110 . The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 250 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 250 may be set in the processor 210 . In some embodiments, at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be set in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器270A、受话器270B等)输出声音信号,或通过显示屏294显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块250或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 210, and be set in the same device as the mobile communication module 250 or other functional modules.

无线通信模块260可以提供应用在手机110上的包括无线局域网(wireless localarea networks,WLAN)(如WiFi网络),蓝牙BT,全球导航卫星系统(global navigationsatellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(nearfield communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 260 can provide applications on the mobile phone 110 including wireless local area networks (wireless local area networks, WLAN) (such as WiFi network), Bluetooth BT, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM) , nearfield communication technology (nearfield communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 . The wireless communication module 260 can also receive the signal to be sent from the processor 210 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 to radiate out.

在一些实施例中,手机110的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得手机110可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code divisionmultiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(globalnavigation satellite system,GLONASS),北斗卫星导航系统(beidou navigationsatellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the mobile phone 110 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the mobile phone 110 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (globalnavigation satellite system, GLONASS), a Beidou satellite navigation system (beidou navigationsatellite system, BDS), a quasi-zenith satellite system (quasi-zenith) satellite system (QZSS) and/or satellite based augmentation systems (SBAS).

手机110通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone 110 realizes the display function through the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,手机110可以包括1个或N个显示屏294,N为大于1的正整数。The display screen 294 is used to display images, videos and the like. Display 294 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the mobile phone 110 may include 1 or N display screens 294, where N is a positive integer greater than 1.

手机110可以通过ISP,摄像组件293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。The mobile phone 110 can realize the shooting function through the ISP, the camera component 293 , the video codec, the GPU, the display screen 294 and the application processor.

ISP用于处理摄像组件293反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像组件感光元件上,光信号转换为电信号,摄像组件感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像组件293中。The ISP is used for processing the data fed back by the camera component 293 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera assembly through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera assembly transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera assembly 293 .

摄像组件293用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机110可以包括1个或N个摄像组件293,N为大于1的正整数。Camera assembly 293 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the mobile phone 110 may include 1 or N camera components 293, where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机110在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the mobile phone 110 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.

视频编解码器用于对数字视频压缩或解压缩。手机110可以支持一种或多种视频编解码器。这样,手机110可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Cell phone 110 may support one or more video codecs. In this way, the mobile phone 110 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机110的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the mobile phone 110 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.

外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机110的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 110 . The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. Such as saving music, video and other files in the external memory card.

内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机110使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器210通过运行存储在内部存储器221的指令,和/或存储在设置于处理器中的存储器的指令,执行手机110的各种功能应用以及数据处理。The internal memory 221 may be used to store computer-executable program codes including instructions. The internal memory 221 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 110 . In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 210 executes various functional applications and data processing of the mobile phone 110 by executing instructions stored in the internal memory 221 and/or instructions stored in the memory provided in the processor.

手机110可以通过音频模块270,扬声器270A,受话器270B,麦克风270C以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 110 can realize the audio function through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, and the application processor. Such as music playback, recording, etc.

音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be set in the processor 210 , or some functional modules of the audio module 270 can be set in the processor 210 .

扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。手机110可以通过扬声器270A进行语音播放或通知等。Speaker 270A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. The mobile phone 110 can perform voice playback or notification through the speaker 270A.

受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。当手机110接听电话或语音信息时,可以通过将受话器270B靠近人耳接听语音。Receiver 270B, also called "earpiece", is used to convert audio electrical signals into audio signals. When the mobile phone 110 receives a call or a voice message, the receiver 270B can be placed close to the human ear to receive the voice.

麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风270C发声,将声音信号输入到麦克风270C。手机110可以设置至少一个麦克风270C。在另一些实施例中,手机110可以设置两个麦克风270C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机110还可以设置三个,四个或更多麦克风270C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 270C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 270C with a human mouth, and input the sound signal to the microphone 270C. The mobile phone 110 may be provided with at least one microphone 270C. In some other embodiments, the mobile phone 110 can be provided with two microphones 270C, which can also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the mobile phone 110 can also be provided with three, four or more microphones 270C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording functions, etc.

马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏294不同区域的触摸操作,马达291也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 291 can generate a vibrating prompt. The motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 291 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 294 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and also can be used to indicate messages, missed calls, notifications and so on.

SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口495拔出,实现和手机110的接触和分离。手机110可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口295可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口295也可以兼容不同类型的SIM卡。SIM卡接口295也可以兼容外部存储卡。手机110通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机110采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机110中,不能和手机110分离。The SIM card interface 295 is used for connecting a SIM card. The SIM card can be connected and separated from the mobile phone 110 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 495 . The mobile phone 110 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 295 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 295 is also compatible with different types of SIM cards. The SIM card interface 295 is also compatible with external memory cards. The mobile phone 110 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the mobile phone 110 uses an eSIM, ie, an embedded SIM card. The eSIM card can be embedded in the mobile phone 110 and cannot be separated from the mobile phone 110 .

本申请实施例中的智能家居设备的接入方法的基本原理是:电子设备根据获取的所有智能家居设备的设备发现标识ID,批量触发到所有智能家居设备的Mesh连接,以及基于建立的Mesh连接批量发送用于接入无线通信网络的配置信息,以便每一个智能家居设备根据该配置信息接入无线通信网络。The basic principle of the smart home device access method in the embodiment of the present application is: the electronic device triggers the Mesh connection to all smart home devices in batches according to the obtained device discovery identification IDs of all the smart home devices, and based on the established Mesh connection The configuration information for accessing the wireless communication network is sent in batches, so that each smart home device can access the wireless communication network according to the configuration information.

以下结合电子设备为图2所示的手机,具体介绍本申请实施例提供的智能家居设备的接入方法。以下实施例中的方法均可以在具有上述硬件结构的电子设备或者具有类似结构的电子设备中实现。In the following, the electronic device is the mobile phone shown in FIG. 2 , and the access method of the smart home device provided by the embodiment of the present application is specifically introduced. The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure or an electronic device having a similar structure.

如图3所示,本申请实施例的智能家居设备的接入方法可以包括:As shown in Figure 3, the access method of the smart home device in the embodiment of the present application may include:

S301、手机110获取至少一个智能家居设备的设备发现ID。S301. The mobile phone 110 acquires a device discovery ID of at least one smart home device.

在一些实施例中,设备发现ID可以为智能家居设备的Hi Mesh ID。其中,Hi MeshID至少可以包括以下信息:Himesh标识、设备类型和设备标识(Identification,ID)。其中,Himesh标识通常为固定值,例如:Himesh标识为1,则指示设备支持Mesh网络。设备类型用于指示智能家居设备的设备类型,包括家居设备、路由器等。设备ID是操作系统为开发者提供的用于唯一标识设备的串号。In some embodiments, the device discovery ID may be the Hi Mesh ID of the smart home device. Wherein, the Hi MeshID may at least include the following information: Himesh identifier, device type and device identification (Identification, ID). Wherein, the Himesh identifier is usually a fixed value, for example, if the Himesh identifier is 1, it indicates that the device supports the Mesh network. The device type is used to indicate the device type of the smart home device, including home devices, routers, and so on. The device ID is a serial number provided by the operating system for developers to uniquely identify the device.

在一些实施例中,设备发现ID可以在设备出厂前预置在设备中。例如,保存在设备的存储器(如非易失性存储器)中。In some embodiments, the device discovery ID can be preset in the device before the device leaves the factory. For example, stored in the device's memory (such as non-volatile memory).

在一些实施例中,设备ID可以是设备的国际移动电话设备识别码(InternationalMobile Equipment Identity,IMEI),移动设备识别码(Mobile Equipment Identifier,MEID)或者电子序列号(Electronic Serial Number,ESN)等。In some embodiments, the device ID may be an International Mobile Equipment Identity (IMEI), a Mobile Equipment Identifier (MEID) or an Electronic Serial Number (ESN) of the device.

例如,在Android操作系统中,可以通过下面的方法获取其设备ID:TelephonyManager tm=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);For example, in the Android operating system, its device ID can be obtained by the following method: TelephonyManager tm=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

String DEVICE_ID=tm.getDeviceId()。String DEVICE_ID = tm.getDeviceId().

采用上述方法,不同类型的设备可以返回不同的设备串号,包括上述IMEI、MEID或ESN等。Using the above method, different types of devices can return different device serial numbers, including the above-mentioned IMEI, MEID or ESN, etc.

S302、手机110根据获取的智能家居设备的设备发现ID,与每一个智能家居设备建立Mesh连接。S302. The mobile phone 110 establishes a Mesh connection with each smart home device according to the acquired device discovery ID of the smart home device.

其中,手机110与不同智能家居设备的Mesh连接可以由四元组{Local MAC,PeerMAC,Local link ID,Peer link ID}唯一标识。其中,Local MAC为手机110的媒体访问控制(Media Access Control,MAC)地址,Peer MAC为智能家居设备的MAC地址,Local link ID为手机110的link mesh ID,Peer link ID为智能家居设备的link mesh ID。例如,手机110与智能插座130的Mesh连接由四元组{D0:FC:CC:D4:FA:FB,00:01:6C:06:A6:29,[1][智能手机],[1][智能插座]}唯一标识。Wherein, the Mesh connection between the mobile phone 110 and different smart home devices can be uniquely identified by the quaternion {Local MAC, PeerMAC, Local link ID, Peer link ID}. Wherein, Local MAC is the media access control (Media Access Control, MAC) address of mobile phone 110, and Peer MAC is the MAC address of smart home equipment, and Local link ID is the link mesh ID of mobile phone 110, and Peer link ID is the link mesh ID of smart home equipment. mesh ID. For example, the Mesh connection between the mobile phone 110 and the smart socket 130 consists of the quaternion {D0:FC:CC:D4:FA:FB, 00:01:6C:06:A6:29, [1][smartphone], [1 ][Smart Socket]} unique identifier.

其中,link mesh ID至少包括:Himesh标识和设备类型。Wherein, the link mesh ID includes at least: a Himesh identifier and a device type.

S303、手机110通过建立的Mesh连接,向每一个智能家居设备发送配置信息。S303. The mobile phone 110 sends configuration information to each smart home device through the established Mesh connection.

其中,配置信息用于智能家居设备根据该配置接入手机110接入家庭WiFi网络,例如连接至手机110连接的家庭WiFi网络。配置信息至少可以包括以下信息:WiFi SSID、WiFi密钥和设备注册码。Wherein, the configuration information is used for the smart home device to access the mobile phone 110 to access the home WiFi network according to the configuration, for example, to connect to the home WiFi network connected to the mobile phone 110 . The configuration information may at least include the following information: WiFi SSID, WiFi key and device registration code.

在一些实施例中,WiFi SSID可以是基于共享密钥认证(Shared KeyAuthentication)的WiFi SSID。其中,共享密钥认证是指通过判决对方是否掌握相同的密钥来确定对方身份是否合法。密钥是网络上所有合法用户共有的,而不从属于单个用户,故称为“共享”密钥。密钥对应的加密方法是有线等效保密(Wired Equivalent Privacy,WEP),用以防止非法用户窃听或侵入无线网络。In some embodiments, the WiFi SSID may be a WiFi SSID based on Shared Key Authentication. Among them, the shared key authentication refers to determining whether the other party's identity is legal by judging whether the other party has the same key. The key is shared by all legitimate users on the network, not subordinate to a single user, so it is called a "shared" key. The encryption method corresponding to the key is Wired Equivalent Privacy (WEP), which is used to prevent illegal users from eavesdropping or intruding into the wireless network.

需要说明的是,本申请实施例中的智能家居设备,可以有如下两类:It should be noted that the smart home devices in the embodiments of this application can be of the following two types:

第一类:已经与手机110建立过Mesh连接的智能家居设备。The first category: smart home devices that have established a Mesh connection with the mobile phone 110 .

第二类:未与手机110建立Mesh连接的智能家居设备。The second category: smart home devices that have not established a Mesh connection with the mobile phone 110 .

对于第一类智能家居设备,手机110无需再向其发送配置信息。对于第二类智能家居设备,则需要根据本申请实施例中的智能家居设备的接入方法,完成智能家居设备接入家庭WiFi网络。例如,图1所示的应用场景中的智能插座130、智能台灯140的智能音响150均为新增智能家居设备,本申请实施例的智能家居设备的接入方法主要是用于图1中的智能插座130、智能台灯140和智能音响150接入手机110接入的家庭WiFi网络。本申请实施例以第二类智能家居设备(即待接入智能家居设备)为智能插座130、智能台灯140和智能音响150为例介绍智能家居设备的接入方法。For the first type of smart home device, the mobile phone 110 does not need to send configuration information to it. For the second type of smart home device, it is necessary to complete the access of the smart home device to the home WiFi network according to the access method of the smart home device in the embodiment of the present application. For example, the smart socket 130 and the smart speaker 150 of the smart desk lamp 140 in the application scenario shown in FIG. The smart socket 130 , the smart desk lamp 140 and the smart speaker 150 are connected to the home WiFi network connected to the mobile phone 110 . The embodiment of this application introduces the access method of smart home devices by taking the second type of smart home devices (that is, the smart home devices to be connected) as the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 as examples.

在一些实施例中,在手机110获取获取至少一个智能家居设备的的设备发现ID(即S301)之前,本申请实施例的智能家居设备的接入方法还可以包括:In some embodiments, before the mobile phone 110 obtains the device discovery ID of at least one smart home device (that is, S301), the access method of the smart home device in the embodiment of the present application may further include:

步骤1、手机110主动扫描,携带手机110的Hi mesh ID。例如:手机110全信道广播第一消息。Step 1. The mobile phone 110 actively scans and carries the Hi mesh ID of the mobile phone 110 . For example: the mobile phone 110 broadcasts the first message on all channels.

其中,第一消息中携带有手机110的Hi mesh ID。手机110的Hi mesh ID可以在设备出厂前预置在手机110中。例如,保存在手机110的存储器(如非易失性存储器)中。Wherein, the first message carries the Hi mesh ID of the mobile phone 110 . The Hi mesh ID of the mobile phone 110 can be preset in the mobile phone 110 before the device leaves the factory. For example, it is stored in a memory (such as a non-volatile memory) of the mobile phone 110 .

在一种可能的实现方式中,第一消息为mesh probe request消息。如图4中的S401所示。In a possible implementation manner, the first message is a mesh probe request message. As shown in S401 in FIG. 4 .

在一种可能的实现方式中,手机110可以根据用户在智能家居应用(Application,APP)的界面上的指示主动扫描的操作,开启主动扫描。例如,手机110响应于用户在如图5中的5A所示的界面点击扫描设备按钮的操作,开启主动扫描。In a possible implementation manner, the mobile phone 110 may start the active scanning according to the user's operation of instructing the active scanning on the interface of the smart home application (Application, APP). For example, the mobile phone 110 starts active scanning in response to the user's operation of clicking the scanning device button on the interface shown as 5A in FIG. 5 .

步骤2、路由器120、智能插座130、智能台灯140和智能音响150根据各自的linkmesh ID和设备状态向手机110发送响应消息。Step 2, the router 120, the smart socket 130, the smart desk lamp 140 and the smart speaker 150 send a response message to the mobile phone 110 according to their linkmesh ID and device status.

其中,设备状态用于标识设备与手机110建立Mesh连接的状态,至少包括:已连接和未连接。具体的,若link mesh ID指示设备为家居设备,且该家居设备的设备状态标识为“未连接”,该智能家居设备向手机110发送响应消息。其中。响应消息包括该智能家居设备的Hi mesh ID。若不满足上述条件,则忽略mesh probe request消息。Wherein, the device status is used to identify the status of establishing the Mesh connection between the device and the mobile phone 110, at least including: connected and not connected. Specifically, if the link mesh ID indicates that the device is a home device, and the device status of the home device is "unconnected", the smart home device sends a response message to the mobile phone 110 . in. The response message includes the Hi mesh ID of the smart home device. If the above conditions are not met, ignore the mesh probe request message.

例如,智能插座130的link mesh ID指示Himesh标识为“1”(其中,“1”的意思是设备支持Mesh网络),设备类型为家居设备,对应的设备状态为未连接。则智能插座130向手机110发送响应消息。For example, the link mesh ID of the smart socket 130 indicates that the Himesh ID is "1" (wherein, "1" means that the device supports the Mesh network), the device type is a home device, and the corresponding device status is not connected. Then the smart socket 130 sends a response message to the mobile phone 110 .

如图4中的S402-1、S402-2和S402-3所示。智能插座130、智能台灯140和智能音响150的Himesh表中均指示其支持Mesh网络,设备类型均指示其为家居设备,设备状态均指示其未与手机110建立Mesh连接。响应于接收到手机110的mesh probe request消息,智能插座130、智能台灯140和智能音响150向手机110发送包括其Hi mesh ID的响应消息。而路由器120由于不是家居设备,因此,路由器120不会对mesh probe request消息作响应。As shown in S402-1, S402-2 and S402-3 in FIG. 4 . The Himesh tables of the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 all indicate that they support the Mesh network, the device types all indicate that they are household devices, and the device statuses all indicate that they have not established a Mesh connection with the mobile phone 110 . In response to receiving the mesh probe request message from the mobile phone 110 , the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 send a response message including their Hi mesh IDs to the mobile phone 110 . Since the router 120 is not a household device, the router 120 will not respond to the mesh probe request message.

步骤3、手机110根据接收到的响应消息,确定至少一个智能家居设备。如图4中的S403。Step 3, the mobile phone 110 determines at least one smart home device according to the received response message. S403 in Figure 4.

或者,在一种可能的实现方式中,手机110还可以通过被动监听其他设备的Himesh ID,然后根据每一个设备的Hi mesh ID确定至少一个智能家居设备。Or, in a possible implementation manner, the mobile phone 110 may also passively monitor the Himesh IDs of other devices, and then determine at least one smart home device according to the Hi mesh ID of each device.

在一种可能的实现方式中,手机110根据接收到的响应消息,确定至少一个智能家居设备(即步骤3),可以包括:In a possible implementation, the mobile phone 110 determines at least one smart home device according to the received response message (that is, step 3), which may include:

手机110根据接收到的响应消息中携带的Hi mesh ID,确定至少两个未与手机110建立Mesh连接的智能家居设备;手机110接收用户对确定的至少两个未与手机110备建立Mesh连接的智能家居设备的选择操作,确定至少一个智能家居设备。在一种可能的实现方式中,步骤2和步骤3可以由以下步骤A、步骤B和步骤C代替:The mobile phone 110 determines at least two smart home devices that have not established a Mesh connection with the mobile phone 110 according to the Hi mesh ID carried in the received response message; The selection operation of the smart home device determines at least one smart home device. In a possible implementation, steps 2 and 3 can be replaced by the following steps A, B and C:

步骤A、除手机110外的每一个设备(路由器120、智能插座130、智能台灯140和智能音响150)分别广播其Hi mesh ID。如图6中的S601-1、S601-2、S601-3和S601-4所示。Step A, each device (router 120, smart socket 130, smart desk lamp 140 and smart speaker 150) except the mobile phone 110 broadcasts its Hi mesh ID respectively. As shown in S601-1, S601-2, S601-3 and S601-4 in FIG. 6 .

例如,设备可以定时广播或者周期性广播其Hi mesh ID。For example, a device may broadcast its Hi mesh ID regularly or periodically.

步骤B、手机110监听广播消息,获取多个设备的Hi mesh ID。如图6中的S602所示。Step B, the mobile phone 110 monitors the broadcast message, and obtains Hi mesh IDs of multiple devices. As shown in S602 in FIG. 6 .

同样的,手机110也可以根据用户在智能家居APP的界面上的指示监听设备广播消息的操作,开启监听广播消息。Similarly, the mobile phone 110 can also start listening to the broadcast message according to the user's instruction on the interface of the smart home APP to monitor the broadcast message of the device.

步骤C、手机110根据监听到的每一个设备的广播消息中的Hi mesh ID,结合且手机110与该设备的连接状态,确定智能家居设备。如图6中的S603所示。Step C, the mobile phone 110 determines the smart home device according to the Hi mesh ID in the monitored broadcast message of each device, combined with the connection status between the mobile phone 110 and the device. As shown in S603 in FIG. 6 .

例如,若设备的link mesh ID为“1_家居设备”,且手机110与该设备的未建立Mesh连接。则手机110确定该设备为智能家居设备。For example, if the link mesh ID of the device is "1_home device", and the mobile phone 110 has not established a Mesh connection with the device. Then the mobile phone 110 determines that the device is a smart home device.

同样的,步骤C,可以包括:手机110根据监听到的广播消息中携带的Hi mesh ID,确定至少两个未与手机110建立Mesh连接的智能家居设备;手机110接收用户对确定的至少两个未与手机110备建立Mesh连接的智能家居设备的选择操作,确定至少一个智能家居设备。Similarly, step C may include: the mobile phone 110 determines at least two smart home devices that have not established a Mesh connection with the mobile phone 110 according to the Hi mesh ID carried in the monitored broadcast message; The operation of selecting smart home devices that have not established a Mesh connection with the mobile phone 110 determines at least one smart home device.

在一种可能的实现方式中,手机110可以在智能家居APP的界面上显示确定的至少两个未与手机110备建立Mesh连接的智能家居设备的Hi Mesh ID,供用户从中选择至少一个智能家居设备。In a possible implementation, the mobile phone 110 can display the Hi Mesh IDs of at least two determined smart home devices that have not established a Mesh connection with the mobile phone 110 on the interface of the smart home APP, so that the user can select at least one smart home device from among them. equipment.

其中,手机110在确定好至少两个未与手机110建立Mesh连接的智能家居设备之后,可以存储确定好的至少两个未与手机110建立Mesh连接的智能家居设备的Hi mesh ID。例如,手机110以列表的形式存储确定的至少两个未与手机110建立Mesh连接的智能家居设备的Hi mesh ID。Wherein, the mobile phone 110 may store Hi mesh IDs of at least two determined smart home devices that have not established a Mesh connection with the mobile phone 110 after determining at least two smart home devices that have not established a Mesh connection with the mobile phone 110 . For example, the mobile phone 110 stores the determined Hi mesh IDs of at least two smart home devices that have not established a Mesh connection with the mobile phone 110 in the form of a list.

在一种可能的实现方式中,在手机110接收到来自智能家居设备的响应消息之后,可以在上述智能家居界面上显示所有智能家居设备的Hi Mesh ID,供用户选择。如图5中的5B所示。In a possible implementation manner, after receiving the response message from the smart home device, the mobile phone 110 may display the Hi Mesh IDs of all the smart home devices on the smart home interface for the user to select. As shown in 5B in FIG. 5 .

在一些实施例中,为了在用户从至少两个未与手机110建立Mesh连接的智能家居设备选择智能家居设备时,帮助用户更好的区分每一个智能家居设备。Hi Mesh ID还可以包括:设备厂家信息和/或设备型号信息。In some embodiments, when the user selects a smart home device from at least two smart home devices that have not established a Mesh connection with the mobile phone 110 , it helps the user to better distinguish each smart home device. The Hi Mesh ID may also include: device manufacturer information and/or device model information.

在一种可能的实现方式中,手机110根据获取的智能家居设备的设备发现ID,与每一个待智能家居设备建立Mesh连接(即S303),可以包括:In a possible implementation manner, the mobile phone 110 establishes a Mesh connection with each waiting smart home device according to the obtained device discovery ID of the smart home device (that is, S303), which may include:

步骤4、手机110向每一个智能家居设备发送第二消息。Step 4, the mobile phone 110 sends a second message to each smart home device.

在一些实施例中,第二消息为认证方式为open的mesh peer open请求消息。meshpeer open请求消息用于请求与智能家居设备建立Mesh连接。例如,在用户选择了智能插座130、智能台灯140和智能音响150之后,手机110向智能插座130、智能台灯140和智能音响150发送mesh peer open请求消息。如图4中的S404-1、S404-2和S404-3所示。In some embodiments, the second message is a mesh peer open request message whose authentication mode is open. The meshpeer open request message is used to request to establish a Mesh connection with a smart home device. For example, after the user selects the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 , the mobile phone 110 sends a mesh peer open request message to the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 . As shown in S404-1, S404-2 and S404-3 in FIG. 4 .

其中,open是有线等效保密(Wired Equivalent Privacy,WEP)加密使用的一种认证方式。该认证方式无需经过认证即可进行关联,但必须WiFi密钥正确才能正常连接。Wherein, open is an authentication method used in Wired Equivalent Privacy (WEP) encryption. This authentication method can be associated without authentication, but the WiFi key must be correct to connect normally.

步骤5、智能插座130、智能台灯140和智能音响150同时发起与手机110的Mesh连接。Step 5, the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 initiate a Mesh connection with the mobile phone 110 at the same time.

在一些实施例中,智能插座130、智能台灯140和智能音响150可以通过向手机110同时发送mesh peer open消息,发起与手机110的Mesh连接。如图4中的S405-1、S405-2和S405-3所示。In some embodiments, the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 can initiate a Mesh connection with the mobile phone 110 by sending mesh peer open messages to the mobile phone 110 at the same time. As shown in S405-1, S405-2 and S405-3 in FIG. 4 .

在一些实施例中,在步骤5之前,响应于接收到手机110发送的mesh peer open请求消息,智能插座130、智能台灯140和智能音响150还可以分别向手机110发送mesh peerconfirm消息。用于告知手机110已经收到其mesh peer open请求消息。In some embodiments, before step 5, in response to receiving the mesh peer open request message sent by the mobile phone 110, the smart socket 130, the smart desk lamp 140 and the smart speaker 150 may also send mesh peerconfirm messages to the mobile phone 110 respectively. It is used to notify the mobile phone 110 that its mesh peer open request message has been received.

在步骤5之后,步骤6为:手机110通过建立的Mesh连接向智能插座130、智能台灯140和智能音响150发送用于智能家居设备配置入网的配置信息。如图4中的S406所示。After step 5, step 6 is: the mobile phone 110 sends configuration information for smart home devices to configure network access to the smart socket 130, the smart desk lamp 140 and the smart speaker 150 through the established Mesh connection. As shown in S406 in FIG. 4 .

在一种可能的实现方式中,手机110可以将用户在智能家居APP的界面上输入的WiFi SSID、WiFi密钥和设备注册码等配置信息,发送给用户选中的所有智能家居设备。如图5中的5C所示。In a possible implementation manner, the mobile phone 110 may send configuration information such as WiFi SSID, WiFi key, and device registration code input by the user on the interface of the smart home APP to all smart home devices selected by the user. Shown as 5C in FIG. 5 .

步骤7、智能插座130、智能台灯140和智能音响150分别根据配置信息接入手机110接入的家庭WiFi网络。如图4中的S407-1、S407-2和S407-3所示。Step 7: The smart socket 130, the smart desk lamp 140 and the smart speaker 150 respectively access the home WiFi network connected by the mobile phone 110 according to the configuration information. As shown in S407-1, S407-2 and S407-3 in Fig. 4 .

在一些实施例中,在步骤6之后,本申请实施例的智能家居设备的接入网方法还包括:手机110断开与智能插座130、智能台灯140和智能音响150之间的Mesh连接。In some embodiments, after step 6, the access network method for smart home devices in the embodiment of the present application further includes: the mobile phone 110 disconnects the Mesh connection with the smart socket 130 , the smart desk lamp 140 and the smart speaker 150 .

在一种可能的实现方式中,Mesh连接中的任一方,包括智能家居设备和手机,均可以通过向Mesh连接的另一方发送mesh peer close消息,关闭其对应的Mesh连接。该meshpeer close消息中还可以携带原因码,用于标识关闭原因。In a possible implementation manner, any party in the Mesh connection, including smart home devices and mobile phones, can close its corresponding Mesh connection by sending a mesh peer close message to the other party in the Mesh connection. The meshpeer close message may also carry a reason code, which is used to identify the reason for closing.

需要说明的是,图4和图6中的S404-1、S404-2和S404-3为同时触发。具体的,手机110可以根据用户在智能家居APP的界面上的建立Mesh连接按钮,批量向所有智能家居设备发送第二消息。无需用户逐一的与每一个智能家居设备建立连接。It should be noted that S404-1, S404-2 and S404-3 in FIG. 4 and FIG. 6 are triggered simultaneously. Specifically, the mobile phone 110 may send the second message to all smart home devices in batches according to the button of establishing a Mesh connection on the interface of the smart home APP by the user. There is no need for users to establish connections with each smart home device one by one.

另外,本申请对图4中的S402-1、S402-2和S402-3的具体时间顺序,图4和图6中的S405-1、S405-2和S405-3的具体时间顺序,图4和图6中的S407-1、S407-2和S407-3的具体时间顺序,图6中的S601-1、S601-2、S601-3和S601-4具体时间顺序没有限定,上述步骤可以同时进行,也可以以任意时序进行,本申请对其时序不作限定。In addition, the specific time sequence of S402-1, S402-2 and S402-3 in Fig. 4, the specific time sequence of S405-1, S405-2 and S405-3 in Fig. 4 and Fig. 6, Fig. 4 And the specific time sequence of S407-1, S407-2 and S407-3 in Fig. 6, the specific time sequence of S601-1, S601-2, S601-3 and S601-4 in Fig. 6 is not limited, the above steps can be simultaneously It can also be performed at any time sequence, which is not limited in this application.

可以理解的是,手机110为了实现上述任一个实施例的功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to realize the functions of any one of the foregoing embodiments, the mobile phone 110 includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本申请实施例可以对手机110进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present application, the mobile phone 110 may be divided into functional modules. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.

比如,以采用集成的方式划分各个功能模块的情况下,以手机110为例介绍本申请实施例提供的一种手机的结构示意图。如图7所示,手机110可以包括接收单元710,发送单元720和连接建立单元730。For example, in the case of dividing various functional modules in an integrated manner, a structural schematic diagram of a mobile phone provided in the embodiment of the present application is introduced by taking the mobile phone 110 as an example. As shown in FIG. 7 , the mobile phone 110 may include a receiving unit 710 , a sending unit 720 and a connection establishing unit 730 .

其中,接收单元710用于获取至少一个智能家居设备的设备发现标识ID。连接建立单元730用于根据至少一个智能家居设备的设备发现ID,与上述至少一个智能家居设备建立Mesh连接。发送单元720用于通过建立的Mesh连接,向上述至少一个智能家居设备发送用于接入该电子设备所接入的无线通信网络的配置信息。Wherein, the receiving unit 710 is configured to obtain a device discovery ID of at least one smart home device. The connection establishment unit 730 is configured to establish a Mesh connection with the at least one smart home device according to the device discovery ID of the at least one smart home device. The sending unit 720 is configured to send configuration information for accessing the wireless communication network accessed by the electronic device to the at least one smart home device through the established Mesh connection.

同样的,智能家居设备,例如智能插座130可以包括接收单元810,发送单元820和连接建立单元830,如图8所示。其中,发送单元820用于向手机110发送智能插座130的设备发现标识ID。接收单元810用于从手机110接收Mesh连接建立请求消息。连接建立单元830用于与手机110建立Mesh连接。发送单元820还用于通过建立的Mesh连接,从手机110接收用于接入电子设备所接入的无线通信网络的配置信息。Similarly, a smart home device, such as a smart socket 130, may include a receiving unit 810, a sending unit 820 and a connection establishing unit 830, as shown in FIG. 8 . Wherein, the sending unit 820 is configured to send the device discovery ID of the smart socket 130 to the mobile phone 110 . The receiving unit 810 is configured to receive a Mesh connection establishment request message from the mobile phone 110 . The connection establishment unit 830 is configured to establish a Mesh connection with the mobile phone 110 . The sending unit 820 is further configured to receive configuration information for accessing the wireless communication network accessed by the electronic device from the mobile phone 110 through the established Mesh connection.

需要说明的是,上述接收单元710、发送单元720、接收单元810和发送单元820可以包括射频电路。具体的,接收单元710和接收单元810可以通过射频电路进行无线信号的接收,发送单元720和发送单元820可以通过射频电路进行无线信号的发送。例如,接收单元710通过射频电路获取至少一个智能家居设备的设备发现标识ID。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。It should be noted that, the receiving unit 710, the sending unit 720, the receiving unit 810, and the sending unit 820 may include radio frequency circuits. Specifically, the receiving unit 710 and the receiving unit 810 may receive wireless signals through a radio frequency circuit, and the sending unit 720 and the sending unit 820 may perform wireless signal transmission through a radio frequency circuit. For example, the receiving unit 710 acquires the device discovery ID of at least one smart home device through a radio frequency circuit. Typically, radio frequency circuitry includes, but is not limited to, an antenna, at least one amplifier, transceiver, coupler, low noise amplifier, duplexer, and the like. In addition, radio frequency circuits can also communicate with other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile Communications, General Packet Radio Service, Code Division Multiple Access, Wideband Code Division Multiple Access, Long Term Evolution, Email, Short Message Service, etc.

在一种可选的方式中,当使用软件实现数据传输时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地实现本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In an optional manner, when software is used to implement data transmission, it may be implemented in whole or in part in the form of computer program products. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are realized in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)).

结合本申请实施例所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于探测装置中。当然,处理器和存储介质也可以作为分立组件存在于探测装置中。The steps of the methods or algorithms described in conjunction with the embodiments of the present application may be implemented in hardware, or may be implemented in a manner in which a processor executes software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, mobile hard disk, CD-ROM or any other form of storage known in the art medium. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC. Alternatively, the ASIC may be located in the detection device. Of course, the processor and the storage medium can also exist in the detection device as discrete components.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, 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 the several embodiments provided in this application, it should be understood that the disclosed user equipment and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (24)

1. a kind of cut-in method of smart home device, which is characterized in that be applied to electronic equipment, which comprises
The electronic equipment obtains the equipment discovery mark ID of at least one smart home device, and the equipment discovery ID is for only The corresponding smart home device of one mark;
The electronic equipment finds ID according to the equipment of at least one smart home device, at least one described intelligent family It occupies equipment and establishes Mesh connection;
The electronic equipment sends at least one described smart home device by the Mesh connection established and matches confidence Breath, the configuration information is for accessing the cordless communication network that the electronic equipment is accessed.
2. the method according to claim 1, wherein the cordless communication network is Wireless Fidelity WiFi network; The configuration information includes service set SSID, the WiFi key and facility registration code of the cordless communication network.
3. method according to claim 1 or 2, which is characterized in that at least one described smart home device be not with institute State the equipment that electronic equipment establishes Mesh connection.
4. method according to any one of claim 1-3, which is characterized in that the equipment discovery ID is Hi Mesh ID;The HiMesh ID is included at least: Himesh mark, device type and device identification ID;
Wherein, the Himesh mark is used to indicate whether the smart home device supports Mesh network, the device type The device type for being used to indicate the smart home device is home equipment, and the device id is for intelligence man described in unique identification Occupy equipment.
5. according to the method described in claim 4, it is characterized in that, presetting the Hi of the electronic equipment in the electronic equipment Mesh ID;
Before the electronic equipment obtains the equipment discovery ID of at least one smart home device, the method also includes:
The electronic equipment broadcasts first message, and the Hi mesh ID of the electronic equipment is carried in the first message;
The electronic equipment receives response message from least one described smart home device, connects from each smart home device The Hi Mesh ID of corresponding smart home device is carried in the response message of receipts;
The electronic equipment determines at least one described intelligent family according to the Hi mesh ID carried in the response message received Occupy equipment.
6. according to the method described in claim 5, it is characterized in that, the first message is that mesh probe request disappears Breath.
7. according to the method described in claim 4, it is characterized in that, presetting the Hi of the electronic equipment in the electronic equipment Mesh ID;
Before the electronic equipment obtains the equipment discovery ID of at least one smart home device, the method also includes:
The electronic equipment listening broadcast message, carries in each described broadcast message that the electronic equipment listens to pair Answer the Hi mesh ID of equipment;
The electronic equipment determines at least one described intelligent family according to the Hi mesh ID carried in the broadcast message listened to Occupy equipment.
8. method according to claim 5 or 6, which is characterized in that the electronic equipment is according to the response message received The Hi mesh ID of middle carrying determines at least one described smart home device, comprising:
The electronic equipment according to the Hi mesh ID carried in the response message received, determine at least two not with the electricity Sub- equipment establishes the smart home device of Mesh connection;
The electronic equipment receives user and does not establish the smart home that Mesh is connect with the electronic equipment to described at least two The selection operation of at least one smart home device described in equipment determines at least one described smart home device.
9. the method according to the description of claim 7 is characterized in that the electronic equipment is taken according in the broadcast message listened to The Hi mesh ID of band determines at least one described smart home device, comprising:
The electronic equipment according to the Hi mesh ID carried in the broadcast message listened to, determine at least two not with the electricity Sub- equipment establishes the smart home device of Mesh connection;
The electronic equipment receives user and does not establish the smart home that Mesh is connect with the electronic equipment to described at least two The selection operation of at least one smart home device described in equipment determines at least one described smart home device.
10. method according to claim 1 to 9, which is characterized in that the electronic equipment according to it is described at least The equipment of one smart home device finds ID, establishes Mesh at least one described smart home device and connect, comprising:
The electronic equipment at least one described smart home device send second message, the second message for request with Each smart home device establishes Mesh connection;
The electronic equipment receives connection response message from the correspondence smart home device;
The electronic equipment is established Mesh with corresponding smart home device and is connected according to each connection response message received It connects.
11. according to the method described in claim 10, it is characterized in that, the second message is that mesh peer open connection is asked Seek message.
12. -11 described in any item methods according to claim 1, which is characterized in that pass through the Mesh in the electronic equipment Connection, after sending configuration information at least one described smart home device, the method also includes:
The electronic equipment disconnection is connect with the Mesh of at least one smart home device.
13. -12 described in any item methods according to claim 1, which is characterized in that be equipped with intelligent family in the electronic equipment It occupies and applies APP;
First operation of the electronic equipment in response to user on the interface of the smart home APP, obtains described at least one The equipment of a smart home device finds ID;
Second operation of the electronic equipment in response to user on the interface of the smart home APP, according to described at least one The equipment of a smart home device finds ID, establishes Mesh at least one described smart home device and connect;
The electronic equipment is operated in response to third of the user on the interface of the smart home APP, is connected by the Mesh It connects, sends configuration information at least one described smart home device.
14. a kind of cut-in method of smart home device, which is characterized in that be applied to smart home device, which comprises
The smart home device sends the equipment discovery mark ID of the smart home device, the equipment hair to electronic equipment Existing ID is for smart home device described in unique identification;The equipment discovery ID is for the electronic equipment and the smart home Equipment establishes Mesh connection;
The smart home device receives Mesh connection from the electronic equipment and establishes request message;
The smart home device is established Mesh with the electronic equipment and is connect;
The smart home device receives configuration information from the electronic equipment by the Mesh connection established, described to match Confidence ceases the cordless communication network accessed for accessing the electronic equipment.
15. according to the method for claim 14, which is characterized in that the cordless communication network is Wireless Fidelity WiFi net Network;The configuration information includes service set SSID, the WiFi key and facility registration code of the cordless communication network.
16. method according to claim 14 or 15, which is characterized in that the equipment discovery ID is Hi Mesh ID;Institute It states Hi Mesh ID to include at least: Himesh mark, device type and device identification ID;
Wherein, the Himesh mark is used to indicate whether the smart home device supports Mesh network, the device type The device type for being used to indicate the smart home device is home equipment, and the device id is for intelligence man described in unique identification Occupy equipment.
17. according to the method for claim 16, which is characterized in that preset the intelligent family in the smart home device Occupy the Hi Mesh ID of equipment;
Before the smart home device sends the equipment discovery mark ID of the smart home device to the electronic equipment, The method also includes:
The smart home device receives first message from the electronic equipment, carries the electronics in the first message and sets Standby Hi mesh ID;
The smart home device is according to the Hi mesh ID of the smart home device, it is determined whether Xiang Suoshu electronic equipment hair Send the Hi mesh ID of the smart home device;
The smart home device sends the equipment discovery mark ID of the smart home device to the electronic equipment, comprising:
The smart home device sends response message to the electronic equipment, and the intelligent family is carried in the response message Occupy the equipment discovery mark ID of equipment.
18. according to the method for claim 16, which is characterized in that preset the intelligent family in the smart home device Occupy the Hi Mesh ID of equipment;
The smart home device sends the equipment discovery mark ID of the smart home device to the electronic equipment, comprising:
The smart home device sends broadcast message, and the Hi of the smart home device is carried in the broadcast message mesh ID。
19. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory, for storing computer program code, the computer program code includes instruction;
Radio circuit, for carrying out sending and receiving for radio signal;
Processor realizes the access side of such as described in any item smart home devices of claim 1-13 for executing described instruction Method.
20. a kind of electronic equipment, which is characterized in that the electronic equipment is described in any item for realizing such as claim 1-13 The cut-in method of smart home device, the electronic equipment include:
Receiving unit, the equipment for obtaining at least one smart home device find that mark ID, the equipment discovery ID are used for The corresponding smart home device of unique identification;
Connection establishment unit, for finding ID according to the equipment of at least one smart home device, with it is described at least one Smart home device establishes Mesh connection;
Transmission unit sends at least one described smart home device for the Mesh connection by establishing and matches confidence Breath, the configuration information is for accessing the cordless communication network that the electronic equipment is accessed.
21. a kind of smart home device, which is characterized in that the smart home device includes:
Memory, for storing computer program code, the computer program code includes instruction;
Radio circuit, for carrying out sending and receiving for radio signal;
Processor realizes the access of such as described in any item smart home devices of claim 14-18 for executing described instruction Method.
22. a kind of smart home device, which is characterized in that the smart home device is any for realizing such as claim 1-13 The cut-in method of smart home device described in, the smart home device include:
Transmission unit, the equipment for sending the smart home device to electronic equipment find mark ID, the equipment discovery ID is for smart home device described in unique identification;The equipment discovery ID is set for the electronic equipment with the smart home It is standby to establish Mesh connection;
Receiving unit establishes request message for receiving Mesh connection from the electronic equipment;
Connection establishment unit is connect for establishing Mesh with the electronic equipment;
The receiving unit is also used to, and by the Mesh connection of foundation, receives configuration information from the electronic equipment, described Configuration information is for accessing the cordless communication network that the electronic equipment is accessed.
23. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium It executes instruction, the computer executed instructions circuit processed realizes such as claim 1-13 or claim 14- when executing The cut-in method of 18 described in any item smart home devices.
24. a kind of chip system, which is characterized in that the chip system includes processor, memory, is stored in the memory There is instruction;When described instruction is executed by the processor, realize such as any one of claim 1-13 or claim 14-18 institute The cut-in method for the smart home device stated.
CN201910523678.0A 2019-06-17 2019-06-17 An access method for a smart home device and an electronic device Expired - Fee Related CN110320811B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910523678.0A CN110320811B (en) 2019-06-17 2019-06-17 An access method for a smart home device and an electronic device
PCT/CN2020/096457 WO2020253695A1 (en) 2019-06-17 2020-06-17 Smart home device access method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910523678.0A CN110320811B (en) 2019-06-17 2019-06-17 An access method for a smart home device and an electronic device

Publications (2)

Publication Number Publication Date
CN110320811A true CN110320811A (en) 2019-10-11
CN110320811B CN110320811B (en) 2021-12-14

Family

ID=68119692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910523678.0A Expired - Fee Related CN110320811B (en) 2019-06-17 2019-06-17 An access method for a smart home device and an electronic device

Country Status (2)

Country Link
CN (1) CN110320811B (en)
WO (1) WO2020253695A1 (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110831112A (en) * 2019-11-07 2020-02-21 深圳市欧瑞博科技有限公司 Network connection method, intelligent household equipment, intelligent gateway and electronic equipment
CN110831005A (en) * 2019-11-11 2020-02-21 深圳创维数字技术有限公司 Device adding method of Mesh network, gateway device and storage medium
CN111010693A (en) * 2019-11-25 2020-04-14 华为技术有限公司 A method and electronic device for providing wireless fidelity WiFi network access service
CN111580401A (en) * 2020-05-25 2020-08-25 厦门大学 A semi-physical compatible smart home control system based on VR technology
WO2020253695A1 (en) * 2019-06-17 2020-12-24 华为技术有限公司 Smart home device access method and electronic device
CN112153721A (en) * 2020-08-05 2020-12-29 华为技术有限公司 A wireless routing device access method and wireless routing device
CN112286147A (en) * 2020-09-17 2021-01-29 华为技术有限公司 A kind of control method and device of household equipment
CN112433480A (en) * 2020-12-23 2021-03-02 博流智能科技(南京)有限公司 Intelligent household system and control method and device thereof
CN113242550A (en) * 2020-01-22 2021-08-10 阿里巴巴集团控股有限公司 Network distribution method, device, equipment and storage medium
CN113573254A (en) * 2021-07-16 2021-10-29 上海顺舟智能科技股份有限公司 Networking control method and device for smart home, control equipment and storage medium
CN113747544A (en) * 2021-09-23 2021-12-03 兰笺(苏州)科技有限公司 Distributed directional network access method and equipment for wireless communication network
CN113756044A (en) * 2020-06-04 2021-12-07 青岛海尔洗衣机有限公司 Washing reminding method and device
CN114143129A (en) * 2020-08-12 2022-03-04 深圳绿米联创科技有限公司 Gateway batch network access method, device, equipment and storage medium
CN114285737A (en) * 2020-09-18 2022-04-05 华为技术有限公司 Method and device for configuring equipment
CN114615660A (en) * 2020-12-04 2022-06-10 华为技术有限公司 Access method, system and electronic device
CN114697438A (en) * 2020-12-29 2022-07-01 华为技术有限公司 A method and device for making a call using a smart device
CN114884760A (en) * 2022-03-24 2022-08-09 浙江猫精人工智能科技有限公司 Networking method, networking display interface and computer readable storage medium
CN115868151A (en) * 2021-07-02 2023-03-28 谷歌有限责任公司 Virtual remote control of a second device, e.g. a TV, on a first device
CN116382106A (en) * 2023-03-01 2023-07-04 青岛海尔科技有限公司 A control method, system, storage medium and device for smart home equipment
WO2024001735A1 (en) * 2022-06-27 2024-01-04 华为技术有限公司 Network connection method, electronic device, and storage medium
WO2024093597A1 (en) * 2022-10-31 2024-05-10 华为技术有限公司 Method for configuring a plurality of devices, device, and system
WO2024125635A1 (en) * 2022-12-16 2024-06-20 华为技术有限公司 Device registration method

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114607A (en) * 2021-03-22 2022-09-27 华为技术有限公司 Sharing authorization method, device and storage medium
CN115524983B (en) * 2021-07-02 2024-11-19 青岛海尔智能家电科技有限公司 Networking method for intelligent switch, upper computer, intelligent switch and storage medium
CN113727462A (en) * 2021-08-25 2021-11-30 北京小米移动软件有限公司 Wireless connection establishing method and device, electronic equipment and storage medium
CN114189402B (en) * 2021-11-29 2023-06-16 珠海格力电器股份有限公司 Network switching method, device, equipment and storage medium
CN114599038B (en) * 2022-03-18 2024-12-03 珠海格力电器股份有限公司 Pairing method of multi-link system, pairing system and multi-link system
CN115150217A (en) * 2022-06-30 2022-10-04 青岛海信移动通信技术股份有限公司 Network distribution method, device and equipment for intelligent household equipment
CN115343961A (en) * 2022-07-26 2022-11-15 珠海雷特科技股份有限公司 Smart Home System Based on Bluetooth Mesh and Its Working Method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110670A (en) * 2006-07-17 2008-01-23 西安电子科技大学 Key Management Method Based on Wireless Mesh Network
CN104333914A (en) * 2013-07-22 2015-02-04 杭州华三通信技术有限公司 Method and equipment of establishing Mesh link
US20150334631A1 (en) * 2014-05-16 2015-11-19 Qualcomm Incorporated Establishing reliable routes without expensive mesh peering
US9648548B1 (en) * 2015-01-02 2017-05-09 Sprint Spectrum L.P. WiFi mesh configuration
CN107770007A (en) * 2017-09-20 2018-03-06 广东美的制冷设备有限公司 Distribution method, apparatus, system and the computer-readable recording medium of home appliance
CN108199905A (en) * 2018-02-01 2018-06-22 乐鑫信息科技(上海)有限公司 MESH network and its MESH equipment and with network method
CN109828544A (en) * 2019-02-15 2019-05-31 广州视声智能科技有限公司 A kind of intelligent home control system and its configuration method based on bluetooth mesh
CN110392445A (en) * 2019-07-17 2019-10-29 青岛海尔科技有限公司 Method, device and system for equipment distribution network

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8340057B2 (en) * 2006-12-22 2012-12-25 Canon Kabushiki Kaisha Automated wireless access to peripheral devices
KR102031913B1 (en) * 2013-09-26 2019-10-14 엘지전자 주식회사 Method and apparatus for accessing to electronic device having hotspot function
CN104683994A (en) * 2015-03-18 2015-06-03 北京联盛德微电子有限责任公司 Wireless network configuration method and wireless network devices
CN105451300B (en) * 2015-11-04 2019-02-01 Oppo广东移动通信有限公司 A network connection method and mobile device
US10271245B2 (en) * 2015-12-18 2019-04-23 Samsung Electronics Co., Ltd Methods and systems for transferring hotspot session
CN106230671A (en) * 2016-08-01 2016-12-14 珠海格力电器股份有限公司 Smart home control method and device and terminal
CN110320811B (en) * 2019-06-17 2021-12-14 华为技术有限公司 An access method for a smart home device and an electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110670A (en) * 2006-07-17 2008-01-23 西安电子科技大学 Key Management Method Based on Wireless Mesh Network
CN104333914A (en) * 2013-07-22 2015-02-04 杭州华三通信技术有限公司 Method and equipment of establishing Mesh link
US20150334631A1 (en) * 2014-05-16 2015-11-19 Qualcomm Incorporated Establishing reliable routes without expensive mesh peering
US9648548B1 (en) * 2015-01-02 2017-05-09 Sprint Spectrum L.P. WiFi mesh configuration
CN107770007A (en) * 2017-09-20 2018-03-06 广东美的制冷设备有限公司 Distribution method, apparatus, system and the computer-readable recording medium of home appliance
CN108199905A (en) * 2018-02-01 2018-06-22 乐鑫信息科技(上海)有限公司 MESH network and its MESH equipment and with network method
CN109828544A (en) * 2019-02-15 2019-05-31 广州视声智能科技有限公司 A kind of intelligent home control system and its configuration method based on bluetooth mesh
CN110392445A (en) * 2019-07-17 2019-10-29 青岛海尔科技有限公司 Method, device and system for equipment distribution network

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020253695A1 (en) * 2019-06-17 2020-12-24 华为技术有限公司 Smart home device access method and electronic device
CN110831112B (en) * 2019-11-07 2022-05-03 深圳市欧瑞博科技股份有限公司 Network connection method, intelligent household equipment, intelligent gateway and electronic equipment
CN110831112A (en) * 2019-11-07 2020-02-21 深圳市欧瑞博科技有限公司 Network connection method, intelligent household equipment, intelligent gateway and electronic equipment
CN110831005A (en) * 2019-11-11 2020-02-21 深圳创维数字技术有限公司 Device adding method of Mesh network, gateway device and storage medium
CN111010693B (en) * 2019-11-25 2023-10-03 华为技术有限公司 Method for providing wireless fidelity network access service and electronic equipment
CN111010693A (en) * 2019-11-25 2020-04-14 华为技术有限公司 A method and electronic device for providing wireless fidelity WiFi network access service
CN113242550A (en) * 2020-01-22 2021-08-10 阿里巴巴集团控股有限公司 Network distribution method, device, equipment and storage medium
CN111580401B (en) * 2020-05-25 2021-06-22 厦门大学 A semi-physical compatible smart home control system based on VR technology
CN111580401A (en) * 2020-05-25 2020-08-25 厦门大学 A semi-physical compatible smart home control system based on VR technology
CN113756044A (en) * 2020-06-04 2021-12-07 青岛海尔洗衣机有限公司 Washing reminding method and device
CN112153721A (en) * 2020-08-05 2020-12-29 华为技术有限公司 A wireless routing device access method and wireless routing device
CN112153721B (en) * 2020-08-05 2021-08-20 华为技术有限公司 A wireless routing device access method and wireless routing device
CN114143129A (en) * 2020-08-12 2022-03-04 深圳绿米联创科技有限公司 Gateway batch network access method, device, equipment and storage medium
CN112286147A (en) * 2020-09-17 2021-01-29 华为技术有限公司 A kind of control method and device of household equipment
US11979251B2 (en) 2020-09-17 2024-05-07 Huawei Technologies Co., Ltd. Home device control method and device
CN112286147B (en) * 2020-09-17 2021-08-20 华为技术有限公司 A kind of control method and device of household equipment
CN114285737A (en) * 2020-09-18 2022-04-05 华为技术有限公司 Method and device for configuring equipment
CN114285737B (en) * 2020-09-18 2023-09-22 华为技术有限公司 Methods and equipment for configuring equipment
CN114615660A (en) * 2020-12-04 2022-06-10 华为技术有限公司 Access method, system and electronic device
CN112433480A (en) * 2020-12-23 2021-03-02 博流智能科技(南京)有限公司 Intelligent household system and control method and device thereof
CN114697438A (en) * 2020-12-29 2022-07-01 华为技术有限公司 A method and device for making a call using a smart device
CN114697438B (en) * 2020-12-29 2023-06-27 华为技术有限公司 Method, device, equipment and storage medium for carrying out call by utilizing intelligent equipment
CN115868151B (en) * 2021-07-02 2025-05-27 谷歌有限责任公司 System and method for remote control of devices
CN115868151A (en) * 2021-07-02 2023-03-28 谷歌有限责任公司 Virtual remote control of a second device, e.g. a TV, on a first device
US12342030B2 (en) 2021-07-02 2025-06-24 Google Llc Virtual remote control among digital assistant devices
CN113573254A (en) * 2021-07-16 2021-10-29 上海顺舟智能科技股份有限公司 Networking control method and device for smart home, control equipment and storage medium
CN113747544A (en) * 2021-09-23 2021-12-03 兰笺(苏州)科技有限公司 Distributed directional network access method and equipment for wireless communication network
CN114884760A (en) * 2022-03-24 2022-08-09 浙江猫精人工智能科技有限公司 Networking method, networking display interface and computer readable storage medium
WO2024001735A1 (en) * 2022-06-27 2024-01-04 华为技术有限公司 Network connection method, electronic device, and storage medium
WO2024093597A1 (en) * 2022-10-31 2024-05-10 华为技术有限公司 Method for configuring a plurality of devices, device, and system
WO2024125635A1 (en) * 2022-12-16 2024-06-20 华为技术有限公司 Device registration method
CN116382106A (en) * 2023-03-01 2023-07-04 青岛海尔科技有限公司 A control method, system, storage medium and device for smart home equipment

Also Published As

Publication number Publication date
CN110320811B (en) 2021-12-14
WO2020253695A1 (en) 2020-12-24

Similar Documents

Publication Publication Date Title
CN110320811B (en) An access method for a smart home device and an electronic device
CN112822663B (en) Bluetooth connection method and related device
WO2021036835A1 (en) Bluetooth search method and system, and related apparatus
US11825539B2 (en) Bluetooth connection method and electronic device
WO2021052178A1 (en) Wi-fi connection method and device
CN111491297B (en) A method and device for controlling the networking of smart home devices
CN114079892B (en) Bluetooth communication method, wearable device and system
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
WO2021043045A1 (en) Method and device for configuring network configuration information
CN112448964B (en) Device discovery method and P2P device
CN114339698A (en) Method for establishing wireless connection through equipment touch, electronic equipment and chip
CN113038627B (en) File sharing method, mobile device and computer storage medium
CN114895991A (en) Content sharing method and electronic equipment
CN114499587A (en) Audio synchronization communication method and system and electronic equipment
WO2021027623A1 (en) Device capability discovery method and p2p device
CN113438102B (en) Network configuration system, network configuration method, electronic device and routing device
CN115412387B (en) Audio playback method, system and electronic device
CN114827687B (en) Communication method, mobile device, electronic device, and computer-readable storage medium
CN114697438B (en) Method, device, equipment and storage medium for carrying out call by utilizing intelligent equipment
CN114285737B (en) Methods and equipment for configuring equipment
CN114449492B (en) Data transmission method and terminal equipment
EP4362507A1 (en) Communication system and communication method
WO2023051204A1 (en) Cross-device connection method, electronic device and storage medium
CN116974587A (en) Application deployment method, electronic device, storage medium and chip system
CN118368322A (en) Channel selection method and electronic equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20211214

CF01 Termination of patent right due to non-payment of annual fee