WO2020133467A1 - 智能家居设备接入网络的方法及相关设备 - Google Patents

智能家居设备接入网络的方法及相关设备 Download PDF

Info

Publication number
WO2020133467A1
WO2020133467A1 PCT/CN2018/125765 CN2018125765W WO2020133467A1 WO 2020133467 A1 WO2020133467 A1 WO 2020133467A1 CN 2018125765 W CN2018125765 W CN 2018125765W WO 2020133467 A1 WO2020133467 A1 WO 2020133467A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
smart home
channel
home device
electronic device
Prior art date
Application number
PCT/CN2018/125765
Other languages
English (en)
French (fr)
Inventor
赵朋
李龙
葛森贵
家建奎
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to JP2021538020A priority Critical patent/JP7234379B2/ja
Priority to US17/419,123 priority patent/US20220124607A1/en
Priority to EP18944472.2A priority patent/EP3883299A4/en
Priority to PCT/CN2018/125765 priority patent/WO2020133467A1/zh
Priority to CN201880094381.0A priority patent/CN112237031B/zh
Publication of WO2020133467A1 publication Critical patent/WO2020133467A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • This application relates to the field of smart home technology, in particular to a method and related equipment for connecting a smart home device to a network.
  • Smart home devices With the continuous development of the Internet of Things technology, smart home devices are becoming more and more popular, smart home systems are more and more widely used, and there are more and more smart home devices in users' homes. Smart home devices can be connected to the Internet through routers, and users can remotely control smart home devices through mobile phones. The wide application of smart home systems provides users with a more convenient and comfortable home life.
  • the smart home device will not be able to access the network.
  • the above problems can be solved by the following two solutions: 1. The user manually adjusts the working channel of the router so that the working channel of the router is within the channel range supported by the smart home device; 2. Restarts the router to make the router choose to work again channel.
  • the embodiments of the present application provide a method for a smart home device to access a network, which can enable the smart home device to quickly access the network.
  • an embodiment of the present application provides an electronic device, including: one or more processors, a memory, and a wireless communication module; the memory and the wireless communication module are coupled to the one or more processors, and the memory is used for
  • the computer program code includes computer instructions
  • the one or more processors execute the computer instructions to execute: determine a working channel of the router and a channel range supported by the router; determine a channel range supported by the smart home device; After determining that the working channel of the router does not belong to the channel range supported by the smart home device, send an instruction to switch the working channel to the router, so that the working channel after the router switch belongs to the channel range supported by the smart home device; wherein, The instruction to switch channels carries the channel range supported by the smart home device; the working channel after the router switches belongs to the channel range supported by the router; the Wi-Fi name and password of the router are sent to the smart home device to make the smart The home device connects to the above router through the Wi-Fi name and password of the above router.
  • the above wireless communication module may be a wireless fidelity (Wi-Fi) module.
  • Wi-Fi wireless fidelity
  • the electronic device can determine whether the working channel of the router is within the range of channels supported by the smart device, and if not, send an instruction to switch the working channel to the router so that the switched working channel is on the channel supported by the smart home device
  • the smart home device can be quickly connected to the network without affecting the user's use.
  • the working channel of the router and the channel range supported by the router include: receiving a beacon frame broadcast by the router; determining that the channel receiving the beacon frame is the working channel of the router; according to the beacon frame The country field or vendor specific field in determines the channel range supported by the router.
  • the transmission period of the beacon frame may be 100 ms, 200 ms, or the like.
  • the greater the beacon frame transmission cycle the longer the sleep cycle of the router 200 and the more energy-efficient it is.
  • the shorter the beacon frame transmission period the shorter the time it takes the device to find the router.
  • the country field of the beacon frame can carry at least information such as element ID, length, country code, first channel number, number of channels, and maximum transmission power.
  • the channel through which the electronic device receives the beacon frame is the working channel of the router.
  • the country code in the country field may indicate the channel range supported by the router.
  • the first channel number and the number of channels in the country field may indicate the range of channels supported by the router.
  • the above-mentioned determining the working channel of the router and the channel range supported by the above-mentioned router include: receiving a probe response frame sent by the above-mentioned router; determining that the channel receiving the above-mentioned probe response frame is the working channel of the above-mentioned router; according to the above The country field or vendor-specific field in the probe response frame determines the channel range supported by the router.
  • the above determination of the channel range supported by the smart home device includes: receiving a beacon frame broadcast by the smart home device; determining the supported by the smart home device according to the country field or vendor specific field in the beacon frame Channel range.
  • the above determination of the channel range supported by the smart home device includes: receiving a probe frame broadcast by the smart home device; determining the smart home device according to the country field or vendor specific field in the probe response frame Supported channel range.
  • the processor before sending the Wi-Fi name and password of the router to the smart home device, the processor is further configured to execute: connecting the smart home device.
  • the electronic device may be connected to the smart home device and send the Wi-Fi name and password of the router to the smart home device.
  • the sending the Wi-Fi name and password of the router to the smart home device includes: sequentially broadcasting the information of the Wi-Fi name and password of the router on each channel supported by the electronic device ; Wherein the above information carries the identification information of the above-mentioned smart home device, so that the above-mentioned smart home device polls and receives the above-mentioned information in turn within the channel range supported by it, and judges whether the above-mentioned identification information is correct, and if it is correct, from the above information Obtain the name and password of the above router.
  • the Wi-Fi name and password of the above router may be carried in a data frame, and the data frame may be one or more.
  • the electronic device can send the Wi-Fi name and password of the router to the smart home device without being connected to the smart home device.
  • the electronic device can always be connected to the router without affecting the data transmission between the electronic device and the router.
  • an embodiment of the present application provides a smart home system, including: an electronic device, a router, and a smart home device; wherein the electronic device is configured to determine an operating channel of the router and a channel range supported by the router; determine The range of channels supported by the smart home device; after determining that the working channel of the router does not belong to the channel range supported by the smart home device, sending an instruction to switch the working channel to the router; wherein the instruction to switch the working channel carries the smart home The channel range supported by the device; the router is configured to receive the instruction to switch the working channel and switch the working channel; wherein the switched working channel belongs to the channel range supported by the smart home device, and the switched working channel belongs to the router Supported channel range; the electronic device is also configured to send the Wi-Fi name and password of the router to the smart home device; the smart home device is configured to connect to the router through the Wi-Fi name and password of the router.
  • the electronic device can determine whether the working channel of the router is within the range of channels supported by the smart device, and if not, send an instruction to switch the working channel to the router so that the switched working channel is on the channel supported by the smart home device
  • the smart home device can be quickly connected to the network without affecting the user's use.
  • the electronic device is configured to determine the working channel of the router and the channel range supported by the router include: receiving beacon frames broadcast by the router; determining that the channel receiving the beacon frame is the work of the router Channel; determine the channel range supported by the router according to the country field or vendor specific field in the beacon frame.
  • the transmission period of the beacon frame may be 100 ms, 200 ms, or the like.
  • the greater the beacon frame transmission cycle the longer the sleep cycle of the router 200 and the more energy-efficient it is.
  • the shorter the beacon frame transmission period the shorter the time it takes the device to find the router.
  • the country field of the beacon frame can carry at least information such as element ID, length, country code, first channel number, number of channels, and maximum transmission power.
  • the channel through which the electronic device receives the beacon frame is the working channel of the router.
  • the country code in the country field may indicate the channel range supported by the router.
  • the first channel number and the number of channels in the country field may indicate the range of channels supported by the router.
  • the electronic device is configured to determine the working channel of the router and the channel range supported by the router include: receiving a probe response frame sent by the router; determining that the channel receiving the probe response frame is the router Working channel; determine the channel range supported by the router according to the country field or vendor specific field in the probe response frame.
  • the above-mentioned electronic device is configured to determine the channel range supported by the above-mentioned smart home device includes: receiving a beacon frame broadcast by the above-mentioned smart home device; determining the above according to a country field or a vendor-specific field in the above-mentioned beacon frame Channel range supported by smart home devices.
  • the above-mentioned electronic device is configured to determine the channel range supported by the above-mentioned smart home device includes: receiving a probe response frame broadcast by the above-mentioned smart home device; according to the country field or vendor-specific field in the above-mentioned probe response frame Determine the channel range supported by the above smart home device.
  • the electronic device before the electronic device is further configured to send the Wi-Fi name and password of the router to the smart home device, the electronic device is also used to connect to the smart home device.
  • the electronic device may be connected to the smart home device and send the Wi-Fi name and password of the router to the smart home device.
  • the electronic device is further configured to send the Wi-Fi name and password of the router to the smart home device includes: sequentially broadcasting the Wi-Fi of the router on each channel supported by the electronic device Fi name and password information; wherein, the above information carries the identification information of the above-mentioned smart home device, so that the above-mentioned smart home device polls and receives the above-mentioned information in turn within the channel range supported by it, and judges whether the above-mentioned identification information is correct, and if correct , Then obtain the name and password of the router from the above information.
  • the Wi-Fi name and password of the above router may be carried in a data frame, and the data frame may be one or more.
  • the electronic device can send the Wi-Fi name and password of the router to the smart home device without being connected to the smart home device.
  • the electronic device can always be connected to the router without affecting the data transmission between the electronic device and the router.
  • an embodiment of the present application provides a router, which is applied to a smart home system.
  • the smart home system includes the router, the electronic device, and the smart home device.
  • the router includes: one or more processors, memory, and wireless communication
  • the memory and the wireless communication module are coupled to the one or more processors.
  • the memory is used to store computer program code.
  • the computer program code includes computer instructions.
  • the one or more processors execute the computer instructions to execute:
  • the channel range supported by the router is broadcast on the working channel of the router; the instruction to switch the working channel sent by the electronic device is received; wherein the instruction to switch the working channel is the channel range supported by the smart home device; the instruction to switch the working channel An instruction sent after determining that the working channel of the router does not belong to the channel range supported by the smart home device for the electronic device; the router determines the channel whose signal-to-noise ratio is higher than the first threshold as the target working channel; wherein, the target working channel It belongs to the channel range supported by the smart home device, and the target working channel belongs to the channel range supported by the router; the router switches the working channel to the target working channel.
  • the above wireless communication module may be a Wi-Fi module.
  • the router provided by the embodiment of the present application can receive the instruction for switching the working channel sent by the electronic device, and switch the working channel to the channel range supported by the smart home device, so that the smart home device can quickly connect to the network without affecting user use.
  • an embodiment of the present application provides an electronic device, including: one or more processors, a memory, and a wireless communication module; the memory and the wireless communication module are coupled to the one or more processors, and the memory is used for
  • the computer program code includes computer instructions
  • the one or more processors execute the computer instructions to perform: determine the working channel of the router; determine the channel range supported by the smart home device; and determine the working channel of the router After it does not belong to the channel range supported by the smart home device, send an instruction to expand the channel range to the smart home device, so that the changed channel range of the smart home includes the working channel of the router; wherein the command to expand the channel range includes The working channel of the router; sending the Wi-Fi name and password of the router to the smart home device, so that the smart home device connects to the router through the Wi-Fi name and password of the router.
  • the above wireless communication module may be a Wi-Fi module.
  • the electronic device can determine whether the working channel of the router is within the channel range supported by the smart device, and if not, send an instruction to expand the channel range to the smart home device, so that the expanded channel range can include the work of the router Channel, so that smart home devices can quickly connect to the network without affecting users' use.
  • an embodiment of the present application provides a smart home device, which is applied to a smart home system.
  • the smart home system includes the router, the electronic device, and the smart home device.
  • the smart home device includes: one or more processors, A memory and a wireless communication module; the memory and the wireless communication module are coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors execute the computer instructions To execute: broadcast the channel range supported by the smart home device; receive an instruction to expand the channel range sent by the electronic device; wherein the instruction to expand the channel range carries the working channel of the router; the instruction to expand the channel range is the electronic device An instruction sent after determining that the working channel of the router does not belong to the channel range supported by the smart home device; expanding the channel range according to the working channel of the router; wherein the changed channel range includes the working channel of the router.
  • the above wireless communication module may be a Wi-Fi module.
  • the instruction for extending the channel range sent by the electronic device to the smart home device may carry the country code (such as CN) and channel range (such as channel 1 to channel 13) supported by the router.
  • the smart home device After receiving the instruction to expand the channel, the smart home device changes its country code to the country code supported by the router (such as CN), and changes the channel range supported by itself to the channel range supported by the router (such as channel 1-channel 13) .
  • the smart home device provided in the embodiment of the present application can receive the instruction of expanding the channel range sent by the electronic device, and expand the channel range supported by itself to a working channel that can include a router, so that the smart home device can quickly connect to the network without affecting the user's use .
  • an embodiment of the present application provides a method for a smart home device to access a network, which includes: determining a working channel of a router and a channel range supported by the router; determining a channel range supported by the smart home device; and determining After the working channel of the router does not belong to the channel range supported by the smart home device, an instruction to switch the working channel is sent to the router so that the working channel switched by the router belongs to the channel range supported by the smart home device; wherein, the above The channel switching instruction carries the channel range supported by the smart home device; sends the Wi-Fi name and password of the router to the smart home device, so that the smart home device connects to the router through the Wi-Fi name and password of the router.
  • the electronic device can determine whether the working channel of the router is within the range of channels supported by the smart device, and if not, send an instruction to switch the working channel to the router, so that the switched working channel is on the channel supported by the smart home device
  • the smart home device can be quickly connected to the network without affecting the user's use.
  • the working channel of the router and the channel range supported by the router include: receiving a beacon frame broadcast by the router; determining that the channel receiving the beacon frame is the working channel of the router; according to the beacon frame The country field or vendor specific field in determines the channel range supported by the router.
  • the transmission period of the beacon frame may be 100 ms, 200 ms, or the like.
  • the greater the beacon frame transmission cycle the longer the sleep cycle of the router 200 and the more energy-efficient it is.
  • the shorter the beacon frame transmission period the shorter the time it takes the device to find the router.
  • the country field of the beacon frame can carry at least information such as element ID, length, country code, first channel number, number of channels, and maximum transmission power.
  • the channel through which the electronic device receives the beacon frame is the working channel of the router.
  • the country code in the country field may indicate the channel range supported by the router.
  • the first channel number and the number of channels in the country field may indicate the range of channels supported by the router.
  • the above-mentioned determining the working channel of the router and the channel range supported by the above-mentioned router include: receiving a probe response frame sent by the above-mentioned router; determining that the channel receiving the above-mentioned probe response frame is the working channel of the above-mentioned router; according to the above The country field or vendor-specific field in the probe response frame determines the channel range supported by the router.
  • the above determination of the channel range supported by the smart home device includes: receiving a beacon frame broadcast by the smart home device; determining the supported by the smart home device according to the country field or vendor specific field in the beacon frame Channel range.
  • the above determination of the channel range supported by the smart home device includes: receiving a probe frame broadcast by the smart home device; determining the smart home device according to the country field or vendor specific field in the probe response frame Supported channel range.
  • the method before sending the Wi-Fi name and password of the router to the smart home device, the method further includes: connecting the smart home device.
  • the electronic device may be connected to the smart home device and send the Wi-Fi name and password of the router to the smart home device.
  • the sending the Wi-Fi name and password of the router to the smart home device includes: sequentially broadcasting the information of the Wi-Fi name and password of the router on each channel supported by the electronic device ; Wherein the above information carries the identification information of the above-mentioned smart home device, so that the above-mentioned smart home device polls and receives the above-mentioned information in turn within the channel range supported by it, and judges whether the above-mentioned identification information is correct, and if it is correct, from the above information Obtain the Wi-Fi name and password of the above router.
  • the Wi-Fi name and password of the above router may be carried in a data frame, and the data frame may be one or more.
  • the electronic device can send the Wi-Fi name and password of the router to the smart home device without being connected to the smart home device.
  • the electronic device can always be connected to the router without affecting the data transmission between the electronic device and the router.
  • an embodiment of the present application provides a computer storage medium, including computer instructions, which when executed on an electronic device, causes the electronic device to perform the sixth aspect or any one of the sixth aspects of the embodiments of the present application A method for connecting a smart home device to a network provided by a possible implementation manner.
  • an embodiment of the present application provides a computer program product which, when the computer program product runs on an electronic device, causes the electronic device to perform the sixth aspect of the embodiment of the present application or any one of the sixth aspects A method for connecting a smart home device to a network provided by an implementation.
  • the computer storage medium provided in the seventh aspect and the computer program product provided in the eighth aspect are both used to execute the method for the smart home device provided in the sixth aspect to access a network, and therefore, the benefits it can achieve For the effect, refer to the beneficial effect in the method for connecting a smart home device to a network provided in the sixth aspect, and details are not described herein again.
  • an embodiment of the present application provides a method for a smart home device to access a network, including: determining a working channel of a router; determining a channel range supported by the smart home device; and determining that the working channel of the router does not belong to the smart home
  • send an instruction to expand the channel range to the smart home device so that the changed channel range of the smart home includes the working channel of the router; wherein the instruction to expand the channel range includes the working channel of the router ; Send the Wi-Fi name and password of the router to the smart home device, so that the smart home device connects to the router through the Wi-Fi name and password of the router.
  • the electronic device can determine whether the working channel of the router is within the channel range supported by the smart device, and if not, send an instruction to expand the channel range to the smart home device, so that the expanded channel range can include the work of the router Channel, so that smart home devices can quickly connect to the network without affecting users' use.
  • the working channel of the router and the channel range supported by the router include: receiving a beacon frame broadcast by the router; determining that the channel receiving the beacon frame is the working channel of the router; according to the beacon frame The country field or vendor specific field in determines the channel range supported by the router.
  • the transmission period of the beacon frame may be 100 ms, 200 ms, or the like.
  • the greater the beacon frame transmission cycle the longer the sleep cycle of the router 200 and the more energy-efficient it is.
  • the shorter the beacon frame transmission period the shorter the time it takes the device to find the router.
  • the country field of the beacon frame can carry at least information such as element ID, length, country code, first channel number, number of channels, and maximum transmission power.
  • the channel through which the electronic device receives the beacon frame is the working channel of the router.
  • the country code in the country field may indicate the channel range supported by the router.
  • the first channel number and the number of channels in the country field may indicate the range of channels supported by the router.
  • the above-mentioned determining the working channel of the router and the channel range supported by the above-mentioned router include: receiving a probe response frame sent by the above router; determining that the channel receiving the above-mentioned probe response frame is the working channel of the above router; The country field or vendor-specific field in the probe response frame determines the channel range supported by the router.
  • the above determination of the channel range supported by the smart home device includes: receiving a beacon frame broadcast by the smart home device; determining the supported by the smart home device according to the country field or vendor specific field in the beacon frame Channel range.
  • the above determination of the channel range supported by the smart home device includes: receiving a probe frame broadcast by the smart home device; determining the smart home device according to the country field or vendor specific field in the probe response frame Supported channel range.
  • the method before sending the Wi-Fi name and password of the router to the smart home device, the method further includes: connecting the smart home device.
  • the electronic device may be connected to the smart home device and send the Wi-Fi name and password of the router to the smart home device.
  • the sending the Wi-Fi name and password of the router to the smart home device includes: sequentially broadcasting the information of the Wi-Fi name and password of the router on each channel supported by the electronic device ; Wherein the above information carries the identification information of the above-mentioned smart home device, so that the above-mentioned smart home device polls and receives the above-mentioned information in turn within the channel range supported by it, and judges whether the above-mentioned identification information is correct, and if it is correct, from the above information Obtain the Wi-Fi name and password of the above router.
  • the Wi-Fi name and password of the above router may be carried in a data frame, and the data frame may be one or more.
  • the electronic device can send the Wi-Fi name and password of the router to the smart home device without being connected to the smart home device.
  • the electronic device can always be connected to the router without affecting the data transmission between the electronic device and the router.
  • an embodiment of the present application provides a computer storage medium, including computer instructions, which, when the computer instructions run on an electronic device, cause the above electronic device to perform the ninth aspect or any one of the ninth aspects of the embodiments of the present application A method for connecting a smart home device to a network provided by a possible implementation manner.
  • an embodiment of the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to perform the ninth aspect or any one of the ninth aspects of the embodiment of the present application
  • the realization method provided by the smart home device access network method is provided by the smart home device access network method.
  • the computer storage medium provided in the tenth aspect described above and the computer program product provided in the eleventh aspect are both used to execute the method for the smart home device provided in the ninth aspect to access the network. Therefore, what it can achieve For beneficial effects, reference may be made to the beneficial effects in the method for connecting a smart home device to a network provided in the ninth aspect, and details are not described here.
  • FIG. 1 is a schematic diagram of a network architecture of a smart home system provided by an embodiment of this application;
  • FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 3 is a block diagram of a software structure of an electronic device provided by an embodiment of this application.
  • FIG. 10 is a schematic flowchart of a method for a smart home device to access a network according to an embodiment of the present application
  • FIG. 11 is a schematic diagram of a country field format involved in an embodiment of this application.
  • 12 is a schematic diagram of the correspondence between different countries and country codes, the first channel number, the number of channels, and the supported channel range in the 2.4GHz frequency band;
  • FIG. 13 is a schematic flowchart of another method for a smart home device to access a network according to an embodiment of the present application
  • FIG. 14 is a schematic flowchart of another method for a smart home device to access a network according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a network architecture of a smart home system provided by an embodiment of the present application.
  • the network architecture of the smart home system may include an electronic device 100, a router 200, a smart home device 300, and a cloud server 400.
  • the electronic device 100 can communicate with the router 200 to obtain the working channel of the router 200 and the supported channel range.
  • the working channel is a frequency band used by the router 200 to send data to the outside.
  • the channel range supported by the router 200 is determined by the country to which the router 200 is applicable, and the channel range supported by devices in different countries may be different. For example, there are 14 channels separated by 5MHz in the 2.4GHz frequency band (except that the 14th channel and the 13th channel are separated by 12MHz), each channel has a bandwidth of 20MHz, and the channels can be sequentially numbered as channel 1 to channel 14.
  • the channel range supported by the equipment applicable to China in the 2.4 GHz frequency band is channel 1 to channel 13.
  • the range of channels supported by US equipment in this band is channel 1 to channel 11. Since the frequency bands between channel 1, channel 6, and channel 13 do not overlap at all, there will be no signal interference with each other. Therefore, channel 1, channel 6, and channel 13 are more commonly used channels.
  • the electronic device 100 can also receive the information broadcast by the smart home device 300 to obtain the channel range supported by the smart home device 300.
  • the electronic device 100 may send the Wi-Fi name and password of the router 200 to the smart home device 300.
  • the electronic device 100 can determine whether the working channel of the router 200 belongs to the channel range supported by the smart home device 300. If not, the electronic device 100 can notify the router 200 to switch the working channel so that the working channel of the router 200 belongs to the channel range supported by the smart home device 300 Therefore, the smart home device 300 can be connected to the router 200 and connected to the cloud server 400 through the router 200.
  • the electronic device 100 can send control instructions to the smart home device 300 through the cloud server 400.
  • the electronic device 100 may be installed with application software (application software, APP) for controlling the smart home device, and the APP may be a smart home APP, for example.
  • the cloud server 400 may be an application server corresponding to the application software, and the cloud server 400 may be, for example, an application server of a smart home APP.
  • the electronic device 100 involved in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop type, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant ( personal digital assistant (PDA), wearable electronic devices, virtual reality devices, etc.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • the smart home device 300 involved in the embodiments of the present application may be a smart speaker, a sweeping robot, a smart socket, a smart electric lamp, a smart body fat scale, a smart table lamp, an air purifier, a smart refrigerator, a smart air conditioner, a smart washing machine, a smart water heater, a smart Microwave oven, smart rice cooker, smart curtain, smart fan, smart TV, smart set-top box, etc.
  • the above system can also be applied to vehicle-mounted devices, wearable electronic devices, etc., so that devices such as vehicle-mounted devices or wearable electronic devices can be smoothly connected to the router, which is not limited in the embodiments of the present application.
  • FIG. 2 shows a schematic structural diagram of the electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, key 190, motor 191, indicator 192, camera 193, display 194, and Subscriber identification module (SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), and an image signal processor. (image)signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • the different processing units may be independent devices or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate the operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetch and execution.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. The repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • Interfaces can include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit, sound, I2S) interface, pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver (universal) asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /Or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100.
  • the electronic device 100 may also use different interface connection methods in the foregoing embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the 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.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive the electromagnetic wave from the antenna 1 and filter, amplify, etc. the received electromagnetic wave, and transmit it to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it to electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110, and may be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites that are applied to the electronic device 100 Wireless communication solutions such as global navigation (satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR), etc.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives the electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110.
  • the wireless communication module 160 can also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it to electromagnetic waves through the antenna 2 to radiate it out.
  • the wireless communication module 160 may be a Wi-Fi module.
  • the electronic device 100 can search for the beacon frame broadcast by the router 200 through the Wi-Fi module, and can establish a connection with the router 200 after searching for the beacon frame broadcast by the router 200.
  • the electronic device 100 can also search for a beacon frame broadcast by the smart home device 300 through the Wi-Fi module, and can also establish a connection with the smart home device 300 after searching for the smart home device 300 beacon frame.
  • the antenna 1 of the electronic device 100 and the mobile communication module 150 are coupled, and the antenna 2 and the wireless communication module 160 are coupled so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include a global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband 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 (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite-based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS beidou navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation system
  • the electronic device 100 realizes a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active matrix organic light-emitting diode (active-matrix organic light-emitting diode) emitting diode, AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP processes the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also optimize the algorithm of 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 set in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical 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 format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the electronic device 100 is selected at a frequency point, the digital signal processor is used to perform Fourier transform on the energy at the frequency point.
  • the video codec is used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent recognition of the electronic device 100, such as image recognition, face recognition, voice recognition, and text understanding.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.).
  • the storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100 and the like.
  • the internal memory 121 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, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also known as "handset" is used to convert audio electrical signals into sound signals.
  • the voice can be received by bringing the receiver 170B close to the ear.
  • the microphone 170C also known as “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the headset interface 170D is used to connect wired headsets.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile electronic device (open mobile terminal) platform (OMTP) standard interface, and the American Telecommunications Industry Association (cellular telecommunications industry association of the United States, CTIA) standard interface.
  • OMTP open mobile electronic device
  • CTIA American Telecommunications Industry Association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may be a parallel plate including at least two conductive materials. When force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the strength of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of electronic devices, and can be used in horizontal and vertical screen switching, pedometer and other applications.
  • the distance sensor 180F is used to measure the distance.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • LED light emitting diode
  • a light detector such as a photodiode.
  • the ambient light sensor 180L is used to sense the brightness of ambient light.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to application lock, fingerprint photo taking, fingerprint answering call, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 constitute a touch screen, also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive a blood pressure beating signal.
  • the bone conduction sensor 180M may also be provided in the earphone and combined into a bone conduction earphone.
  • the audio module 170 may parse out the voice signal based on the vibration signal of the vibrating bone block of the voice part acquired by the bone conduction sensor 180M to realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
  • the key 190 includes a power-on key, a volume key, and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 may generate a vibration prompt.
  • the motor 191 can be used for vibration notification of incoming calls and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the amount of power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through a SIM card to realize functions such as call and data communication.
  • the electronic device 100 uses eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, event-driven architecture, micro-core architecture, micro-service architecture, or cloud architecture.
  • the embodiment of the present invention takes the Android system with a layered architecture as an example to exemplarily explain the software structure of the electronic device 100.
  • FIG. 3 is a software block diagram of the electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor.
  • the layers communicate with each other through a software interface.
  • the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer.
  • the application layer may include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application framework layer provides an application programming interface (application programming interface) and programming framework for applications at the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, intercept the screen, etc.
  • Content providers are used to store and retrieve data, and make these data accessible to applications.
  • the data may include videos, pictures, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text and controls for displaying pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including an SMS notification icon may include a view to display text and a view to display pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connection, hang up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction.
  • Android Runtime includes core library and virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one part is the function function that Java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in the virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer into binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library may include multiple functional modules. For example: surface manager (surface manager), media library (Media library), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • surface manager surface manager
  • media library Media library
  • 3D graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports a variety of commonly used audio, video format playback and recording, and still picture files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
  • the following describes the workflow of the software and hardware of the electronic device 100 in combination with the usage scene of capturing a photograph.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps and other information of touch operations).
  • the original input event is stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, for example, the control corresponding to the click operation is a camera application icon.
  • the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures a still image or video.
  • FIG. 4 exemplarily shows a user interface for an application menu on the electronic device 100.
  • the user interface 40 in FIG. 4 may include a status bar 401, a time component icon 402 and a weather component icon 403, icons of multiple applications such as a camera icon, WeChat icon, settings icon 404, album icon, Weibo icon, and smart home icon 405
  • the user interface 40 may also include a page indicator 406, a phone icon 407, a short message icon 408 and a contact icon 409, a navigation bar 410, and the like. among them:
  • the status bar 402 may include: an operator indicator (for example, the operator's name "China Mobile"), one or more signal strength indicators of a wireless fidelity (Wi-Fi) signal, and a mobile communication signal (also available) One or more signal strength indicators and battery status indicators (called cellular signals).
  • an operator indicator for example, the operator's name "China Mobile”
  • Wi-Fi wireless fidelity
  • a mobile communication signal also available
  • One or more signal strength indicators and battery status indicators called cellular signals.
  • the time component icon 402 can be used to indicate the current time, such as date, day of the week, hour and minute information, and so on.
  • the weather component icon 403 can be used to indicate weather types, such as cloudy to sunny, light rain, etc., and can also be used to indicate information such as air temperature.
  • the page indicator 406 may be used to indicate which page of the application the user is currently browsing. Users can slide the area of multiple application icons left and right to browse the application icons in other pages.
  • the navigation bar 410 may include: a return button 411, a home screen button 412, an outgoing task history button 413, and other system navigation keys.
  • the main interface is an interface displayed by the electronic device 100 after any user interface detects a user operation acting on the key 412 of the main interface.
  • the electronic device 100 may display the previous user interface of the current user interface.
  • the electronic device 100 may display the main interface.
  • the electronic device 100 may display the task recently opened by the user.
  • the naming of each navigation key can also be other.
  • Each navigation key in the navigation bar 410 is not limited to a virtual key, but can also be implemented as a physical key.
  • FIG. 4 only exemplarily shows the user interface on the electronic device 100, and should not constitute a limitation on the embodiments of the present application.
  • the electronic device 100 may detect a user operation (such as a click operation on the setting icon 404) acting on the setting icon 404, and in response to the operation, the electronic device 100 may display the user interface 50 for setting system parameters shown in FIG. .
  • the system parameters can be, for example, the status of the airplane mode (on or off), the status of the wireless local area network (wireless LAN, WLAN) (on or off), the status of Bluetooth (on or off), the status of the personal hotspot (on or off) ), the state of the mobile network (on or off), the state of Do Not Disturb mode (on or off), the size of the display and brightness, the size of the sound, etc.
  • the user interface 50 may include setting entries for various system parameters, such as a WLAN setting entry 501.
  • the electronic device 100 may detect a user operation acting on the WLAN setting portal 501 (such as a click operation on the WLAN setting portal 501), and in response to the operation, the electronic device 100 may display the user interface 60 involved in the embodiment of FIG. 6. That is to say, the user can click the WLAN setting entry 501 to open the user interface for setting the WLAN.
  • a user operation acting on the WLAN setting portal 501 such as a click operation on the WLAN setting portal 501
  • UI user interface
  • FIG. 6 exemplarily shows a user interface 60 for setting up a WLAN.
  • the user interface 60 may include: a switch control 601 and an available WLAN list 602; wherein:
  • the switch control 601 is used to turn on or turn off the WLAN.
  • the electronic device 100 may detect the right slide operation on the switch control 601, and in response to the right slide operation, the electronic device 100 may turn on the WLAN and search for an accessible device within the channel range supported by the electronic device 100.
  • the available WLAN list 602 is used to display the accessible devices in the access point (AP) mode searched by the electronic device 100, and the signal strength of the devices.
  • Devices in AP mode broadcast beacon frames on their working channels, waiting for devices to access.
  • AP refers to the wireless access point, is the creator of a wireless network, is the central node of the network.
  • Devices working in AP mode can provide wireless access services, allowing other wireless devices to access and provide data access.
  • the device in AP mode can be a router or a smart home device.
  • smart home devices can be, but are not limited to, smart speakers, sweeping robots, smart sockets, smart lights, smart body fat scales, smart table lamps, air purifiers, smart refrigerators, smart air conditioners, smart washing machines, smart water heaters, smart microwave ovens, Smart rice cooker, smart curtain, smart fan, smart TV, smart set-top box, etc.
  • the available WLAN list 602 may include options of accessible devices for accessing devices. For example, the option 6021 of the router 001, the option 6022 of the smart home device Huawei AI speaker, etc.
  • the electronic device 100 may detect a user operation (such as a click operation on the option) acting on an option, and in response to the user operation, the electronic device 100 may initiate an access request to the device corresponding to the option.
  • the following describes how the electronic device 100 connects to the router 200 in two different situations. Taking the router 200 with a Wi-Fi name of 001 as an example for description.
  • the first case If the electronic device 100 has never been connected to the router 200 with the Wi-Fi name 001, the electronic device 100 can detect a user operation (such as a click operation on the option 6021) acting on the option 6021, and respond to the The user can operate the electronic device 100 to remind the user to enter a password. When it is detected that the user enters the password, the electronic device 100 can send the password to the router 200 with the Wi-Fi name 001, and the router 200 with the Wi-Fi name 001 can compare the password sent by the electronic device 100 with the pre-stored password If they match, the router 200 with the Wi-Fi name 001 establishes a connection with the electronic device 100.
  • a user operation such as a click operation on the option 6021 acting on the option 6021
  • the electronic device 100 can save the identification information and password of the router 200 with the Wi-Fi name 001 to the internal memory 121.
  • the identification information of the router may be a media access control address (MAC) address or Wi-Fi name (SSID) of the router.
  • the MAC address or Wi-Fi name of the router can be carried in the beacon frame broadcast by the router.
  • the electronic device 100 obtains the router’s frame according to the beacon frame after detecting the beacon frame broadcast by the router 200 with the Wi-Fi name 001 According to the identification information, the password of the router is found from the internal memory 121 according to the identification information, and the password is sent to the router and connected to the router.
  • the electronic device 100 sends the Wi-Fi name and password of the router to the smart home device 300.
  • the router 200 Take the router 200 with the Wi-Fi name of 001 and the smart home device as the Huawei AI speaker for example.
  • the electronic device 100 when the electronic device 100 is connected to the router 200, if the electronic device 100 detects a user operation acting on the option 6022 (such as a click operation on the option 6022), the electronic device 100 may change The Wi-Fi name and password of the router 200 are sent to the Huawei AI speaker.
  • a user operation acting on the option 6022 such as a click operation on the option 6022
  • the electronic device 100 is not connected to any router. If the electronic device 100 detects a user operation acting on the option 6022 (such as a click operation on the option 6022), the electronic device 100 may display the user interface 70 for connecting to the router 200 shown in FIG. 7. Specifically, the user interface 70 may include a Wi-Fi option 701, a password input field 702, and a connection control 703. among them:
  • the Wi-Fi option 701 can be used to select the target router.
  • the Wi-Fi option 701 can display the name of the router that the electronic device 100 has recently connected to.
  • the user can also use a drop-down control 7011 to view the names of other connectable routers, click the corresponding name to select Set the target router.
  • the Wi-Fi option 701 does not display the name of the router. The user can check the name of the connectable router through the drop-down control 7011, and click the corresponding name to select the target router.
  • the password input field 702 can be used to input the Wi-Fi password of the router.
  • the electronic device 100 may detect a user operation (such as a click operation on the password input field 702) acting on the password input field 702.
  • a user operation such as a click operation on the password input field 702
  • the electronic device 100 may The keyboard for entering the password is displayed, and the password input by the user is received.
  • the connection control 703 is used to connect to the router.
  • the electronic device 100 may detect a user operation (such as a click operation on the connection control 703) acting on the connection control 703, and in response to the operation, the electronic device 100 may change the name of the router selected in the Wi-Fi option 701 and the user
  • the password entered in the password input field 702 is sent to the Huawei AI speaker.
  • the above embodiment describes how the electronic device 100 sends the Wi-Fi name and password of the router to the smart home device after detecting the user operation acting on the setting icon 404.
  • the electronic device 100 may also send the Wi-Fi name and password of the router to the smart home device after detecting a user operation acting on the smart home icon 405.
  • the electronic device 100 may detect a user operation acting on the smart home icon 405 (such as a click operation on the smart home icon 405), and in response to the operation, the electronic device 100 may display the user interface 80 shown in FIG. 8.
  • the user interface 80 may include at least an add device control 801.
  • the electronic device 100 can detect a user operation (such as a click operation on the add device control 801) acting on the add device control 801, and in response to the operation, the electronic device 100 can search for addable devices within the range of channels supported by it And display a list of devices that can be added in the user interface 90 shown in FIG. 9.
  • a user operation such as a click operation on the add device control 801 acting on the add device control 801
  • the user interface 90 may include options of devices that can be added, such as the option 901 of the Huawei AI speaker and the option of the Huawei air purifier.
  • the electronic device 100 may detect a user operation acting on an option (such as a click operation on the option 901), and in response to the user operation, the electronic device 100 may display the user interface 70 shown in FIG. 7 for connecting to the router.
  • the electronic device 100 may send the name of the router selected in the Wi-Fi option 701 and the password entered by the user in the password input field 702 to the Huawei AI speaker based on the user interface 70.
  • For the specific sending process reference may be made to the related description in the embodiment of FIG. 7, and details are not described here.
  • the electronic device 100 when the electronic device 100 has been connected to the router 200 with a Wi-Fi name of 001, the electronic device 100 can directly detect the click operation on the option 901 acting on the Huawei AI speaker. Send the Wi-Fi name and password of the router 200 to the Huawei AI speaker.
  • the electronic device 100 when the electronic device 100 has been connected to the router 200 with the Wi-Fi name 001, when the electronic device 100 detects the click operation on the option 901 acting on the Huawei AI speaker, it may The password is displayed directly in the password input field 702 of the user interface 70. The user only needs to click the connection control 703 to send the Wi-Fi name and password of the router 200 to the Huawei AI speaker.
  • Huawei AI speakers that have received the Wi-Fi name and password can switch the working mode from AP mode to station (STA) mode.
  • STA site that is, every device connected to the wireless network (such as notebook computers, PDAs, and other smart home devices that can be networked) can be called a site. Devices operating in STA mode do not receive wireless access and can connect to the AP.
  • the Huawei AI speaker searches for a router with the same name as the received Wi-Fi within its supported channel range, and then sends the password to the router. After the router confirms that the password is correct, it establishes a connection with the Huawei AI speaker. Into the network.
  • the manner in which the electronic device 100 is connected to the router 200 may be any of the foregoing two ways.
  • the electronic device 100 may also send the MAC address (BSSID) of the router 200 to the smart home device 300.
  • BSSID MAC address
  • the method for the smart home device to access the network may include at least the following steps:
  • S101 The electronic device determines the working channel of the router and the channel range supported by the router.
  • S102 The electronic device determines the channel range supported by the smart home device.
  • S103 The electronic device determines whether the working channel of the router is within the channel range supported by the smart home device; if yes, execute S106; if not, execute S104.
  • S104 The electronic device sends an instruction to switch the working channel to the router.
  • S106 The electronic device sends the Wi-Fi name and password of the router to the smart home device.
  • the electronic device 100 determines the working channel of the router 200 and the channel range supported by the router 200 in the following ways:
  • the electronic device 100 may determine the working channel of the router 200 and the channel range supported by the router 200 through beacon frames broadcast by the router 200.
  • the router 200 works in the AP mode, and broadcasts beacon frames to surrounding devices at a certain period on its working channel X.
  • the period of beacon frame transmission may be, for example, 100 milliseconds, 200 milliseconds, or the like.
  • the greater the beacon frame transmission cycle the longer the sleep cycle of the router 200 and the more energy-efficient it is.
  • the shorter the beacon frame transmission period the shorter the time it takes the device to find the router.
  • the electronic device 100 may poll within the channel range supported by the electronic device 100, and receive the beacon frame broadcast by the router 200 on the channel X.
  • the electronic device 100 may determine that the channel X receiving the beacon frame is the working channel of the router 200.
  • the manner in which the electronic device 100 turns on the WLAN can be seen in the description of the embodiment in FIG. 6.
  • the channel range supported by the electronic device 100 is channel 1 to channel 13.
  • the electronic device 100 may start from channel 1 and sequentially scan each channel for beacon frames broadcast by the router 200 until it receives the broadcast of the router 200 on channel X (X may be 12 or 13, for example).
  • X may be 12 or 13, for example.
  • the beacon frame it can be determined that the channel X is the working channel of the router 200.
  • the process of the electronic device 100 sequentially scanning each channel for beacon frames broadcast by the router 200 may be called polling.
  • the electronic device 100 may determine the channel range supported by the router 200 through the country field of the beacon frame.
  • the country field can carry at least element ID (elementID), length (length), country code (country) string, first channel number (first channel number), channel number (number of channels) and maximum transmit power (maximum transmit power) and other information . among them:
  • the element ID is the identifier of the country field.
  • the electronic device 100 can determine whether the field is a country field according to the element ID. Generally, the element ID of the country field is 7.
  • the length indicates the number of bytes in the content of the country field (excluding the length occupied by elementID and length).
  • the country code is used to indicate the country where the device is applicable. Different countries correspond to different available channels; the first channel number is used to indicate the number of the first channel supported by the device; the number of channels is used to indicate the channel supported by the device Quantity; the maximum transmit power is used to indicate the maximum power of the device when transmitting signals. Different countries correspond to different usable frequency bands, including the number of the first channel and the number of supported channels. Different countries also correspond to different maximum transmit powers. From the number of the first channel and the number of supported channels, the range of channels supported by the device can be known.
  • FIG. 12 exemplarily shows the correspondence between different countries and country codes, the first channel number, the number of channels, and the supported channel ranges in the 2.4 GHz frequency band.
  • the router 200 involved in the embodiment of the present application is a router suitable for China
  • the smart home device 300 involved in the embodiment of the present application is a smart home device suitable for the United States.
  • the router 200 suitable for China can work on any one of channels 1 to 13, and the channel range supported by the smart home device 300 suitable for the United States is [1,11].
  • the router 200 works on the 12 channel or 13 channel, the smart home device 300 will not be able to connect to the router 200.
  • the electronic device 100 may determine the channel range supported by the router 200 according to the country code in the country field. For example, if the country code is CN, the channel range supported by the router can be determined to be [1,13]; if the country code is US, the channel range supported by the router can be determined to be [1,11]; if the country code is JP, it can be determined that the channel range supported by the router is [1,14]; if the country code is IL, it can be determined that the channel range supported by the router is [3,9].
  • the electronic device 100 may also determine the channel range supported by the router 200 according to the first channel number and the number of channels. For example, if the first channel number is 1 and the number of channels is 13, the channel range supported by the router can be determined to be [1,13]; if the first channel number is 3 and the number of channels is 7, the router 200 can be determined The supported channel range is [3,9].
  • the electronic device 100 may determine the working channel of the router 200 and the channel range supported by the router through the probe response frame sent by the router 200.
  • the electronic device 100 may sequentially broadcast a probe request frame on each channel it supports. After receiving the probe request frame on channel X, router 200 may send a probe response frame to electronic device 100 on channel X. The electronic device 100 can poll within the channel range supported by it until it receives the probe response frame sent by the router 200 on the channel X. The electronic device 100 may determine that the channel X receiving the probe response frame is the working channel of the router 200.
  • the manner in which the electronic device 100 turns on the WLAN can be seen in the description of the embodiment in FIG. 6.
  • the electronic device 100 may determine the channel range supported by the router 200 through the country field of the probe response frame.
  • the format of the country field of the probe response frame is similar to the format of the country field of the aforementioned beacon frame, and is not repeated here.
  • the electronic device 100 can also determine the channel range supported by the router 200 through the vendor-specific field in the beacon frame or probe response frame.
  • the vendor specific field may include at least a country code, or the vendor specific field may include a first channel number and channel number, or the vendor specific field may include a country code, first channel number and channel number.
  • the format of the vendor specific field can be defined by the vendor.
  • the electronic device 100 After receiving the beacon frame or probe response frame sent by the router 200 on the channel X, the electronic device 100 may be connected to the router 200.
  • the connection between the electronic device 100 and the router 200 can be divided into two different situations. The connection method in each case can be seen in the description of the foregoing embodiment, which is not repeated here.
  • the electronic device 100 may determine the channel range supported by the smart home device 300 through the beacon broadcast by the smart home device 300.
  • the current working mode of the smart home device 300 is the AP mode
  • a beacon frame is broadcast to the surrounding devices at a certain period on the channel Y.
  • the transmission cycle of the beacon frame is similar to the transmission cycle of the router 200 to broadcast the beacon frame, which will not be repeated here.
  • the following introduces how to receive beacons broadcast by smart home devices in two cases.
  • Case 1 If the electronic device 100 has been connected to the router 200, the electronic device 100 can scan each channel in turn at a certain time interval, and return to channel X every time a channel is scanned, until the smart home device 300 is scanned on channel Y Beacon frame sent. It is ensured that the data transmission between the electronic device 100 and the router 200 is not affected when the smart home device 300 is scanned.
  • the above time interval may be, for example, 100 milliseconds, 200 milliseconds, or the like.
  • Case 2 If the electronic device 100 is not connected to the router 200, the electronic device 100 can poll within the channel range supported by it until the beacon frame broadcast by the smart home device 300 is received on the channel Y.
  • the electronic device 100 may also receive a user input instruction to add a device.
  • the user can input an instruction to add a device by clicking the add device control 801 in the embodiment of FIG. 8.
  • the electronic device 100 may determine the channel range supported by the smart home device 300 through the country field of the beacon frame.
  • the format of the Country field can be seen in the relevant description of the embodiment of FIG. 11 and will not be repeated here.
  • the electronic device 100 may also determine the channel range supported by the smart home device 300 through the probe response frame.
  • the process of determining the channel range supported by the smart home device 300 through the probe response frame is similar to the process of determining the channel range supported by the router 200 through the probe response frame in the foregoing embodiment, and details are not described here.
  • the electronic device 100 may also determine the channel range supported by the smart home device 300 through the vendor-specific field in the beacon frame or probe response frame.
  • the process of determining the channel range supported by the smart home device 300 through the vendor-specific field is similar to the process of determining the channel range supported by the router 200 through the vendor-specific field in the foregoing embodiment, and details are not described here.
  • the electronic device 100 may send the router 200 an instruction to switch the working channel.
  • the instruction to switch the working channel may carry the channel range supported by the smart home device 300.
  • the electronic device 100 may send the router 200 an instruction to switch the working channel and carry the smart home device 300 information about the supported channel range.
  • the router 200 can select a channel with a better channel quality as a new working channel within the channel range supported by the smart home device 300 and the channel range supported by the router 200 itself, for example, channel M.
  • the channel quality can be measured by the signal-to-noise ratio. The greater the signal-to-noise ratio, the better the channel quality.
  • the router 200 can record the channel range supported by the smart home device 300 to ensure that the working channel selected by the router 200 after the next restart is within the channel range supported by the smart home device 200, so that the smart home device 300 can quickly access the network.
  • the electronic device 100 may be connected to the smart home device 300 and send the Wi-Fi name and password of the router 200 to the smart home device 300 on the channel Y.
  • the way in which the electronic device 100 is connected to the smart home device 300 may be that the user clicks the option 6022 in the embodiment of FIG. 6.
  • the way in which the electronic device 100 is connected to the smart home device 300 may also be that the user clicks the option 901 in the embodiment of FIG. 9.
  • the electronic device 100 is not connected to the smart home device 300, and the electronic device 100 may sequentially broadcast data frames carrying the Wi-Fi name and password of the router 200 on each channel it supports.
  • the smart home device 300 may poll in turn on each channel it supports until the Wi-Fi name and password of the router 200 broadcast by the electronic device 100 are received on a certain channel.
  • the data frame broadcast by the electronic device 100 may also carry identification information of the smart home device 300.
  • the identification information may be, for example, a MAC address or a hotspot name when the smart home device 300 works in the AP mode.
  • the identification information may be carried in a beacon frame broadcast by the smart home device 300.
  • the smart home device 300 After receiving the data broadcast by the electronic device 100, the smart home device 300 can determine whether the identification information carried in the data frame is consistent with its own identification information, and if they are consistent, obtain the Wi-Fi name and password of the router 200 carried in the data frame . It can be seen that the data frame carrying the Wi-Fi name and password of the router 200 may be multiple frames.
  • the electronic device 100 can send the Wi-Fi name and password of the router 200 to the smart device through near field communication (NFC), Bluetooth, Wi-Fi direct connection, etc. Household equipment 300.
  • NFC near field communication
  • Bluetooth Wi-Fi direct connection
  • the smart home device 300 After receiving the Wi-Fi name and password of the router 200, the smart home device 300 switches the working mode from the AP mode to the STA mode, and polls within the channel range supported by the smart home device 300 to search for the Wi-Fi with the router 200. Router 200 with the same Fi name.
  • the smart home device 300 may receive the beacon frame sent by the router 200 having the same Wi-Fi name on the channel M. Then the password is sent to the router 200 on the channel M.
  • the router 200 can verify whether the password sent by the smart home device 300 is correct. If the password is correct, the smart home device 300 and the router 200 are successfully connected.
  • the above S106 may be implemented before S103-S105. If the electronic device 100 determines that the working channel of the router 200 is within the channel range supported by the smart home device 300, the smart home device 300 may be directly connected The router 200 is connected to the network. If the current working channel of the router 200 does not belong to the channel range supported by the smart home device 300, after receiving the name and password of the router 200 sent by the electronic device 100, the smart home device 300 will not be able to poll within the channel range supported by the smart home device 300 The router 200 having the same Wi-Fi name as the router 200 is searched until the router 200 switches the working channel to the channel range supported by the smart home device 300.
  • the electronic device 100 can determine whether the working channel of the router 200 is within the channel range supported by the smart device 300, and if not, send an instruction to switch the working channel to the router 200 to make the switched working channel intelligent.
  • the range of channels supported by the home device 300 enables the smart home device 300 to quickly connect to the network without affecting the user's use.
  • the embodiment of FIG. 1 of the present application provides a smart home system.
  • the electronic device 100 in the smart home system may be used to perform all or part of the steps performed by the electronic device 100 in the embodiment of FIG. 10.
  • the router 200 in the smart home system It can be used to perform all or part of the steps performed by the router 200 in the embodiment of FIG. 10, and the smart home device 300 in the smart home system can be used to perform all or part of the steps performed by the smart home device 300 in the embodiment of FIG. 10.
  • the embodiments of the present application provide a specific method for a smart home device to access a network.
  • the method for the smart home device to access the network may include at least the following steps:
  • S201 The router broadcasts beacon frames.
  • the router 200 may broadcast beacon frames on the channel X at a certain period.
  • S202 The electronic device determines the current working channel of the router and the channel range supported by the router.
  • the electronic device 100 may poll within the channel range supported by it, and receive the beacon frame broadcast by the router 200 on the channel X.
  • the electronic device 100 may determine that the channel receiving the beacon frame is the working channel of the router 200.
  • the channel range supported by the router 200 is determined according to the country field of the beacon frame.
  • S203 The electronic device is connected to the router.
  • the electronic device 100 has been connected to the router 200, and the electronic device 100 can automatically connect to the router 200 after receiving the beacon frame broadcast by the router 200 on the channel X.
  • the electronic device 100 has never been connected to the router 200, and the user needs to input a correct password to connect to the router 200. Possibly, the electronic device 100 may not be connected to the router 200.
  • S204 The smart home device broadcasts beacon frames.
  • the smart home device 300 works in the AP mode and broadcasts beacon frames on the channel Y at a certain period.
  • S205 The electronic device determines the channel range supported by the smart home device.
  • the electronic device 100 may sequentially scan each channel at a certain time interval, and each scan The channel returns to channel X and connects with the router 200 until the beacon frame sent by the smart home device 300 is scanned on the channel Y.
  • S206 The electronic device determines whether the current working channel of the router belongs to the channel range supported by the smart home device, and if so, executes S209; if not, executes S207.
  • S207 The electronic device sends an instruction to switch the working channel to the router.
  • the instruction to switch the working channel may carry the channel range supported by the smart home device 300.
  • the router 200 can select a channel with a better channel quality as a new working channel according to the channel range supported by itself and the channel range supported by the smart home device 300, for example, channel M.
  • a beacon frame is broadcast on the channel M to surrounding devices at a certain period, waiting for the device to access.
  • S209 The electronic device is connected to the smart home device and sends the Wi-Fi name and password of the router.
  • the electronic device 100 disconnects from the router 200 and connects with the smart home device 300.
  • the way in which the electronic device 100 is connected to the smart home device 300 may be that the user clicks the option 6022 in the embodiment of FIG. 6. Or the user clicks the option 901 in the embodiment of FIG. 9.
  • the electronic device 100 is not connected to the router 200.
  • the electronic device 100 sends the Wi-Fi name and password of the router to the smart home device 300, it can be directly selected in the user interface 70 shown in FIG. 7 Target router and enter the password of the router.
  • the electronic device 100 may not be connected to the smart home device 200, and the electronic device 100 may send the Wi-Fi name and password of the router 200 to the smart home device 300 in a multicast or broadcast manner.
  • the specific sending process can be seen in the related description of how the electronic device described in the foregoing embodiment sends the Wi-Fi name and password of the router to the smart home device, which will not be repeated here.
  • S210 The smart home device switches the working mode from the AP mode to the STA mode.
  • the smart home device 300 switches the working mode from the AP mode to the STA mode, polls within the channel range supported by the smart home device 300, and searches for the received Wi-Fi -Routers with the same Fi name.
  • S211 The smart home device is connected to the router.
  • the smart home device 300 may receive a beacon frame broadcast by the router 200 on the channel M, and the beacon frame may carry the Wi-Fi name (SSID) of the router 200. After finding the router 200, the smart home device 300 sends a password to the router 200 on the channel M. The router 200 can determine whether the password sent by the smart home device 300 is correct. If the password is correct, the smart home device 300 is allowed to access. At this time, the smart home device 300 is successfully connected to the router 200, and the smart home device 300 is successfully connected to the network.
  • SSID Wi-Fi name
  • the embodiment of FIG. 1 of the present application provides a smart home system.
  • the electronic device 100 in the smart home system can be used to perform all or part of the steps performed by the electronic device 100 in the embodiment of FIG. 11.
  • the router 200 in the smart home system It can be used to perform all or part of the steps performed by the router 200 in the embodiment of FIG. 11, and the smart home device 300 in the smart home system can be used to perform all or part of the steps performed by the smart home device 300 in the embodiment of FIG. 11.
  • the electronic device 100 may also send an instruction to expand the channel range to the smart home device 300.
  • the method for the smart home device to access the network may include at least the following steps:
  • S301 The electronic device determines the working channel of the router.
  • S302 The electronic device determines the channel range supported by the smart home device.
  • S303 The electronic device determines whether the working channel of the router is within the channel range supported by the smart home device; if it is, execute S306; if not, execute S304.
  • S304 The electronic device sends an instruction to expand the channel range to the smart home device.
  • S305 The smart home device expands the channel range.
  • S306 The electronic device sends the Wi-Fi name and password of the router to the smart home device.
  • S307 The smart home device is connected to the router.
  • the implementation manner of the electronic device 100 determining the working channel of the router 200 is consistent with the implementation manner described in the embodiment of FIG. 10, and details are not described here.
  • the implementation manner in which the electronic device 100 determines the channel range supported by the smart home device 300 is consistent with the implementation manner described in the embodiment of FIG. 10, and details are not described here.
  • the electronic device 100 determines that the working channel of the router 200 is not within the channel range supported by the smart home device 300, the electronic device 100 sends the smart home device 300 an instruction to expand the channel range.
  • the instruction to expand the channel range can carry the working channel of the router 200.
  • the smart home device 300 After receiving the instruction to expand the channel range sent by the electronic device 100, the smart home device 300 expands the channel range supported by the smart home device 300 to a channel range that can include the working channel of the router 200.
  • the smart home device 300 may expand the channel range it supports to the channel range supported by the router 200.
  • the electronic device 100 can determine the channel range supported by the router 200, and the specific implementation manner is the same as that described in the embodiment of FIG. 10, and details are not described here.
  • the smart home device 300 needs to expand the channel range supported by it from [1,11] to [1,13].
  • the instruction for expanding the channel range sent by the electronic device 100 to the smart home device 300 may carry the country code (such as CN) and channel range (such as channel 1 to channel 13) supported by the router 200.
  • the smart home device 300 After receiving the instruction to expand the channel, the smart home device 300 changes its country code to the country code (such as CN) supported by the router 200, and changes the channel range it supports to the channel range supported by the router 200 (such as channel 1- Channel 13).
  • the implementation manner of the electronic device 100 sending the Wi-Fi name and password of the router 200 to the smart home device 300 can be seen in the related description of the embodiment of FIG. 10, and is not repeated here.
  • the electronic device 100 can determine whether the working channel of the router 200 is within the channel range supported by the smart device 300, and if not, send an instruction to expand the channel to the smart home device 300 to make the smart home with the expanded channel
  • the device 300 can establish a connection with the router 200 so that the smart home device 300 can quickly connect to the network without affecting the user's use.
  • the embodiment of FIG. 1 of the present application provides a smart home system.
  • the electronic device 100 in the smart home system can be used to perform all or part of the steps performed by the electronic device 100 in the embodiment of FIG. 12.
  • the router 200 in the smart home system It can be used to perform all or part of the steps performed by the router 200 in the embodiment of FIG. 12, and the smart home device 300 in the smart home system can be used to perform all or part of the steps performed by the smart home device 300 in the embodiment of FIG.
  • the embodiments of the present application also provide a computer-readable storage medium. All or part of the processes in the foregoing method embodiments may be completed by a computer program instructing relevant hardware.
  • the program may be stored in the foregoing computer storage medium. When the program is executed, the processes may include the processes of the foregoing method embodiments.
  • the computer-readable storage medium includes: read-only memory (read-only memory, ROM) or random access memory (random access memory, RAM), magnetic disk or optical disk, and other media that can store program codes.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the usable medium may be a magnetic medium (eg, floppy disk, hard disk, magnetic tape), optical medium (eg, DVD), or semiconductor medium (eg, solid state disk (SSD)), or the like.
  • the modules in the device of the embodiment of the present application may be combined, divided, and deleted according to actual needs.

Abstract

本申请公开了一种电子设备及智能家居设备接入网络的方法,可以使智能家居设备快速接入网络。该电子设备可以确定路由器的工作信道及支持的信道范围,还可以确定智能家居设备支持的信道范围;在判断出路由器的工作信道不属于智能家居设备支持的信道范围后,向路由器发送切换工作信道的指令,以使切换后的工作信道属于智能家居设备支持的信道范围;向智能家居设备发送路由器的Wi-Fi名称和密码,使智能家居设备可以通过路由器的Wi-Fi名称和密码连接路由器。

Description

智能家居设备接入网络的方法及相关设备 技术领域
本申请涉及智能家居技术领域,尤其涉及一种智能家居设备接入网络的方法及相关设备。
背景技术
随着物联网技术的不断发展,智能家居设备越来越流行,智能家居系统应用越来越广泛,用户家里的智能家居设备也越来越多。智能家居设备可以通过路由器连接互联网,用户可通过手机远程操控智能家居设备。智能家居系统的广泛应用为用户提供了更加方便舒适的家居生活。
但是,若路由器的工作信道不在智能家居设备支持的信道范围内,智能家居设备将无法接入网络。现有技术中可以通过以下两种方案解决上述问题:1、用户手动调节路由器的工作信道,使路由器的工作信道在智能家居设备支持的信道范围内;2、重新启动路由器,使路由器重新选择工作信道。
以上两种方案,操作复杂,且无法保证调整后的路由器的工作信道在智能家居设备支持的信道范围内。因此,如何使智能家居设备快速接入网络是亟待解决的问题。
发明内容
本申请实施例提供了一种智能家居设备接入网络的方法,可以使智能家居设备快速接入网络。
第一方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器、存储器以及无线通信模块;上述存储器以及上述无线通信模块与上述一个或多个处理器耦合,上述存储器用于存储计算机程序代码,上述计算机程序代码包括计算机指令,上述一个或多个处理器执行上述计算机指令以执行:确定路由器的工作信道以及上述路由器支持的信道范围;确定智能家居设备支持的信道范围;判断出上述路由器的工作信道不属于上述智能家居设备支持的信道范围后,向上述路由器发送切换工作信道的指令,以使上述路由器切换后的工作信道属于上述智能家居设备支持的信道范围;其中,上述切换信道的指令携带上述智能家居设备支持的信道范围;上述路由器切换后的工作信道属于上述路由器支持的信道范围;发送上述路由器的Wi-Fi名称和密码至上述智能家居设备,以使上述智能家居设备通过上述路由器的Wi-Fi名称和密码连接上述路由器。
可能地,上述无线通信模块可以是无线保真(wireless fidelity,Wi-Fi)模块。
本申请实施例,电子设备可以判断路由器的工作信道是否在智能设备支持的信道范围内,若不在,则向路由器发送切换工作信道的指令,以使切换后的工作信道在智能家居设备支持的信道范围内,使智能家居设备可以快速连接网络,不影响用户使用。
在一种可能的实现方式中,上述确定路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器广播的beacon帧;确定接收上述beacon帧的信道为上述路由器的工作信道;根据上述beacon帧中的country字段或vendor specific字段确定上述路由器支持 的信道范围。
具体地,beacon帧的发送周期可以是100毫秒、200毫秒等。beacon帧发送的周期越大,路由器200的睡眠周期越长,越节能。beacon帧发送的周期越小,设备搜索到路由器的耗时越短。
具体地,beacon帧的country字段至少可以携带元素ID、长度、国家码、第一信道号、信道数量和最大发射功率等信息。
具体地,电子设备接收beacon帧的信道即为路由器的工作信道。
具体地,country字段中的国家码可以指示路由器支持的信道范围。
具体地,country字段中的第一信道号及信道数量可以指示路由器支持的信道范围。
在一种可能的实现方式中,上述确定路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器发送的probe response帧;确定接收上述probe response帧的信道为上述路由器的工作信道;根据上述probe response帧中的country字段或vendor specific字段确定上述路由器支持的信道范围。
在一种可能的实现方式中,上述确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的beacon帧;根据上述beacon帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的probe response帧;根据上述probe response帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述发送上述路由器的Wi-Fi名称和密码至上述智能家居设备之前,上述处理器还用于执行:连接上述智能家居设备。
本申请实施例中,电子设备可以与智能家居设备连接,向智能家居设备发送路由器的Wi-Fi名称和密码。
在一种可能的实现方式中,上述发送上述路由器的Wi-Fi名称和密码至上述智能家居设备包括:在上述电子设备支持的每个信道上依次广播上述路由器的Wi-Fi名称和密码的信息;其中,上述信息携带上述智能家居设备的标识信息,以使上述智能家居设备在其支持的信道范围内依次轮询接收上述信息,并判断上述标识信息是否正确,若正确,则从上述信息中获取上述路由器的名称和密码。
具体地,上述路由器的Wi-Fi名称和密码可以携带在数据帧中,该数据帧可以是一个或多个。
本申请实施例中,电子设备可以在不与智能家居设备连接的情况下将路由器的Wi-Fi名称和密码发送至智能家居设备。电子设备可以一直与路由器连接,不影响电子设备与路由器之间的数据传输。
第二方面,本申请实施例提供了一种智能家居系统,包括:电子设备、路由器及智能家居设备;其中,上述电子设备被配置为确定上述路由器的工作信道以及上述路由器支持的信道范围;确定上述智能家居设备支持的信道范围;判断出上述路由器的工作信道不属于上述智能家居设备支持的信道范围后,向上述路由器发送切换工作信道的指令;其中,上述切换工作信道的指令携带上述智能家居设备支持的信道范围;上述路由器被配置为接 收上述切换工作信道的指令,并切换工作信道;其中,切换后的工作信道属于上述智能家居设备支持的信道范围,上述切换后的工作信道属于上述路由器支持的信道范围;上述电子设备还被配置为发送上述路由器的Wi-Fi名称和密码至上述智能家居设备;上述智能家居设备被配置为通过上述路由器的Wi-Fi名称和密码连接上述路由器。
本申请实施例,电子设备可以判断路由器的工作信道是否在智能设备支持的信道范围内,若不在,则向路由器发送切换工作信道的指令,以使切换后的工作信道在智能家居设备支持的信道范围内,使智能家居设备可以快速连接网络,不影响用户使用。
在一种可能的实现方式中,上述电子设备被配置为确定上述路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器广播的beacon帧;确定接收上述beacon帧的信道为上述路由器的工作信道;根据上述beacon帧中的country字段或vendor specific字段确定上述路由器支持的信道范围。
具体地,beacon帧的发送周期可以是100毫秒、200毫秒等。beacon帧发送的周期越大,路由器200的睡眠周期越长,越节能。beacon帧发送的周期越小,设备搜索到路由器的耗时越短。
具体地,beacon帧的country字段至少可以携带元素ID、长度、国家码、第一信道号、信道数量和最大发射功率等信息。
具体地,电子设备接收beacon帧的信道即为路由器的工作信道。
具体地,country字段中的国家码可以指示路由器支持的信道范围。
具体地,country字段中的第一信道号及信道数量可以指示路由器支持的信道范围。
在一种可能的实现方式中,上述电子设备被配置为确定上述路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器发送的probe response帧;确定接收上述probe response帧的信道为上述路由器的工作信道;根据上述probe response帧中的country字段或vendor specific字段确定上述路由器支持的信道范围。
在一种可能的实现方式中,上述电子设备被配置为确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的beacon帧;根据上述beacon帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述电子设备被配置为确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的probe response帧;根据上述probe response帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述电子设备还被配置为发送上述路由器的Wi-Fi名称和密码至上述智能家居设备之前,上述电子设备还用于连接上述智能家居设备。
本申请实施例中,电子设备可以与智能家居设备连接,向智能家居设备发送路由器的Wi-Fi名称和密码。
在一种可能的实现方式中,上述电子设备还被配置为发送上述路由器的Wi-Fi名称和密码至上述智能家居设备包括:在上述电子设备支持的每个信道上依次广播上述路由器的Wi-Fi名称和密码的信息;其中,上述信息携带上述智能家居设备的标识信息,以使上述智能家居设备在其支持的信道范围内依次轮询接收上述信息,并判断上述标识信息是否正确,若正确,则从上述信息中获取上述路由器的名称和密码。
具体地,上述路由器的Wi-Fi名称和密码可以携带在数据帧中,该数据帧可以是一个或多个。
本申请实施例中,电子设备可以在不与智能家居设备连接的情况下将路由器的Wi-Fi名称和密码发送至智能家居设备。电子设备可以一直与路由器连接,不影响电子设备与路由器之间的数据传输。
第三方面,本申请实施例提供了一种路由器,应用于智能家居系统,上述智能家居系统包括上述路由器、电子设备和智能家居设备,上述路由器包括:一个或多个处理器、存储器以及无线通信模块;上述存储器以及无线通信模块与上述一个或多个处理器耦合,上述存储器用于存储计算机程序代码,上述计算机程序代码包括计算机指令,上述一个或多个处理器执行上述计算机指令以执行:在上述路由器的工作信道上广播上述路由器支持的信道范围;接收上述电子设备发送的切换工作信道的指令;其中,上述切换工作信道的指令上述携带智能家居设备支持的信道范围;上述切换工作信道的指令为上述电子设备确定上述路由器的工作信道不属于上述智能家居设备支持的信道范围内之后发送的指令;上述路由器确定信噪比高于第一阈值的信道作为目标工作信道;其中,上述目标工作信道属于上述智能家居设备支持的信道范围,上述目标工作信道属于上述路由器支持的信道范围;上述路由器切换工作信道至上述目标工作信道。
可能地,上述无线通信模块可以是Wi-Fi模块。
本申请实施例提供的路由器可以接收电子设备发送的切换工作信道的指令,将工作信道切换至智能家居设备支持的信道范围内,以使智能家居设备可以快速连接网络,不影响用户使用。
第四方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器、存储器以及无线通信模块;上述存储器以及上述无线通信模块与上述一个或多个处理器耦合,上述存储器用于存储计算机程序代码,上述计算机程序代码包括计算机指令,上述一个或多个处理器执行上述计算机指令以执行:确定路由器的工作信道;确定智能家居设备支持的信道范围;判断出上述路由器的工作信道不属于上述智能家居设备支持的信道范围后,向上述智能家居设备发送扩充信道范围的指令,以使上述智能家居更改后的信道范围包括上述路由器的工作信道;其中,上述扩充信道范围的指令包括上述路由器的工作信道;发送上述路由器的Wi-Fi名称和密码至上述智能家居设备,以使上述智能家居设备通过上述路由器的Wi-Fi名称和密码连接上述路由器。
可能地,上述无线通信模块可以是Wi-Fi模块。
本申请实施例可以电子设备可以判断路由器的工作信道是否在智能设备支持的信道范围内,若不在,则向智能家居设备发送扩充信道范围的指令,以使扩充后的信道范围可包含路由器的工作信道,使智能家居设备可以快速连接网络,不影响用户使用。
第五方面,本申请实施例提供了一种智能家居设备,应用于智能家居系统,上述智能家居系统包括上述路由器、电子设备和智能家居设备,上述智能家居设备包括:一个或多个处理器、存储器以及无线通信模块;上述存储器以及无线通信模块与上述一个或多个处理器耦合,上述存储器用于存储计算机程序代码,上述计算机程序代码包括计算机指令,上述一个或多个处理器执行上述计算机指令以执行:广播上述智能家居设备支持的信道范 围;接收上述电子设备发送的扩充信道范围的指令;其中,上述扩充信道范围的指令携带上述路由器的工作信道;上述扩充信道范围的指令为上述电子设备确定上述路由器的工作信道不属于上述智能家居设备支持的信道范围后发送的指令;根据上述路由器的工作信道扩充信道范围;其中,更改后的信道范围包括上述路由器的工作信道。
可能地,上述无线通信模块可以是Wi-Fi模块。
在一种可能的实现方式中,电子设备向智能家居设备发送的扩充信道范围的指令可以携带路由器支持的国家码(例如CN)及信道范围(例如信道1-信道13)。智能家居设备接收到该扩充信道的指令后,将自身的国家码修改为路由器支持的国家码(例如CN),将自身支持的信道范围更改为路由器支持的信道范围(例如信道1-信道13)。
本申请实施例提供的智能家居设备可以接收电子设备发送的扩充信道范围的指令,将自身支持的信道范围扩充至可包含路由器的工作信道,以使智能家居设备可以快速连接网络,不影响用户使用。
第六方面,本申请实施例提供了一种智能家居设备接入网络的方法,其特征在于,包括:确定路由器的工作信道以及上述路由器支持的信道范围;确定智能家居设备支持的信道范围;判断出上述路由器的工作信道不属于上述智能家居设备支持的信道范围后,向上述路由器发送切换工作信道的指令,以使上述路由器切换后的工作信道属于上述智能家居设备支持的信道范围;其中,上述切换信道的指令携带上述智能家居设备支持的信道范围;发送上述路由器的Wi-Fi名称和密码至上述智能家居设备,以使上述智能家居设备通过上述路由器的Wi-Fi名称和密码连接上述路由器。
本申请实施例可以电子设备可以判断路由器的工作信道是否在智能设备支持的信道范围内,若不在,则向路由器发送切换工作信道的指令,以使切换后的工作信道在智能家居设备支持的信道范围内,使智能家居设备可以快速连接网络,不影响用户使用。
在一种可能的实现方式中,上述确定路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器广播的beacon帧;确定接收上述beacon帧的信道为上述路由器的工作信道;根据上述beacon帧中的country字段或vendor specific字段确定上述路由器支持的信道范围。
具体地,beacon帧的发送周期可以是100毫秒、200毫秒等。beacon帧发送的周期越大,路由器200的睡眠周期越长,越节能。beacon帧发送的周期越小,设备搜索到路由器的耗时越短。
具体地,beacon帧的country字段至少可以携带元素ID、长度、国家码、第一信道号、信道数量和最大发射功率等信息。
具体地,电子设备接收beacon帧的信道即为路由器的工作信道。
具体地,country字段中的国家码可以指示路由器支持的信道范围。
具体地,country字段中的第一信道号及信道数量可以指示路由器支持的信道范围。
在一种可能的实现方式中,上述确定路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器发送的probe response帧;确定接收上述probe response帧的信道为上述路由器的工作信道;根据上述probe response帧中的country字段或vendor specific字段确定上述路由器支持的信道范围。
在一种可能的实现方式中,上述确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的beacon帧;根据上述beacon帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的probe response帧;根据上述probe response帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述发送上述路由器的Wi-Fi名称和密码至上述智能家居设备之前,上述方法还包括:连接上述智能家居设备。
本申请实施例中,电子设备可以与智能家居设备连接,向智能家居设备发送路由器的Wi-Fi名称和密码。
在一种可能的实现方式中,上述发送上述路由器的Wi-Fi名称和密码至上述智能家居设备包括:在上述电子设备支持的每个信道上依次广播上述路由器的Wi-Fi名称和密码的信息;其中,上述信息携带上述智能家居设备的标识信息,以使上述智能家居设备在其支持的信道范围内依次轮询接收上述信息,并判断上述标识信息是否正确,若正确,则从上述信息中获取上述路由器的Wi-Fi名称和密码。
具体地,上述路由器的Wi-Fi名称和密码可以携带在数据帧中,该数据帧可以是一个或多个。
本申请实施例中,电子设备可以在不与智能家居设备连接的情况下将路由器的Wi-Fi名称和密码发送至智能家居设备。电子设备可以一直与路由器连接,不影响电子设备与路由器之间的数据传输。
第七方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当上述计算机指令在电子设备上运行时,使得上述电子设备执行本申请实施例第六方面或第六方面的任意一种可能的实现方式提供的智能家居设备接入网络的方法。
第八方面,本申请实施例提供了一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行本申请实施例第六方面或第六方面的任意一种可能的实现方式提供的智能家居设备接入网络的方法。
可以理解地,上述第七方面提供的计算机存储介质,以及第八方面提供的计算机程序产品均用于执行第六方面所提供的智能家居设备接入网络的方法,因此,其所能达到的有益效果可参考第六方面所提供的智能家居设备接入网络的方法中的有益效果,此处不再赘述。
第九方面,本申请实施例提供了一种智能家居设备接入网络的方法,包括:确定路由器的工作信道;确定智能家居设备支持的信道范围;判断出上述路由器的工作信道不属于上述智能家居设备支持的信道范围后,向上述智能家居设备发送扩充信道范围的指令,以使上述智能家居更改后的信道范围包括上述路由器的工作信道;其中,上述扩充信道范围的指令包括上述路由器的工作信道;发送上述路由器的Wi-Fi名称和密码至上述智能家居设备,以使上述智能家居设备通过上述路由器的Wi-Fi名称和密码连接上述路由器。
本申请实施例可以电子设备可以判断路由器的工作信道是否在智能设备支持的信道范围内,若不在,则向智能家居设备发送扩充信道范围的指令,以使扩充后的信道范围可包 含路由器的工作信道,使智能家居设备可以快速连接网络,不影响用户使用。
在一种可能的实现方式中,上述确定路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器广播的beacon帧;确定接收上述beacon帧的信道为上述路由器的工作信道;根据上述beacon帧中的country字段或vendor specific字段确定上述路由器支持的信道范围。
具体地,beacon帧的发送周期可以是100毫秒、200毫秒等。beacon帧发送的周期越大,路由器200的睡眠周期越长,越节能。beacon帧发送的周期越小,设备搜索到路由器的耗时越短。
具体地,beacon帧的country字段至少可以携带元素ID、长度、国家码、第一信道号、信道数量和最大发射功率等信息。
具体地,电子设备接收beacon帧的信道即为路由器的工作信道。
具体地,country字段中的国家码可以指示路由器支持的信道范围。
具体地,country字段中的第一信道号及信道数量可以指示路由器支持的信道范围。
在一种可能的实现方式中,上述确定路由器的工作信道以及上述路由器支持的信道范围包括:接收上述路由器发送的probe response帧;确定接收上述probe response帧的信道为上述路由器的工作信道;根据上述probe response帧中的country字段或vendor specific字段确定上述路由器支持的信道范围。
在一种可能的实现方式中,上述确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的beacon帧;根据上述beacon帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述确定上述智能家居设备支持的信道范围包括:接收上述智能家居设备广播的probe response帧;根据上述probe response帧中的country字段或vendor specific字段确定上述智能家居设备支持的信道范围。
在一种可能的实现方式中,上述发送上述路由器的Wi-Fi名称和密码至上述智能家居设备之前,上述方法还包括:连接上述智能家居设备。
本申请实施例中,电子设备可以与智能家居设备连接,向智能家居设备发送路由器的Wi-Fi名称和密码。
在一种可能的实现方式中,上述发送上述路由器的Wi-Fi名称和密码至上述智能家居设备包括:在上述电子设备支持的每个信道上依次广播上述路由器的Wi-Fi名称和密码的信息;其中,上述信息携带上述智能家居设备的标识信息,以使上述智能家居设备在其支持的信道范围内依次轮询接收上述信息,并判断上述标识信息是否正确,若正确,则从上述信息中获取上述路由器的Wi-Fi名称和密码。
具体地,上述路由器的Wi-Fi名称和密码可以携带在数据帧中,该数据帧可以是一个或多个。
本申请实施例中,电子设备可以在不与智能家居设备连接的情况下将路由器的Wi-Fi名称和密码发送至智能家居设备。电子设备可以一直与路由器连接,不影响电子设备与路由器之间的数据传输。
第十方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当上述计算 机指令在电子设备上运行时,使得上述电子设备执行本申请实施例第九方面或第九方面的任意一种可能的实现方式提供的智能家居设备接入网络的方法。
第十一方面,本申请实施例提供了一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行本申请实施例第九方面或第九方面的任意一种可能的实现方式提供的智能家居设备接入网络的方法。
可以理解地,上述第十方面提供的计算机存储介质,以及第十一方面提供的计算机程序产品均用于执行第九方面所提供的智能家居设备接入网络的方法,因此,其所能达到的有益效果可参考第九方面所提供的智能家居设备接入网络的方法中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种智能家居系统的网络架构示意图;
图2为本申请实施例提供的电子设备的结构示意图;
图3为本申请实施例提供的电子设备的软件结构框图;
图4-图9为本申请实施例提供的用户界面示意图;
图10为本申请实施例提供的一种智能家居设备接入网络的方法流程示意图;
图11为本申请实施例涉及的country字段格式示意图;
图12为2.4GHz频段范围内不同国家与国家码、第一信道号、信道数量、支持的信道范围的对应关系示意图;
图13为本申请实施例提供另的一种智能家居设备接入网络的方法流程示意图;
图14为本申请实施例提供另的一种智能家居设备接入网络的方法流程示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。
首先,请参看图1。图1为本申请实施例提供的一种智能家居系统的网络架构示意图。
如图1所示,智能家居系统的网络架构可以包括电子设备100、路由器200、智能家居设备300及云端服务器400。电子设备100可以与路由器200进行通信,获取路由器200的工作信道以及支持的信道范围。其中,工作信道是路由器200向外发送数据使用的频段。路由器200支持的信道范围由该路由器200适用的国家决定,适用不同国家的设备支持的信道范围可能不一样。例如,2.4GHz频段范围内有14个每隔5MHz分隔的信道(除了第14信道与第13信道相隔了12MHz),每个信道的带宽为20MHz,可以依次将信道编号为信道1-信道14。2.4GHz频段内适用中国的设备支持的信道范围是信道1-信道13。该频段内适用美国的设备支持的信道范围则是信道1-信道11。由于信道1、信道6、信道13之间的频段完全没有重叠,互相不会产生信号干扰。因此,信道1、信道6、信道13是较常用的信道。
电子设备100还可以接收智能家居设备300广播的信息,获取智能家居设备300支持的信道范围。电子设备100可以将路由器200的Wi-Fi名称和密码发送至智能家居设备300。电子设备100可以判断路由器200的工作信道是否属于智能家居设备300支持的信道范围, 若否,电子设备100可以通知路由器200切换工作信道,使路由器200的工作信道属于智能家居设备300支持的信道范围,从而智能家居设备300可以连接路由器200,通过路由器200与云端服务器400连接。电子设备100可通过云端服务器400向智能家居设备300发送控制指令。其中,电子设备100上可安装用于控制智能家居设备的应用软件(applicationsoftware,APP),该APP例如可以是智能家居APP。云端服务器400可以是该应用软件对应的应用服务器,该云端服务器400例如可以是智能家居APP的应用服务器。
本申请实施例中涉及的电子设备100可以是手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等。
本申请实施例涉及的智能家居设备300可以是智能音箱、扫地机器人、智能插座、智能电灯、智能体脂称、智能台灯、空气净化器、智能电冰箱、智能空调、智能洗衣机、智能热水器、智能微波炉、智能电饭锅、智能窗帘、智能风扇、智能电视、智能机顶盒等。
不限于智能家居设备300,上述系统还可以适用于车载设备、可穿戴电子设备等,使车载设备或可穿戴电子设备等设备可顺利连接路由器,本申请实施例对此不作限定。
下面介绍本申请以下实施例中提供的示例性电子设备。
图2示出了电子设备100的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。本申请实施例中,无线通信模块160可以是Wi-Fi模块。电子设备100可以通过Wi-Fi模块搜索到路由器200广播的beacon帧,在搜索到路由器200广播的beacon帧之后可以与路由器200建立连接。本申请实施例中,电子设备100还可以通过Wi-Fi模块搜索到智能家居设备300广播的beacon帧,在搜索到智能家居设备300beacon帧后还可以与智能家居设备300建立连接。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传 递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触控操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触控操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触控操作强度的触控操作,可以对应不同的操作指令。例如:当有触控操作强度小于第一压力阈值的触控操作作用于短消息应用图标时,执行查看短消息的指令。当有触控操作强度大于或等于第一压力阈值的触控操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。
气压传感器180C用于测量气压。
磁传感器180D包括霍尔传感器。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。
环境光传感器180L用于感知环境光亮度。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触控操作。触摸传感器可以将检测到的触控操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触控操作相关的视觉输出。在另一些实施 例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触控操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触控操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图3是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming  interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图片,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图片文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获拍照的使用场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通 过摄像头193捕获静态图像或视频。
图4示例性示出了用于电子设备100上的应用程序菜单的用户界面。
图4中用户界面40可包括状态栏401、时间组件图标402和天气组件图标403、多个应用程序的图标例如相机图标、微信图标、设置图标404、相册图标、微博图标和智能家居图标405等,用户界面40中还可以包括页面指示符406、电话图标407、短信图标408及联系人图标409、导航栏410等。其中:
状态栏402可以包括:运营商指示符(例如运营商的名称“中国移动”)、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符、移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符和电池状态指示符。
时间组件图标402可用于指示当前时间,例如日期、星期几、时分信息等。
天气组件图标403可用于指示天气类型,例如多云转晴、小雨等,还可以用于指示气温等信息。
页面指示符406可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动多个应用程序图标的区域,来浏览其他页面中的应用程序图标。
导航栏410可以包括:返回按键411、主界面(Home screen)按键412、呼出任务历史按键413等系统导航键。其中,主界面为电子设备100在任何一个用户界面检测到作用于主界面按键412的用户操作后显示的界面。当检测到用户点击返回按键411时,电子设备100可显示当前用户界面的上一个用户界面。当检测到用户点击主界面按键412时,电子设备100可显示主界面。当检测到用户点击呼出任务历史按键413时,电子设备100可显示用户最近打开过的任务。各导航键的命名还可以为其他,比如,411可以叫Back Button,412可以叫Home button,413可以叫Menu Button,本申请对此不做限制。导航栏410中的各导航键不限于虚拟按键,也可以实现为物理按键。
可以理解的是,图4仅仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。
电子设备100可以检测到作用于设置图标404的用户操作(如在设置图标404上的点击操作),响应于该操作,电子设备100可以显示图5示出的用于设置系统参数的用户界面50。其中,系统参数例如可以是飞行模式的状态(开启或关闭)、无线局域网(wireless LAN,WLAN)的状态(开启或关闭)、蓝牙的状态(开启或关闭)、个人热点的状态(开启或关闭)、移动网络的状态(开启或关闭)、勿扰模式的状态(开启或关闭)、显示与亮度的大小、声音的大小等。用户界面50可以包括各个系统参数的设置入口,如WLAN设置入口501。电子设备100可以检测到作用于WLAN设置入口501的用户操作(如在WLAN设置入口501上的点击操作),响应于该操作,电子设备100可以显示图6实施例涉及的用户界面60。也即是说,用户可以点击WLAN设置入口501打开用于设置WLAN的用户界面。
接下来结合图4-图5示出的应用场景示意图,介绍本申请实施例提供的用户界面(user interface,UI)实施例。
图6示例性示出了用于设置WLAN的用户界面60。
如图6所示,用户界面60可以包括:开关控件601及可用WLAN列表602;其中:
开关控件601用于开启或关闭WLAN。电子设备100可以检测到作用于开关控件601的右滑操作,响应于该右滑操作,电子设备100可开启WLAN,在电子设备100支持的信道范围内搜索可接入的设备。
可用WLAN列表602用于展示电子设备100搜索到的处于接入点(access point,AP)模式的可接入的设备,以及该设备的信号强度。处于AP模式的设备均在其工作信道上向外广播beacon帧,等待设备接入。其中,AP指的是无线接入点,是一个无线网络的创建者,是网络的中心节点。工作在AP模式下的设备可提供无线接入服务,允许其他无线设备接入,提供数据访问。处于AP模式的设备可以是路由器,也可以是智能家居设备。其中,智能家居设备可以但不限于是智能音箱、扫地机器人、智能插座、智能电灯、智能体脂称、智能台灯、空气净化器、智能电冰箱、智能空调、智能洗衣机、智能热水器、智能微波炉、智能电饭锅、智能窗帘、智能风扇、智能电视、智能机顶盒等。
可用WLAN列表602中可包括可接入的设备的选项,用于接入设备。如路由器001的选项6021、智能家居设备华为AI音箱的选项6022等。电子设备100可以检测到作用于某选项的用户操作(如在该选项上的点击操作),响应于该用户操作,电子设备100可向该选项对应的设备发起接入请求。
下面分别介绍两种不同情况下电子设备100是如何连接路由器200的,以连接Wi-Fi名称为001的路由器200为例进行说明。
第一种情况:若电子设备100未曾连接过Wi-Fi名称为001的路由器200,则电子设备100可以检测到作用于选项6021的用户操作(如在选项6021上的点击操作),响应于该用户操作,电子设备100可提醒用户输入密码。当检测到用户输入密码后,电子设备100可将密码发送至Wi-Fi名称为001的路由器200,Wi-Fi名称为001的路由器200可以将电子设备100发送的密码与预存的密码进行比对,若一致,则Wi-Fi名称为001的路由器200与电子设备100建立连接。电子设备100可保存Wi-Fi名称为001的路由器200的标识信息和密码至内部存储器121。路由器的标识信息可以是该路由器的媒体访问控制地址(media access control address,MAC)地址或Wi-Fi名称(SSID)。路由器的MAC地址或Wi-Fi名称可以携带在路由器广播的beacon帧中。
第二种情况:若电子设备100曾连接过Wi-Fi名称为001的路由器200,则电子设备100在检测到Wi-Fi名称为001的路由器200广播的beacon帧后,根据beacon帧获取路由器的标识信息,根据标识信息从内部存储器121中查找到路由器的密码,并将密码发送至路由器,与路由器连接。
接下来介绍电子设备100如何将路由器的Wi-Fi名称和密码发送至智能家居设备300。以路由器为Wi-Fi名称为001的路由器200、智能家居设备为华为AI音箱为例进行说明。
在一种可能的实施例中,在电子设备100已连接路由器200的情况下,若电子设备100检测到作用于选项6022的用户操作(如在选项6022上的点击操作),电子设备100可将路由器200的Wi-Fi名称和密码发送至华为AI音箱。
在另一种可能的实施例中,电子设备100未连接任何路由器。若电子设备100检测到作用于选项6022的用户操作(如在选项6022上的点击操作),电子设备100可显示图7示出的用于连接路由器200的用户界面70。具体地,用户界面70可以包括Wi-Fi选项701、密码输入栏702和连接控件703。其中:
Wi-Fi选项701可用于选择目标路由器。在一种可能的实现方式中,Wi-Fi选项701中可显示电子设备100最近连接过的路由器的名称,用户还可以用个下拉控件7011查看其它可连接的路由器的名称,点击相应的名称选定目标路由器。在另一种可能的实现方式中,Wi-Fi选项701中不显示路由器的名称。用户可以通过下拉控件7011查看可连接的路由器的名称,点击相应的名称选定目标路由器。
密码输入栏702可用于输入路由器的Wi-Fi密码。用户通过Wi-Fi选项701选定目标路由器后,电子设备100可检测到作用于密码输入栏702的用户操作(如在密码输入栏702上的点击操作),响应于该操作,电子设备100可显示用于输入密码的键盘,接收用户输入的密码。
连接控件703用于连接路由器。电子设备100可检测到作用于连接控件703的用户操作(如在连接控件703上的点击操作),响应于该操作,电子设备100可将Wi-Fi选项701中选定的路由器的名称以及用户在密码输入栏702中的输入的密码发送至华为AI音箱。
以上实施例介绍了电子设备100通过检测到作用于设置图标404的用户操作后,电子设备100是如何将路由器的Wi-Fi名称和密码发送至智能家居设备的。
不限于上述方式,本申请实施例中,电子设备100还可以通过检测到作用于智能家居图标405的用户操作后,将路由器的Wi-Fi名称和密码发送至智能家居设备。
具体地,电子设备100可检测到作用于智能家居图标405的用户操作(如在智能家居图标405上的点击操作),响应于该操作,电子设备100可显示图8示出的用户界面80。用户界面80中至少可以包括添加设备控件801。
电子设备100可以检测到作用于添加设备控件801的的用户操作(如在添加设备控件801上的点击操作),响应于该操作,电子设备100可在其支持的信道范围内搜索可添加的设备,并将可添加的设备的列表显示在图9示出的用户界面90中。
如图9所示,用户界面90中可以包括可添加的设备的选项,如华为AI音箱的选项901及华为空气净化器的选项。电子设备100可检测到作用于某选项上的用户操作(如在选项901上的点击操作),响应于该用户操作,电子设备100可显示图7示出的用于连接路由器的用户界面70。电子设备100可基于用户界面70将Wi-Fi选项701中选定的路由器的名称以及用户在密码输入栏702中的输入的密码发送至华为AI音箱。具体发送过程可参考图7实施例的相关描述,此处不赘述。
在一种可能的实施例中,在电子设备100已与Wi-Fi名称为001的路由器200连接的情况下,电子设备100检测到作用于华为AI音箱的选项901上的点击操作时,可直接将路由器200的Wi-Fi名称和密码发送至华为AI音箱。
在另一种可能的实施例中,在电子设备100已与Wi-Fi名称为001的路由器200连接的情况下,电子设备100检测到作用于华为AI音箱的选项901上的点击操作时,可直接在 用户界面70的密码输入栏702中显示密码,用户只需点击连接控件703将路由器200的Wi-Fi名称和密码发送至华为AI音箱。
接收到Wi-Fi名称和密码的华为AI音箱,可以将工作模式从AP模式切换为站点(station,STA)模式。STA站点,即为每一个连接到无线网络中的设备(如笔记本电脑、PDA及其它可以联网的智能家居设备)都可称为一个站点。工作在STA模式下的设备不接收无线接入,可连接到AP。华为AI音箱在其支持的信道范围内搜索与接收到的Wi-Fi名称一致的路由器,然后将密码发送至该路由器,路由器确认密码正确后与华为AI音箱建立连接,此时华为AI音箱成功接入网络。上述电子设备100连接路由器200的方式可以是前述两种方式中的任意一种。
不限于发送路由器的Wi-Fi名称,在具体实现中,电子设备100还可以发送路由器200的MAC地址(BSSID)至智能家居设备300。
接下来介绍本申请实施例提供的智能家居设备接入网络的方法。
如图10所示,智能家居设备接入网络的方法至少可以包括以下几个步骤:
S101:电子设备确定路由器的工作信道以及路由器支持的信道范围。
S102:电子设备确定智能家居设备支持的信道范围。
S103:电子设备判断路由器的工作信道是否在智能家居设备支持的信道范围内;若是,执行S106;若否,执行S104。
S104:电子设备向路由器发送切换工作信道的指令。
S105:路由器切换工作信道。
S106:电子设备将路由器的Wi-Fi名称和密码发送至智能家居设备。
S107:智能家居设备连接路由器。
电子设备100确定路由器200的工作信道以及路由器200支持的信道范围的实现方式有以下几种:
在一种可能的实现方式中,电子设备100可以通过路由器200广播的beacon帧确定路由器200的工作信道以及路由器200支持的信道范围。
具体地,路由器200工作在AP模式,在其工作信道X上以一定周期向周围的设备广播beacon帧。beacon帧发送的周期例如可以是100毫秒、200毫秒等。beacon帧发送的周期越大,路由器200的睡眠周期越长,越节能。beacon帧发送的周期越小,设备搜索到路由器的耗时越短。
电子设备100在开启WLAN后,可在电子设备100支持的信道范围内轮询,并在信道X上接收到路由器200广播的beacon帧。电子设备100可以确定接收到beacon帧的信道X即为路由器200的工作信道。电子设备100开启WLAN的方式可见图6实施例的描述。
示例性地,假设电子设备100支持的信道范围为信道1-信道13。电子设备100在开启WLAN后,可以从信道1开始,依次在每个信道上扫描是否有路由器200广播的beacon帧,直到在信道X(X例如可以是12或13)上接收到路由器200广播的beacon帧后,即可确定信道X为路由器200的工作信道。上述电子设备100依次在每个信道上扫描是否有路由器200广播的beacon帧的过程即可称为轮询。
电子设备100可以通过beacon帧的country字段确定路由器200支持的信道范围。
示例性地,country字段的格式如图11所示。country字段至少可以携带元素ID(elementID)、长度(length)、国家码(country string)、第一信道号(first channel number)、信道数量(numberof channels)和最大发射功率(maximum transmit power)等信息。其中:
元素ID为country字段的标识符。电子设备100可以根据元素ID确定该字段是否为country字段。通常,country字段的元素ID为7。
长度表示country字段内容的字节数(不包括elementID和length占的长度)。
国家码用于表示该设备适用的国家,不同的国家对应不同的可使用信道;第一信道号用于表示该设备支持的第一个信道的编号;信道数量用于表示该设备支持的信道的数量;最大发射功率用于表示该设备发射信号时的最大功率。不同的国家对应不同的可使用的频段,包括第一个信道的编号、支持的信道的数量,不同的国家还对应不同的最大发射功率。由第一个信道的编号及支持的信道的数量可知该设备支持的信道范围。
图12示例性示出了2.4GHz频段范围内不同国家与国家码、第一信道号、信道数量、支持的信道范围的对应关系。
假设本申请实施例中涉及的路由器200为适用于中国的路由器,本申请实施例中涉及的智能家居设备300为适用于美国的智能家居设备。
从图12中可以看出,适用于中国的路由器200可以工作在信道1-信道13中的任意一个信道上,而适用于美国的智能家居设备300支持的信道范围为[1,11]。当路由器200工作在12信道或13信道上时,智能家居设备300将无法连接路由器200。
具体地,电子设备100可以根据country字段中的国家码确定路由器200支持的信道范围。例如,若国家码为CN,则可确定该路由器支持的信道范围为[1,13];若国家码为US,则可确定该路由器支持的信道范围为[1,11];若国家码为JP,则可确定该路由器支持的信道范围为[1,14];若国家码为IL,则可确定该路由器支持的信道范围为[3,9]。
具体地,电子设备100还可以根据第一信道号和信道数量确定路由器200支持的信道范围。例如,若第一信道号为1,信道数量为13,则可确定该路由器支持的信道范围为[1,13];若第一信道号为3,信道数量为7,则可确定该路由器200支持的信道范围为[3,9]。
在另一种可能的实现方式中,电子设备100可以通过路由器200发送的probe response帧确定路由器200的工作信道以及路由器支持的信道范围。
具体地,电子设备100在开启WLAN后,可以在其支持的每个信道上依次广播probe request帧。路由器200在信道X上接收到probe request帧后,可以在信道X上向电子设备100发送probe response帧。电子设备100可以在其支持的信道范围内轮询,直至在信道X上接收到路由器200发送的probe response帧。电子设备100可以确定接收到probe response帧的信道X即为路由器200的工作信道。电子设备100开启WLAN的方式可见图6实施例的描述。
电子设备100可以通过probe response帧的country字段确定路由器200支持的信道范围。probe response帧的country字段的格式与前述beacon帧的country字段的格式类似,此处不赘述。
不限于beacon帧或probe response帧中的country字段,电子设备100还可以通过beacon 帧或probe response帧中的vendor specific字段确定路由器200支持的信道范围。vendor specific字段至少可以包括国家码,或者vendor specific字段可以包括第一信道号及信道数量,或者vendor specific字段可以包括国家码、第一信道号及信道数量。vendor specific字段的格式可以由厂商自己定义。
在信道X上接收到路由器200发送的beacon帧或probe response帧后,电子设备100可与路由器200连接。电子设备100与路由器200连接可分为两种不同的情况,各个情况下的连接方式可见前述实施例的描述,此处不赘述。
接下来描述电子设备如何确定智能家居设备支持的信道范围。
具体地,电子设备100可以通过智能家居设备300广播的beacon确定智能家居设备300支持的信道范围。
具体地,智能家居设备300当前的工作模式为AP模式,在信道Y上以一定的周期向周围设备广播beacon帧。beacon帧的发送周期与路由器200广播beacon帧的发送周期类似,在此不赘述。
下面分两种情况分别介绍电子设备如何接收智能家居设备广播的beacon。
情况一:若电子设备100已与路由器200连接,则电子设备100可按照一定的时间间隔依次扫描每个信道,每扫描一个信道就回到信道X,直到在信道Y上扫描到智能家居设备300发送的beacon帧。保证在扫描智能家居设备300时不影响电子设备100与路由器200之间的数据传输。上述时间间隔例如可以是100毫秒、200毫秒等。
情况二:若电子设备100未与路由器200连接,则电子设备100可在其支持的信道范围内轮询,直至在信道Y上接收到智能家居设备300广播的beacon帧。
具体地,电子设备100扫描智能家居设备300的beacon之前,电子设备100还可以接收用户输入的添加设备的指令。用户可以通过点击图8实施例中的添加设备控件801输入添加设备的指令。
电子设备100接收到智能家居设备300广播的beacon帧后,可以通过beacon帧的country字段确定智能家居设备300支持的信道范围。Country字段的格式可见图11实施例的相关描述,此处不赘述。
不限于beacon帧,在另外一种实现方式中,电子设备100还可以通过probe response帧确定智能家居设备300支持的信道范围。通过probe response帧确定智能家居设备300支持的信道范围的过程与前述实施例中通过probe response帧确定路由器200支持的信道范围的过程类似,此处不赘述。
不限于country字段,在另外一种实现方式中,电子设备100还可以通过beacon帧或probe response帧中的vendor specific字段确定智能家居设备300支持的信道范围。通过vendor specific字段确定智能家居设备300支持的信道范围的过程与前述实施例中通过vendor specific字段确定路由器200支持的信道范围的过程类似,此处不赘述。
在一种可能的实现方式中,电子设备100判断出路由器200的工作信道不在智能家居设备300支持的信道范围内之后,电子设备100可向路由器200发送切换工作信道的指令。 其中,切换工作信道的指令可以携带智能家居设备300支持的信道范围。
在另外一种可能的实现方式中,电子设备100判断出路由器200的工作信道不在智能家居设备300支持的信道范围内之后,电子设备100可以向路由器200发送切换工作信道的指令和携带智能家居设备300支持的信道范围的信息。
路由器200可以在智能家居设备300支持的信道范围以及路由器200自身支持的信道范围内,选择信道质量比较好的信道作为新的工作信道,例如为信道M。其中,信道质量可以通过信噪比来衡量。信噪比越大,信道质量越好。
此外,路由器200可以记录智能家居设备300支持的信道范围,保证路由器200下次重启后选择的工作信道在智能家居设备200支持的信道范围内,以使智能家居设备300可快速接入网络。
接下来介绍电子设备如何将路由器的Wi-Fi名称和密码发送至智能家居设备。
在一种可能的实现方式中,电子设备100可以连接智能家居设备300,在信道Y上将路由器200的Wi-Fi名称和密码发送至智能家居设备300。电子设备100与智能家居设备300连接的方式可以是用户点击图6实施例中的选项6022。电子设备100与智能家居设备300连接的方式还可以是用户点击图9实施例中的选项901。
在另外一种可能的实现方式中,电子设备100未与智能家居设备300连接,电子设备100可以在其支持的每个信道上依次广播携带路由器200的Wi-Fi名称和密码的数据帧。智能家居设备300可在其支持的每个信道上依次轮询,直至在某信道上接收到电子设备100广播的路由器200的Wi-Fi名称和密码。其中,电子设备100广播的数据帧中还可以携带智能家居设备300的标识信息,标识信息例如可以是MAC地址或智能家居设备300工作在AP模式时的热点名称等。该标识信息可以携带在智能家居设备300广播的beacon帧中。智能家居设备300在接收到电子设备100广播的数据后,可判断数据帧携带的标识信息是否与自身的标识信息一致,若一致,则获取数据帧中携带的路由器200的Wi-Fi名称和密码。可知,上述携带路由器200的Wi-Fi名称和密码的数据帧可以是多个帧。
在另外一种可能的实现方式中,电子设备100可以通过近距离无线通讯技术(near field communication,NFC)、蓝牙、Wi-Fi直连接口等将路由器200的Wi-Fi名称和密码发送至智能家居设备300。
智能家居设备300接收到路由器200的Wi-Fi名称和密码之后,将工作模式从AP模式切换为STA模式,并在智能家居设备300支持的信道范围内轮询,搜索与上述路由器200的Wi-Fi名称一致的路由器200。智能家居设备300可以在信道M上接收到与上述Wi-Fi名称一致的路由器200发送的beacon帧。然后在信道M上向路由器200发送密码。路由器200可以验证智能家居设备300发送的密码是否正确,若正确,智能家居设备300和路由器200成功连接。
在另外一种可能的实施例中,上述S106可以在S103-S105之前实现,若电子设备100判断出路由器200的工作信道在智能家居设备300支持的信道范围内时,智能家居设备300可直接连接路由器200,接入网络。若路由器200当前的工作信道不属于智能家居设备300 支持的信道范围,智能家居设备300在接收到电子设备100发送的路由器200的名称和密码后,在其支持的信道范围内轮询时将无法搜索到与上述路由器200的Wi-Fi名称一致的路由器200,直至路由器200切换工作信道至智能家居设备300支持的信道范围内。
本申请实施例中,电子设备100可以判断路由器200的工作信道是否在智能设备300支持的信道范围内,若不在,则向路由器200发送切换工作信道的指令,以使切换后的工作信道在智能家居设备300支持的信道范围内,使智能家居设备300可以快速连接网络,不影响用户使用。
本申请图1实施例提供了一种智能家居系统,该智能家居系统中的电子设备100可以用于执行图10实施例中的电子设备100执行的所有或部分步骤,该智能家居系统中路由器200可以用于执行图10实施例中的路由器200执行的所有或部分步骤,该智能家居系统中智能家居设备300可以用于执行图10实施例中的智能家居设备300执行的所有或部分步骤。
本申请实施例提供了一种具体的智能家居设备接入网络的方法。
如图13所示,智能家居设备接入网络的方法至少可以包括以下几个步骤:
S201:路由器广播beacon帧。
具体地,路由器200可在信道X上以一定的周期广播beacon帧。
S202:电子设备确定路由器当前的工作信道以及路由器支持的信道范围。
具体地,电子设备100在开启WLAN后,可在其支持的信道范围内轮询,并在信道X上接收到路由器200广播的beacon帧。电子设备100可确定接收到beacon帧的信道为路由器200的工作信道。根据beacon帧的country字段确定路由器200支持的信道范围。
S203:电子设备连接路由器。
在一种可能的实施例中,电子设备100曾连接过路由器200,电子设备100在信道X上接收到路由器200广播的beacon帧后可自动连接路由器200。
在另一种可能的实施例中,电子设备100未曾连接过路由器200,需用户输入正确的密码方可与路由器200连接。可能地,电子设备100也可不与路由器200连接。
S204:智能家居设备广播beacon帧。
具体地,智能家居设备300工作在AP模式,在信道Y上以一定周期广播beacon帧。
S205:电子设备确定智能家居设备支持的信道范围。
具体地,电子设备100接收到用户输入的添加设备的指令(如用户点击图8实施例中的添加设备控件801)后,电子设备100可按照一定的时间间隔依次扫描每个信道,每扫描一个信道就回到信道X与路由器200连接,直到在信道Y上扫描到智能家居设备300发送的beacon帧。
S206:电子设备判断路由器当前的工作信道是否属于智能家居设备支持的信道范围,若是,执行S209;若否,执行S207。
S207:电子设备向路由器发送切换工作信道的指令。
具体地,切换工作信道的指令可以携带智能家居设备300支持的信道范围。路由器200可以根据自身支持的信道范围、智能家居设备300支持的信道范围,选择信道质量比较好的信道作为新的工作信道,例如为信道M。
S208:路由器切换工作信道。
具体地,路由器200切换工作信道至信道M后,在信道M上以一定周期向周围设备广播beacon帧,等待设备接入。
S209:电子设备连接智能家居设备,发送路由器的Wi-Fi名称和密码。
具体地,电子设备100断开与路由器200的连接,与智能家居设备300连接。其中,电子设备100与智能家居设备300连接的方式可以是用户点击图6实施例中的选项6022。或者是用户点击图9实施例中的选项901。
在一种可能的实施例中,电子设备100不与路由器200连接,电子设备100向智能家居设备300发送路由器的Wi-Fi名称和密码时,可直接在图7示出的用户界面70中选择目标路由器并输入该路由器的密码即可。
在另外一种可能的实施例中,电子设备100可不与智能家居设备200连接,电子设备100可以组播或者广播的方式将路由器200的Wi-Fi名称和密码发送至智能家居设备300。具体的发送过程可见前述实施例介绍的电子设备如何将路由器的Wi-Fi名称和密码发送至智能家居设备部分的相关描述,此处不赘述。S210:智能家居设备将工作模式从AP模式切换为STA模式。
具体地,智能家居设备300接收到路由器200的Wi-Fi名称和密码后,将工作模式从AP模式切换为STA模式,在智能家居设备300支持的信道范围内轮询,查找与接收到的Wi-Fi名称一致的路由器。
S211:智能家居设备连接路由器。
具体地,智能家居设备300可在信道M上接收到路由器200广播的beacon帧,beacon帧可以携带路由器200的Wi-Fi名称(SSID)。智能家居设备300查找到路由器200后,在信道M上向路由器200发送密码,路由器200可以确定智能家居设备300发送的密码是否正确,若正确,允许智能家居设备300接入。此时,智能家居设备300与路由器200连接成功,智能家居设备300成功接入网络。
本申请图1实施例提供了一种智能家居系统,该智能家居系统中的电子设备100可以用于执行图11实施例中的电子设备100执行的所有或部分步骤,该智能家居系统中路由器200可以用于执行图11实施例中的路由器200执行的所有或部分步骤,该智能家居系统中智能家居设备300可以用于执行图11实施例中的智能家居设备300执行的所有或部分步骤。
不限于向路由器200发送切换信道的指令,电子设备100还可以向智能家居设备300发送扩充信道范围的指令。
具体地,如图14所示,智能家居设备接入网络的方法至少可以包括以下几个步骤:
S301:电子设备确定路由器的工作信道。
S302:电子设备确定智能家居设备支持的信道范围。
S303:电子设备判断路由器的工作信道是否在智能家居设备支持的信道范围内;若是,执行S306;若否,执行S304。
S304:电子设备向智能家居设备发送扩充信道范围的指令。
S305:智能家居设备扩充信道范围。
S306:电子设备将路由器的Wi-Fi名称和密码发送至智能家居设备。
S307:智能家居设备连接路由器。
具体地,电子设备100确定路由器200的工作信道的实现方式与图10实施例中描述的实现方式一致,此处不赘述。
具体地,电子设备100确定智能家居设备300支持的信道范围的实现方式与图10实施例中描述的实现方式一致,此处不赘述。
电子设备100判断出路由器200的工作信道不在智能家居设备300支持的信道范围内时,电子设备100向智能家居设备300发送扩充信道范围的指令。其中,扩充信道范围的指令可以携带路由器200的工作信道。
智能家居设备300在接收到电子设备100发送的扩充信道范围的指令后,将智能家居设备300支持的信道范围扩充为可包含路由器200的工作信道的信道范围。
在一种可能的实现方式中,智能家居设备300可将其支持的信道范围扩充为路由器200支持的信道范围。电子设备100可确定路由器200支持的信道范围,具体实现方式与图10实施例描述的方式一致,此处不赘述。
例如,智能家具设备300支持的信道范围为[1,11],路由器300支持的信道范围为[1,13],则智能家居设备300需要将其支持的信道范围从[1,11]扩展为[1,13]。
具体地,电子设备100向智能家居设备300发送的扩充信道范围的指令可以携带路由器200支持的国家码(例如CN)及信道范围(例如信道1-信道13)。智能家居设备300接收到该扩充信道的指令后,将自身的国家码修改为路由器200支持的国家码(例如CN),将自身支持的信道范围更改为路由器200支持的信道范围(例如信道1-信道13)。
具体地,电子设备100将路由器200的Wi-Fi名称和密码发送至智能家居设备300的实现方式可见图10实施例的相关描述,此处不赘述。
本申请实施例中,电子设备100可以判断路由器200的工作信道是否在智能设备300支持的信道范围内,若不在,则向智能家居设备300发送扩充信道的指令,以使扩充信道后的智能家居设备300可以与路由器200建立连接,使智能家居设备300可以快速连接网络,不影响用户使用。
本申请图1实施例提供了一种智能家居系统,该智能家居系统中的电子设备100可以用于执行图12实施例中的电子设备100执行的所有或部分步骤,该智能家居系统中路由器200可以用于执行图12实施例中的路由器200执行的所有或部分步骤,该智能家居系统中智能家居设备300可以用于执行图12实施例中的智能家居设备300执行的所有或部分步骤。
本申请实施例还提供了一种计算机可读存储介质。上述方法实施例中的全部或者部分流程可以由计算机程序来指令相关的硬件完成,该程序可存储于上述计算机存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。该计算机可读存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质 中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例装置中的模块可以根据实际需要进行合并、划分和删减。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (22)

  1. 一种电子设备,其特征在于,包括:一个或多个处理器、存储器以及无线通信模块;
    所述存储器以及所述无线通信模块与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器执行所述计算机指令以执行:
    确定路由器的工作信道以及所述路由器支持的信道范围;
    确定智能家居设备支持的信道范围;
    判断出所述路由器的工作信道不属于所述智能家居设备支持的信道范围后,向所述路由器发送切换工作信道的指令,以使所述路由器切换后的工作信道属于所述智能家居设备支持的信道范围;其中,所述切换信道的指令携带所述智能家居设备支持的信道范围;所述路由器切换后的工作信道属于所述路由器支持的信道范围;
    发送所述路由器的Wi-Fi名称和密码至所述智能家居设备,以使所述智能家居设备通过所述路由器的Wi-Fi名称和密码连接所述路由器。
  2. 如权利要求1所述的电子设备,其特征在于,所述确定路由器的工作信道以及所述路由器支持的信道范围包括:
    接收所述路由器广播的beacon帧;
    确定接收所述beacon帧的信道为所述路由器的工作信道;
    根据所述beacon帧中的country字段或vendor specific字段确定所述路由器支持的信道范围。
  3. 如权利要求1所述的电子设备,其特征在于,所述确定路由器的工作信道以及所述路由器支持的信道范围包括:
    接收所述路由器发送的probe response帧;
    确定接收所述probe response帧的信道为所述路由器的工作信道;
    根据所述probe response帧中的country字段或vendor specific字段确定所述路由器支持的信道范围。
  4. 如权利要求1-3任一项所述的电子设备,其特征在于,所述确定所述智能家居设备支持的信道范围包括:
    接收所述智能家居设备广播的beacon帧;
    根据所述beacon帧中的country字段或vendor specific字段确定所述智能家居设备支持的信道范围。
  5. 如权利要求1-3任一项所述的电子设备,其特征在于,所述确定所述智能家居设备支持的信道范围包括:
    接收所述智能家居设备广播的probe response帧;
    根据所述probe response帧中的country字段或vendor specific字段确定所述智能家居设备支持的信道范围。
  6. 如权利要求1-5任一项所述的电子设备,其特征在于,所述发送所述路由器的Wi-Fi名称和密码至所述智能家居设备之前,所述处理器还用于执行:连接所述智能家居设备。
  7. 如权利要求1-5任一项所述的电子设备,其特征在于,所述发送所述路由器的Wi-Fi名称和密码至所述智能家居设备包括:
    在所述电子设备支持的每个信道内依次广播所述路由器的Wi-Fi名称和密码的信息;其中,所述信息携带所述智能家居设备的标识信息,以使所述智能家居设备在其支持的信道范围内依次轮询接收所述信息,并判断所述标识信息是否正确,若正确,则从所述信息中获取所述路由器的名称和密码。
  8. 一种智能家居系统,其特征在于,包括:电子设备、路由器及智能家居设备;其中,所述电子设备被配置为:
    确定所述路由器的工作信道以及所述路由器支持的信道范围;
    确定所述智能家居设备支持的信道范围;
    判断出所述路由器的工作信道不属于所述智能家居设备支持的信道范围后,向所述路由器发送切换工作信道的指令;其中,所述切换工作信道的指令携带所述智能家居设备支持的信道范围;
    所述路由器被配置为:
    接收所述切换工作信道的指令,并切换工作信道;其中,切换后的工作信道属于所述智能家居设备支持的信道范围,所述切换后的工作信道属于所述路由器支持的信道范围;
    所述电子设备还被配置为:发送所述路由器的Wi-Fi名称和密码至所述智能家居设备;
    所述智能家居设备被配置为:通过所述路由器的Wi-Fi名称和密码连接所述路由器。
  9. 如权利要求8所述的智能家居系统,其特征在于,所述电子设备被配置为确定所述路由器的工作信道以及所述路由器支持的信道范围包括:
    接收所述路由器广播的beacon帧;
    确定接收所述beacon帧的信道为所述路由器的工作信道;
    根据所述beacon帧中的country字段或vendor specific字段确定所述路由器支持的信道范围。
  10. 如权利要求8或9所述的智能家居系统,其特征在于,所述电子设备被配置为确定所述智能家居设备支持的信道范围包括:
    接收所述智能家居设备广播的beacon帧;
    根据所述beacon帧中的country字段或vendor specific字段确定所述智能家居设备支持的信道范围。
  11. 如权利要求8-10任一项所述的智能家居系统,其特征在于,所述电子设备还被配置为发送所述路由器的Wi-Fi名称和密码至所述智能家居设备之前,所述电子设备还用于连接所述智能家居设备。
  12. 一种路由器,应用于智能家居系统,所述智能家居系统包括所述路由器、电子设备和智能家居设备,其特征在于,所述路由器包括:一个或多个处理器、存储器以及无线通信模块;
    所述存储器以及无线通信模块与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器执行所述计 算机指令以执行:
    在所述路由器的工作信道上广播所述路由器支持的信道范围;
    接收所述电子设备发送的切换工作信道的指令;其中,所述切换工作信道的指令所述携带智能家居设备支持的信道范围;所述切换工作信道的指令为所述电子设备确定所述路由器的工作信道不属于所述智能家居设备支持的信道范围内之后发送的指令;
    所述路由器确定信噪比高于第一阈值的信道作为目标工作信道;其中,所述目标工作信道属于所述智能家居设备支持的信道范围,所述目标工作信道属于所述路由器支持的信道范围;
    所述路由器切换工作信道至所述目标工作信道。
  13. 一种电子设备,其特征在于,包括:一个或多个处理器、存储器以及无线通信模块;
    所述存储器以及所述无线通信模块与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器执行所述计算机指令以执行:
    确定路由器的工作信道;
    确定智能家居设备支持的信道范围;
    判断出所述路由器的工作信道不属于所述智能家居设备支持的信道范围后,向所述智能家居设备发送扩充信道范围的指令,以使所述智能家居更改后的信道范围包括所述路由器的工作信道;其中,所述扩充信道范围的指令包括所述路由器的工作信道;
    发送所述路由器的Wi-Fi名称和密码至所述智能家居设备,以使所述智能家居设备通过所述路由器的Wi-Fi名称和密码连接所述路由器。
  14. 一种智能家居设备,应用于智能家居系统,所述智能家居系统包括所述路由器、电子设备和智能家居设备,其特征在于,所述智能家居设备包括:一个或多个处理器、存储器以及无线通信模块;
    所述存储器以及无线通信模块与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器执行所述计算机指令以执行:
    广播所述智能家居设备支持的信道范围;
    接收所述电子设备发送的扩充信道范围的指令;其中,所述扩充信道范围的指令携带所述路由器的工作信道;所述扩充信道范围的指令为所述电子设备确定所述路由器的工作信道不属于所述智能家居设备支持的信道范围后发送的指令;
    根据所述路由器的工作信道扩充信道范围;其中,更改后的信道范围包括所述路由器的工作信道。
  15. 一种智能家居设备接入网络的方法,其特征在于,包括:
    确定路由器的工作信道以及所述路由器支持的信道范围;
    确定智能家居设备支持的信道范围;
    判断出所述路由器的工作信道不属于所述智能家居设备支持的信道范围后,向所述路由器发送切换工作信道的指令,以使所述路由器切换后的工作信道属于所述智能家居设备 支持的信道范围;其中,所述切换信道的指令携带所述智能家居设备支持的信道范围;
    发送所述路由器的Wi-Fi名称和密码至所述智能家居设备,以使所述智能家居设备通过所述路由器的Wi-Fi名称和密码连接所述路由器。
  16. 如权利要求15所述的方法,其特征在于,所述确定路由器的工作信道以及所述路由器支持的信道范围包括:
    接收所述路由器广播的beacon帧;
    确定接收所述beacon帧的信道为所述路由器的工作信道;
    根据所述beacon帧中的country字段或vendor specific字段确定所述路由器支持的信道范围。
  17. 如权利要15所述的方法,其特征在于,所述确定路由器的工作信道以及所述路由器支持的信道范围包括:
    接收所述路由器发送的probe response帧;
    确定接收所述probe response帧的信道为所述路由器的工作信道;
    根据所述probe response帧中的country字段或vendor specific字段确定所述路由器支持的信道范围。
  18. 如权利要求15-17任一项所述的方法,其特征在于,所述确定所述智能家居设备支持的信道范围包括:
    接收所述智能家居设备广播的beacon帧;
    根据所述beacon帧中的country字段或vendor specific字段确定所述智能家居设备支持的信道范围。
  19. 如权利要求15-17任一项所述的方法,其特征在于,所述确定所述智能家居设备支持的信道范围包括:
    接收所述智能家居设备广播的probe response帧;
    根据所述probe response帧中的country字段或vendor specific字段确定所述智能家居设备支持的信道范围。
  20. 如权利要求15-19任一项所述的方法,其特征在于,所述发送所述路由器的Wi-Fi名称和密码至所述智能家居设备之前,所述方法还包括:连接所述智能家居设备。
  21. 如权利要求15-19任一项所述的方法,其特征在于,所述发送所述路由器的Wi-Fi名称和密码至所述智能家居设备包括:
    在上述电子设备支持的每个信道上依次广播所述路由器的Wi-Fi名称和密码的信息;其中,所述信息携带所述智能家居设备的标识信息,以使所述智能家居设备在其支持的信道范围内依次轮询接收所述信息,并判断所述标识信息是否正确,若正确,则从所述信息中获取所述路由器的Wi-Fi名称和密码。
  22. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求15-21所述的智能家居设备接入网络的方法。
PCT/CN2018/125765 2018-12-29 2018-12-29 智能家居设备接入网络的方法及相关设备 WO2020133467A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2021538020A JP7234379B2 (ja) 2018-12-29 2018-12-29 スマートホームデバイスによってネットワークにアクセスするための方法および関連するデバイス
US17/419,123 US20220124607A1 (en) 2018-12-29 2018-12-29 Method for Accessing Network by Smart Home Device and Related Device
EP18944472.2A EP3883299A4 (en) 2018-12-29 2018-12-29 PROCESS ALLOWING AN INTELLIGENT HOME APPLIANCE TO ACCESS A NETWORK AND ASSOCIATED DEVICE
PCT/CN2018/125765 WO2020133467A1 (zh) 2018-12-29 2018-12-29 智能家居设备接入网络的方法及相关设备
CN201880094381.0A CN112237031B (zh) 2018-12-29 2018-12-29 智能家居设备接入网络的方法及相关设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125765 WO2020133467A1 (zh) 2018-12-29 2018-12-29 智能家居设备接入网络的方法及相关设备

Publications (1)

Publication Number Publication Date
WO2020133467A1 true WO2020133467A1 (zh) 2020-07-02

Family

ID=71128017

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125765 WO2020133467A1 (zh) 2018-12-29 2018-12-29 智能家居设备接入网络的方法及相关设备

Country Status (5)

Country Link
US (1) US20220124607A1 (zh)
EP (1) EP3883299A4 (zh)
JP (1) JP7234379B2 (zh)
CN (1) CN112237031B (zh)
WO (1) WO2020133467A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022098406A1 (en) * 2020-11-05 2022-05-12 Visa International Service Association One-time wireless authentication of an internet-of-things device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379772B (zh) * 2018-12-12 2020-12-08 乐鑫信息科技(上海)股份有限公司 网络信道的切换方法、装置、设备和存储介质
CN112929862B (zh) * 2021-02-04 2023-04-25 青岛海信传媒网络技术有限公司 基于蓝牙Beacon协议的设备连接方法
CN116668964A (zh) * 2021-02-05 2023-08-29 Oppo广东移动通信有限公司 设备配网方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014137819A2 (en) * 2013-03-08 2014-09-12 Microchip Technology Incorporated Method for wireless easy connect
CN107426725A (zh) * 2017-04-12 2017-12-01 深圳市友悦机器人科技有限公司 无线网络配置装置、智能终端和物联网设备
CN107454655A (zh) * 2017-07-21 2017-12-08 上海斐讯数据通信技术有限公司 一种智能设备的连接方法和系统
CN107801229A (zh) * 2017-08-31 2018-03-13 捷开通讯(深圳)有限公司 智能家居配网方法、终端、设备及具有存储功能的装置
CN108012311A (zh) * 2017-12-25 2018-05-08 深圳市闪联信息技术有限公司 一种智能设备自动切换配置路由器的方法
CN108200615A (zh) * 2017-12-28 2018-06-22 生迪智慧科技有限公司 无线路由器的控制方法、装置和led照明装置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958982B2 (en) * 2003-07-16 2005-10-25 Interdigital Technology Corporation Method and apparatus for storing mobile station physical measurements and MAC performance statistics in a management information base of an access point
JP5018440B2 (ja) 2007-12-06 2012-09-05 日本電気株式会社 無線lan設定方法及び無線lan端末
EP2170001B1 (en) * 2008-09-30 2016-01-13 Motorola Mobility LLC Embedding graphic data in a WIFI beacon frame
WO2013002545A2 (ko) 2011-06-27 2013-01-03 엘지전자 주식회사 무선 통신 시스템에서 데이터베이스 액세스를 제공하는 방법 및 장치
US9210731B2 (en) 2011-07-25 2015-12-08 Qualcomm Incorporated Direct link setup through an extended service set
CN105323826B (zh) * 2014-07-29 2019-04-05 中国移动通信集团公司 一种接入无线局域网络的方法、接入点及终端
KR20160027861A (ko) * 2014-09-02 2016-03-10 삼성전자주식회사 통신 채널 운용 방법 및 이를 지원하는 전자 장치
CN104703295A (zh) 2015-03-30 2015-06-10 小米科技有限责任公司 网络接入方法及装置
CN105407499B (zh) * 2015-10-26 2019-01-15 珠海格力电器股份有限公司 信息处理方法、装置及电子设备
CN105472699B (zh) * 2015-12-08 2019-02-01 深圳市智美达科技有限公司 智能家居设备的接入方法及系统
CN106535192A (zh) * 2016-11-29 2017-03-22 北京小米移动软件有限公司 实现智能设备接入路由器的方法及装置和移动终端
CN106604307A (zh) * 2016-12-22 2017-04-26 百度在线网络技术(北京)有限公司 无线设备配置方法和无线设备
CN106961693B (zh) * 2017-03-30 2020-08-04 深圳市网是科技有限公司 一种确定无线接入设备工作信道的方法
CN107613530B (zh) * 2017-10-11 2020-03-13 上海斐讯数据通信技术有限公司 基于路由器的物联网设备的配置方法及双频无线路由器
CN108848490A (zh) * 2018-06-01 2018-11-20 Oppo(重庆)智能科技有限公司 一种调整无线网络信道的方法、移动终端及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014137819A2 (en) * 2013-03-08 2014-09-12 Microchip Technology Incorporated Method for wireless easy connect
CN107426725A (zh) * 2017-04-12 2017-12-01 深圳市友悦机器人科技有限公司 无线网络配置装置、智能终端和物联网设备
CN107454655A (zh) * 2017-07-21 2017-12-08 上海斐讯数据通信技术有限公司 一种智能设备的连接方法和系统
CN107801229A (zh) * 2017-08-31 2018-03-13 捷开通讯(深圳)有限公司 智能家居配网方法、终端、设备及具有存储功能的装置
CN108012311A (zh) * 2017-12-25 2018-05-08 深圳市闪联信息技术有限公司 一种智能设备自动切换配置路由器的方法
CN108200615A (zh) * 2017-12-28 2018-06-22 生迪智慧科技有限公司 无线路由器的控制方法、装置和led照明装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3883299A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022098406A1 (en) * 2020-11-05 2022-05-12 Visa International Service Association One-time wireless authentication of an internet-of-things device

Also Published As

Publication number Publication date
EP3883299A1 (en) 2021-09-22
EP3883299A4 (en) 2021-12-01
US20220124607A1 (en) 2022-04-21
JP7234379B2 (ja) 2023-03-07
CN112237031B (zh) 2022-01-11
JP2022515863A (ja) 2022-02-22
CN112237031A (zh) 2021-01-15

Similar Documents

Publication Publication Date Title
EP3926448A1 (en) Device control page display method, related apparatus and system
WO2021147686A1 (zh) 引导智能设备接入网络的方法、介质、控制终端及系统
WO2021078284A1 (zh) 一种内容接续方法及电子设备
CN113272745B (zh) 智能家居设备分享系统、方法及电子设备
WO2020133467A1 (zh) 智能家居设备接入网络的方法及相关设备
CN111405681B (zh) Wi-Fi Aware的建链方法、系统、电子设备和存储介质
WO2020132818A1 (zh) 无线短距离音频共享方法及电子设备
WO2020173375A1 (zh) 一种多智能设备联动控制的方法、设备以及系统
CN113885759A (zh) 通知消息处理方法、设备、系统及计算机可读存储介质
WO2021052204A1 (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
CN116114239B (zh) 音量管理的方法及电子设备
WO2020155870A1 (zh) 设备控制方法和设备
WO2021197071A1 (zh) 无线通信系统及方法
CN111556479B (zh) 信息共享方法及相关装置
CN112887926A (zh) 一种呼叫方法及装置
CN113973398A (zh) 无线网络连接方法、电子设备及芯片系统
WO2020133006A1 (zh) 基于低功耗蓝牙的通信方法及相关装置
CN113194454B (zh) 数据分享的方法、电子设备
CN114531742B (zh) 双Wi-Fi连接方法及电子设备
CN113950045B (zh) 签约数据的下载方法和电子设备
WO2023025059A1 (zh) 一种通信系统及通信方法
CN112840680A (zh) 位置信息处理方法及相关装置
CN114697438A (zh) 一种利用智能设备进行通话的方法及设备
CN116560536A (zh) 应用组件设置方法及相关设备
CN116560535A (zh) 应用组件管理方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18944472

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021538020

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018944472

Country of ref document: EP

Effective date: 20210615