WO2022057521A1 - 配置设备的方法及设备 - Google Patents

配置设备的方法及设备 Download PDF

Info

Publication number
WO2022057521A1
WO2022057521A1 PCT/CN2021/111731 CN2021111731W WO2022057521A1 WO 2022057521 A1 WO2022057521 A1 WO 2022057521A1 CN 2021111731 W CN2021111731 W CN 2021111731W WO 2022057521 A1 WO2022057521 A1 WO 2022057521A1
Authority
WO
WIPO (PCT)
Prior art keywords
antenna
home
information
configuration information
home device
Prior art date
Application number
PCT/CN2021/111731
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 EP21868349.8A priority Critical patent/EP4203409A4/en
Priority to US18/245,776 priority patent/US20230337147A1/en
Publication of WO2022057521A1 publication Critical patent/WO2022057521A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/28TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non transmission
    • H04W52/283Power depending on the position of the mobile
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0404Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • H04B7/0608Antenna selection according to transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0805Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/54Signalisation aspects of the TPC commands, e.g. frame structure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a method and device for configuring a device.
  • an unconfigured device such as a smart speaker needs to be connected to the network device through the network configuration information of the network device, and the unconfigured device may not have an input device, so it cannot directly receive the network configuration information input by the user. . Therefore, the user needs to connect to the unconfigured device through another device having an input device, such as a mobile phone, and provide the unconfigured device with the network configuration information. It can be seen that this configuration method is complex and inefficient.
  • the present application provides a method and device for configuring a device.
  • an embodiment of the present application provides a method for configuring a device, the method comprising:
  • the first device receives the network configuration information from the second device
  • the first device sends the network configuration information to at least one third device, where the network configuration information is used for the first device and the at least one third device to connect to a network device, the first device and any One of the third devices is provided with a first antenna, the other is provided with a second antenna, the transmit power of the first antenna is less than a first power threshold, and the longest transmit distance of the first antenna is the first antenna A distance threshold, the transmit power of the second antenna is greater than the first power threshold.
  • At least one of the first device and the third device may be an Internet of things (Internet of things, IoT) device such as a home device
  • the second device may be an electronic device that stores network configuration information
  • the second device may also be an electronic device that stores network configuration information.
  • IoT devices such as home devices with network configuration information.
  • the first device and the third device may be multiple speakers in an audio system
  • the second device may be a mobile phone.
  • the first antenna may be used as a weak antenna or a false antenna
  • the second antenna may be used as a strong antenna or a true antenna
  • the first distance threshold may be the longest transmission distance when the first antenna is used to transmit signals.
  • the first antenna may be used to transmit signals and the second antenna may be used to receive and transmit signals.
  • the first device may receive the network configuration information from the second device, if the first device is within the first distance threshold range (that is, the distance from the first device is less than or equal to the first distance threshold) there is also at least one third device, one of the third device and the first device is provided with a first antenna, the other is provided with a second antenna, and the transmit power of the second antenna > power threshold 1 > first the transmit power of the antenna, the first device can send the network configuration information to the at least one third device. Since the network configuration information can be used to instruct the first device or the third device to connect to the network device, at least one third device can be connected to the network device based on the network configuration information.
  • the at least one third device can also send the network configuration information to more devices in the above-mentioned manner, so that the network configuration information can be quickly sent to other devices, so that other devices can also quickly connect to the network There is no need for users to configure each device one by one, which greatly improves the configuration efficiency.
  • the first terminal may also provide more types of device configuration information to the third device in a manner similar to providing network configuration information to the third device.
  • the network configuration information includes a device identifier (such as a service set identifier (SSID)) of the network device and a password of the network device.
  • a device identifier such as a service set identifier (SSID)
  • SSID service set identifier
  • the network device includes a routing device, a gateway device or a main control device.
  • the network device when the network where the network device is located is a network based on the wireless fidelity (Wi-Fi) protocol, the network device may be a routing device; when the network where the network device is located is a network based on the Bluetooth protocol or the Zigbee protocol, The network device can be a gateway device or a master device.
  • Wi-Fi wireless fidelity
  • the method before the first device sends the network configuration information to at least one third device, the method further includes:
  • the first device determines that any third device is in an unconfigured state according to the first configuration indication information.
  • the method before the first device sends the network configuration information to at least one third device, the method further includes:
  • the first device broadcasts third configuration indication information to the at least one third device, where the third configuration indication information is used to trigger the at least one third device to receive the network configuration information.
  • the third device can actively broadcast the first configuration indication information to the first device, and the first device can also actively broadcast the third configuration indication information to the third device, then at least one of the two methods can make the The first device senses that there are still third devices in an unconfigured state around, which improves the reliability and efficiency of the first device sensing the third device, and facilitates subsequent provision of device configuration information such as network configuration information to these third devices.
  • the third device may send the first configuration indication information through the second antenna with higher transmit power, so that the first device within a larger distance can perceive the third device.
  • the first device The device can also send the third configuration indication information through the second antenna with higher transmission power, so that the third device within a larger distance can perceive the first device, improving the reliability of mutual perception between the first device and the third device sex.
  • the third device may also broadcast the first configuration information through the first antenna, and similarly, the first device may also broadcast the third configuration indication information through the first antenna.
  • any third device is provided with the first antenna, and before the first device sends the network configuration information to at least one third device, the method further includes:
  • the first device sends the network configuration information to at least one third device, including:
  • the first device sends the network configuration information to at least one third device through the first communication connection.
  • the third device when the third device is provided with the first antenna, the first device may be provided with the second antenna. Also, the third device and the first device may both be provided with the first antenna and the second antenna.
  • the first authentication information may include a personal identification number (personal identification number, PIN) or a key based on an advanced encryption standard (advanced encryption standard, AES), such as a key based on AES128.
  • PIN personal identification number
  • AES advanced encryption standard
  • the first device can receive the first authentication information sent by the third device through the first antenna only when it is within the first distance threshold of the third device.
  • the first authentication information can be sent in plain text, which not only saves the process of negotiating the secret key, improves the efficiency of obtaining device configuration information, but also reduces the possibility of misconnection with other devices, and improves the reliability of obtaining device configuration information. .
  • the first device since the third device has sent the first authentication information to the first device through the first antenna, and the first device establishes a secure first communication connection based on the first authentication information, the first device can Using the second antenna with higher transmit power to quickly send device configuration information such as network configuration information can also ensure that when the first device or the third device obtains the authentication information of the opposite end, even if there is a connection between the first device and the third device The distance is greater than the first distance threshold, but as long as the distance is less than or equal to the second distance threshold, the first device can send device configuration information to the third device, improving the reliability of sending device configuration information.
  • the first device may also send the device configuration information to the third device through the first antenna.
  • the first device is provided with a first antenna, then the first device can send the authentication information of the first device to the third device through the first antenna, and then the third device receives the authentication information when the third device receives the authentication information.
  • a communication connection with the first device is established. That is, the embodiment of the present application does not limit the subject of sending authentication information and establishing a communication connection between the first device and the third device. As long as the authentication information is sent through the first antenna, the third device can be ensured.
  • a device can securely send device configuration information to a third device within a first distance threshold.
  • one of the first device and the second device is provided with the first antenna, and the other is provided with the second antenna, and the first device receives the network configuration from the second device Before the information, the method further includes:
  • the first device broadcasts second configuration indication information to the second device, where the second configuration indication information is used to indicate that the first device is in an unconfigured state;
  • the method further includes:
  • the first device is connected to the network device based on the network configuration information.
  • the first device and the second device is provided with a first antenna, and the other is provided with a second antenna, and when the second device is a mobile phone, the first device may be provided with a first antenna, and the second device may be provided with a first antenna.
  • the first antenna may not be provided.
  • the second device may publish the device configuration service through Wi-Fi awareness, and the first device may subscribe to the configuration service through Wi-Fi awareness, so that the first device determines that the second device stores device configurations such as network configuration information When the information is received, the device configuration information is obtained from the second device.
  • the manner in which the first device acquires device configuration information such as network configuration information from the second device may not be limited.
  • the first device is provided with the first antenna, and before the first device receives the network configuration information from the second device, the method further includes:
  • the first device broadcasts second authentication information to the second device through the first antenna, where the second authentication information is used by the second device to establish a second authentication with the first device.
  • the first device receives network configuration information from the second device, including:
  • the first device receives the network configuration information sent by the second device based on the second communication connection.
  • the first device is provided with the first antenna, and the first device sends the network configuration information to at least one third device, including:
  • the first device broadcasts the network configuration information to the at least one third device through the first antenna.
  • the first device may use device configuration information such as network configuration information of the third device through the first antenna when it is determined that the third device exists within the first distance threshold range.
  • the first device may broadcast the device configuration information through the first antenna when acquiring the device configuration information. Since the first distance threshold is short and can be considered as a safe communication distance, the first device can safely send the device configuration information to the third device without establishing a communication connection between the first device and the third device, The configuration efficiency is further improved.
  • the first device receiving the first configuration indication information broadcast by any third device includes:
  • the first device receives the first configuration indication information broadcast by any third device through the Wi-Fi protocol or the Bluetooth protocol.
  • receiving, by the first device, the first authentication information broadcast by the any third device through the first antenna including:
  • the first device receives, through the Wi-Fi protocol or the Bluetooth protocol, the first authentication information broadcast by the any third device through the first antenna;
  • the first device establishes a first communication connection with the any third device based on the first authentication information, including:
  • the first device establishes the first communication connection with the any third device based on the Wi-Fi protocol or the Bluetooth protocol and the first authentication information.
  • an embodiment of the present application provides an apparatus for configuring a device.
  • the apparatus can be set in an IOT device and can be used to execute any of the methods described in the first aspect.
  • an embodiment of the present application provides a device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in any one of the first aspects when the computer program is invoked.
  • the device includes one or more antennas, and the one or more antennas can be divided into a first antenna (ie an ultra-short-range antenna, also called a weak antenna or a dummy antenna) and a second antenna (ie a normal antenna, Also known as strong antenna or true antenna).
  • the transmission power of the wireless signal transmitted by the first antenna may be less than the first power threshold, the longest transmission distance is the first distance threshold, the transmission power of the wireless signal transmitted by the second antenna may be greater than the first power threshold, and the longest transmission distance is the second distance threshold, the first distance threshold may be smaller than the second distance threshold.
  • the first distance threshold may be less than or equal to 1 meter, eg, the first distance threshold may be 1 meter, 50 centimeters, or 30 centimeters.
  • the device may control switching between the second antenna and the first antenna through the processor.
  • the device includes a microcontroller unit (MCU), and the MCU is provided with a general-purpose input/output (GPIO) interface.
  • MCU microcontroller unit
  • GPIO general-purpose input/output
  • the MCU can control the switching between the second antenna and the first antenna through the GPIO.
  • the device includes a wireless communication module, which can provide wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth (bluetooth, BT), Zigbee (a low-speed short-distance transmission based on wireless local area networks, WLAN) (such as Wi-Fi) Wireless Internet Protocol, also known as Zigbee) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Bluetooth blue, BT
  • Zigbee a low-speed short-distance transmission based on wireless local area networks, WLAN
  • Wi-Fi Wireless Internet Protocol
  • Zigbee Wireless Internet Protocol
  • an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement any one of the above first aspects. one of the methods described.
  • the chip system may be a single chip or a chip module composed of multiple chips.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in any one of the foregoing first aspects.
  • an embodiment of the present application provides a computer program product that, when the computer program product runs on a device, causes the device to execute the method described in any one of the foregoing first aspects.
  • FIG. 1 is a schematic structural diagram of a household device provided by an embodiment of the application.
  • FIG. 2A is a schematic structural diagram of an antenna provided by an embodiment of the present application.
  • FIG. 2B is a schematic structural diagram of an antenna provided by an embodiment of the present application.
  • FIG. 2C is a schematic structural diagram of another antenna provided by an embodiment of the present application.
  • FIG. 2D is a schematic structural diagram of another antenna provided by an embodiment of the present application.
  • FIG. 2E is a schematic diagram of a communication scenario provided by an embodiment of the application.
  • FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a device configuration system according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another device configuration system provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of a device configuration method provided by an embodiment of the present application.
  • FIG. 7 is a schematic state diagram of a household device provided by an embodiment of the present application.
  • FIG. 8 is a schematic state diagram of another household device provided by an embodiment of the present application.
  • FIG. 9 is a schematic state diagram of another household device provided by an embodiment of the present application.
  • FIG. 10 is a flowchart of another device configuration method provided by an embodiment of the present application.
  • FIG. 11 is a schematic state diagram of another device provided by an embodiment of the application.
  • FIG. 12 is a schematic state diagram of another device provided by an embodiment of the present application.
  • FIG. 13 is a schematic state diagram of another device provided by an embodiment of the present application.
  • FIG. 14 is a flowchart of another device configuration method provided by an embodiment of the present application.
  • the device configuration method provided by the embodiments of the present application can be applied to household appliances such as smart speakers, smart switches, smart sockets, smart refrigerators, smart air conditioners, smart light bulbs, smart TVs, smart cameras, smart fans, rice cookers, weight scales, or body fat scales. It can also be applied to IoT devices that need to be configured to connect to network devices in other occasions such as detection equipment, sensing equipment, and security equipment.
  • the embodiments of the present application do not limit any specific types of IoT devices.
  • the device configuration methods provided in the embodiments of the present application can also be used for electronic devices.
  • FIG. 1 is a schematic structural diagram of a home appliance 100 according to an embodiment of the present application.
  • the home appliance 100 may include: a processor 101, an external memory interface 102, an internal memory 103, a USB interface 105, a power management module 104, an antenna, a wireless communication module 108, and other functional modules.
  • the other functional modules are used to implement related functions of the home appliance 100 .
  • a smart speaker may include an audio module 107, a speaker 107A, a display screen 106, and the like.
  • the smart TV may also include an audio module 107, a speaker 107A, a display screen 106, and the like.
  • the smart air conditioner may include a refrigeration module and the like
  • the smart light bulb may include a light emitting module and the like.
  • the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video Codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • a memory may also be provided in the processor 101 for storing instructions and data.
  • the controller may be the nerve center and command center of the household device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • the power management module 104 is used to connect power.
  • the power management module 104 may also be connected with the processor 101, the internal memory 103, the display screen 106, the wireless communication module 108, and the like.
  • the power management module 104 receives power input through the USB interface 105, and supplies power to the processor 101, the internal memory 103, the display screen 106, the wireless communication module 108, and the like.
  • the power management module 104 may also be provided in the processor 101 .
  • the wireless communication function of the home device 100 can be implemented by the antenna a and the wireless communication module 108 and the like.
  • the wireless communication module 108 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 108 receives electromagnetic waves via the antenna a, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 101 .
  • the wireless communication module 108 can also receive the signal to be sent from the processor 101, perform frequency modulation on it, amplify it, and convert it into an electromagnetic wave for radiation through the antenna.
  • the antenna a of the home device 200 is coupled with the wireless communication module 108 so that the home device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication module 108 in this embodiment of the present application may be a Bluetooth module or a Wi-Fi module.
  • the wireless communication module 108 is used for data transmission with the electronic device 100 , the router 120 and the cloud server 130 and other devices.
  • the wireless communication module 108 may provide a wireless communication solution based on a WLAN (eg, Wi-Fi) network, BT, Zigbee, and the like.
  • the above-mentioned antenna a may include one or more antennas.
  • the one or more antennas can be divided into a first antenna (ie, an ultra-short-range antenna, also called a weak antenna or a fake antenna) and a second antenna (ie, a normal antenna, also called a strong antenna or a true antenna).
  • the transmission power of the wireless signal transmitted by the first antenna may be less than the first power threshold, the longest transmission distance is the first distance threshold, the transmission power of the wireless signal transmitted by the second antenna may be greater than the first power threshold, and the longest transmission distance is the second distance threshold, the first distance threshold may be smaller than the second distance threshold.
  • the second antenna and the first antenna are switchable.
  • the second antenna and the first antenna implement network communication with other devices (eg, mobile phones) through the wireless communication module on the home device 100 .
  • processor 101 includes MCU 109 provided with GPIO interface 110 .
  • the MCU 109 can control the switching between the second antenna and the first antenna through the GPIO 110 .
  • FIG. 2A shows a schematic diagram of the antenna structure in the household device 100 provided by the embodiment of the present application.
  • the above-mentioned second antenna and first antenna may be two different antennas.
  • the household device 100 shown in FIG. 1 may be the electronic device 20 (eg, a sound box) shown in FIG. 2A .
  • the electronic device 20 may include a microcontroller unit MCU204 , a wireless communication module 203 , an antenna 201 and an antenna 202 .
  • the antenna 201 shown in FIG. 2A is the above-mentioned second antenna, and the antenna 202 is the first antenna.
  • the antenna a shown in FIG. 1 may include the antenna 201 and the antenna 202 shown in FIG. 2A .
  • the wireless communication module 108 shown in FIG. 1 may be the wireless communication module 203 shown in FIG. 2A ; the MCU 204 shown in FIG. 2A may be the MCU 110 shown in FIG. 1 or implemented by the processor 101 shown in FIG. 1 .
  • the above-mentioned wireless communication module 203 may be a Wi-Fi chip, and a radio frequency input/output (RFIO) pin of the wireless communication module 203 is connected to the antenna 201 or the antenna 202 through a SPDT switch.
  • RFIO radio frequency input/output
  • the MCU 204 may include a central processing unit, a memory, a counter, a clock, an interrupt, a serial peripheral interface (SPI), a UART interface, a universal serial bus interface, and the like.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus that converts the data to be transmitted between serial communication and parallel communication.
  • the MCU 204 exchanges information with the wireless communication module 203 through the UART interface.
  • the wireless communication module 203 is used to implement wireless communication between the home device 100 and other devices (eg, mobile phones).
  • the wireless communication module 203 reference may be made to the detailed description of the wireless communication module 108 in the above-mentioned embodiments, which will not be repeated here.
  • the antenna 201 and the antenna 202 can be used to transmit and receive electromagnetic waves.
  • the wireless communication module 203 can convert the electromagnetic waves received from the antenna 201 or the antenna 202 into signals, and send the signals to the MCU 204 for processing.
  • the wireless communication module 203 can receive the signal to be sent from the MCU 204, and convert it into electromagnetic waves and radiate it out through the antenna 201 or the antenna 202.
  • the MCU 204 can control the switching of the antenna 201 and the antenna 202 .
  • the other devices such as mobile phones
  • the other devices can receive the transmitted data from the home device 100 through the antenna 201. signal, so as to realize the communication between other devices and the home device 100;
  • the home device 100 adopts the antenna 202 if the distance between the home device 100 and other devices (such as mobile phones) is less than or equal to the first distance threshold, other devices can receive To the signal transmitted by the home device 100 through the antenna 202 , so as to realize the communication between other devices and the home device 100 .
  • other devices may also be provided with the antenna 201 or the antenna 202 .
  • the home device 100 can receive signals transmitted by other devices through the antenna 201; when other devices
  • the antenna 202 is used, if the distance between the home device 100 and other devices is less than or equal to the first distance threshold, the home device 100 can receive signals transmitted by other devices through the antenna 202 .
  • any one between the household device 100 and other devices is provided with an antenna 202 (ie a weak antenna), and the other is provided with an antenna 202 (ie a real antenna) or an antenna 201, then as long as the household device 100 and other devices are provided When the distance between them is less than or equal to the first distance threshold, the household device 100 and other devices can receive and send signals to each other.
  • the home device 100 can use the antenna 201 to send the first message or the second message to the surrounding devices; the home device 100 can receive through the antenna 202 a neighbor awareness network (neighborhood awareness network (NAN) release message sent by other devices.
  • the home device 100 can also access the Wi-Fi router through the antenna 201 or the antenna 202 .
  • the above-mentioned second antenna and the first antenna may share a part of the wiring, for example, as described in the embodiments shown in FIG. 2B to FIG. 2D .
  • the home device 100 in this embodiment of the present application implements ultra-short-range communication through the first antenna.
  • the dual antennas (the first antenna and the second antenna) in the household device 100 can be switched through a radio frequency switch.
  • both the first antenna and the radio frequency switch (the first antenna is shown in the dashed box in FIG. 2B to FIG. 2D ) can be placed in the shielding case or the first antenna can be placed in the chip.
  • 2B-2D show schematic structural diagrams of three kinds of first antennas.
  • the purpose of the first antenna in the embodiment of the present application is to reduce the transmission distance as much as possible.
  • the principle of constructing the first antenna may be:
  • the specific implementation of the first antenna may adopt:
  • the function of the above-mentioned shielding cover is to cut off the path from the electromagnetic wave radiated by the antenna to the receiver, so as to achieve the purpose of weakening the radiation.
  • the above-mentioned shortening of the antenna means that the first antenna is shorter than the second antenna.
  • the structures of the three first antennas are shown in FIGS. 2B to 2D , and the first antennas are shown in the dashed boxes in FIGS. 2B to 2D .
  • the structures of the second antenna in FIGS. 2B to 2D are all connected to the filter circuit 210 (eg, a ⁇ -type circuit), a matching circuit 220 (eg, a ⁇ -type circuit), and the antenna body 230 (eg, a ⁇ -type circuit) outside the matching circuit 220 through RFIO pins.
  • the antenna body can be a piece of metal trace).
  • the lengths of the first antenna a shown in the dashed box in FIG. 2B , the first antenna b shown in the dashed box in FIG. 2C , and the first antenna c shown in the dashed box in FIG. 2D are different, but compared with the second antenna Shorter.
  • the function of the filter circuit is to prevent interference, and the matching circuit 220 is used for matching with the second antenna.
  • the first antenna a may be directly disconnected by using the radio frequency input/output (RFIO) pins of the Wi-Fi chip 250 in the shielding case 240 .
  • the first antenna a may be composed of RFIO pins, traces, and the first switch of the two switches (the first switch is not connected to any device).
  • the 2-way switch refers to the switch between the RFIO and the filter circuit, through which the RFIO pin can be connected or disconnected from the filter circuit 210; the first-way switch is shown in 2B and connected to the RFIO pin , and a switch disconnected from the filter circuit 210 .
  • the 2-way switch in the embodiment of the present application may be a single-pole double-throw switch.
  • the first antenna b may use the RFIO of the Wi-Fi chip 250 in the shielding case 240 to connect to the ground through a matching device (eg, a resistor).
  • the first antenna b may be composed of RFIO pins, traces, the first switch of the 2-way switch (the first switch is connected to a resistor), and a resistor. Part of the electromagnetic wave radiation can be converted into heat energy and consumed by grounding the resistance, thereby reducing the radiation efficiency of the first antenna b.
  • the 2-way switch refers to the switch between the RFIO pin and the resistor and the filter circuit.
  • the RFIO pin can be connected to the resistor and disconnected from the filter circuit 210, or the RFIO pin can be connected to the filter circuit 210.
  • the resistor is disconnected and connected to the filter circuit 210 .
  • the first switch is a switch connected to the resistor and disconnected from the filter circuit.
  • the first antenna c may use the RFIO pin of the Wi-Fi chip 250 in the shielding case 240 to be connected to the ground through a chip-matched filter circuit 220 and then a matching device (eg, a resistor).
  • the first antenna c may be composed of RFIO pins, traces, filter circuit 210 , the first switch of the 2-way switch (the first switch is connected to a resistor), and a resistor. Part of the electromagnetic wave radiation can be converted into heat energy and consumed by grounding the resistance, thereby reducing the radiation efficiency of the first antenna b.
  • the 2-way switch refers to the switch between the filter circuit 210 in the shield 240 and the resistor and the matching circuit 220 outside the shield 240.
  • the filter circuit 210 in the shield 240 can be connected to the resistor.
  • the filter circuit 210 inside the shield 240 can be disconnected from the resistor and connected with the matching circuit 220 outside the shield 240 .
  • the first switch is a switch that connects the filter circuit 210 in the shield 240 and the resistor.
  • the second antenna in the above-mentioned FIGS. 2B to 2C may be composed of RFIO pins, traces, the second switch in the 2-way switch, the filter circuit 210 , the matching circuit 220 and the antenna body 230 externally connected to the matching circuit 220 .
  • the second switch is a switch connecting the RFIO pin and the filter circuit 210 .
  • the second antenna in FIG. 2D may be composed of RFIO pins, filter circuit 210 , traces, the second switch in the 2-way switch, matching circuit 220 , and an antenna body 230 externally connected to the matching circuit 220 .
  • the second switch is a switch that connects the filter circuit 210 inside the shield 240 and the matching circuit 220 outside the shield 240 .
  • the wireless communication module 203 shown in FIG. 2A may be the Wi-Fi chip 250 described in FIGS. 2B to 2C .
  • the above different first antenna structures, together with the different transmit power (Tx power) settings of the Wi-Fi chip 250, can meet different ultra-short-range communication requirements (for example, from 10cm to 2m).
  • Table 1 shows the communication distances of several different first antenna structures with different transmit powers.
  • the difference between the maximum transmit power and the minimum transmit power of the antenna is correlated. If the minimum transmit power of the household device 100 is reduced very low, the maximum transmit power will also be reduced, so that the distance requirement during normal operation cannot be met.
  • manufacturers of the household devices 100 may use different first antenna structures and transmit powers to ensure the safety of the household devices 100 . communication distance. Exemplarily, for different smart air conditioner manufacturers, the thickness of the smart air conditioner shell may be different, so under the condition of the same first antenna structure and the same transmit power, the communication distance at which the smart air conditioner can be discovered may also be different. Different manufacturers of the home device 100 can test the safe distance at which the home device 100 is found by matching the structure of the first antenna and a certain transmit power according to the structure of the smart device itself.
  • the second distance threshold is 5 meters and the first distance threshold is 0.3 meters.
  • the home device 100 adopts the second antenna (ie, a strong antenna)
  • the distance between the home device 100 and other devices is less than the second distance threshold (such as other devices are located at position 1 shown in FIG. 2E )
  • the home device The device 100 can communicate with other devices (such as speakers);
  • the home device 100 adopts the first antenna (ie, a weak antenna) if the distance between the home device 100 and other devices (such as mobile phones) is less than the first distance threshold (such as other The device is located at position 2) shown in Figure 2E, and the home device 100 can communicate with other devices (eg, cell phones).
  • the home device 100 implements a display function through a GPU, a display screen 106, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 106 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 101 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 106 is used to display images, videos, and the like.
  • Display screen 394 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • emitting diode AMOLED
  • flexible light-emitting diode flex light-emitting diode, FLED
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • home appliance 100 may include 1 or N display screens 106 , where N is a positive integer greater than 1.
  • Video codecs are used to compress or decompress digital video.
  • Home device 100 may support one or more video codecs.
  • the home device 100 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • Internal memory 103 may be used to store computer executable program code including instructions.
  • the processor 101 executes various functional applications and data processing of the home appliance 100 by executing the instructions stored in the internal memory 103 .
  • the internal memory 103 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio playback records) created during the use of the household device 100 and the like.
  • the internal memory 103 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the external memory interface 102 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the advertising device 120 .
  • the external memory card communicates with the processor 301 through the external memory interface 102 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • the home device 100 can implement audio functions through the audio module 107, the speaker 107A, the microphone 107B, and the application processor. Such as music playback, recording, voice capture, etc.
  • the audio module 107 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 107 may also be used to encode and decode audio signals. In some embodiments, the audio module 107 may be provided in the processor 101 , or some functional modules of the audio module 107 may be provided in the processor 101 . Speaker 307A, also referred to as "speaker”, is used to convert audio electrical signals into sound signals. The microphone 107B, also called “microphone” or “microphone”, is used to collect sound signals and convert the sound signals into electrical signals.
  • the electronic device in this embodiment of the present application may be a mobile phone, a tablet computer, a laptop, a wearable device (such as a smart watch), a handheld computer, a notebook computer, and an ultra-mobile personal computer (UMPC). ), netbooks, and devices including display screens and short-range communication modules, such as cellular phones, personal digital assistants (PDAs), augmented reality (AR) ⁇ virtual reality (VR) devices, etc.
  • PDAs personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • FIG. 3 is a schematic structural diagram of an electronic device 300 provided by the present application.
  • the electronic device 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charge management module 340, a power management module 341, a battery 342, an antenna b, an antenna c , mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver 370B, microphone 370C, headphone jack 370D, sensor module 380, buttons 390, motor 391, indicator 392, camera 393, display screen 394, and Subscriber identification module (subscriber identification module, SIM) card interface 395 and so on.
  • SIM Subscriber identification module
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 300 .
  • the electronic device 300 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 310 may be similar to or the same as the processor 101 described above, and details are not described herein again.
  • processor 310 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) 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 (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 I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • processor 310 may contain multiple sets of I2C buses.
  • the processor 310 can be respectively coupled to the touch sensor 380K, the charger, the flash, the camera 393 and the like through different I2C bus interfaces.
  • the processor 310 can couple the touch sensor 380K through the I2C interface, so that the processor 310 and the touch sensor 380K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 300 .
  • the I2S interface can be used for audio communication.
  • processor 310 may contain multiple sets of I2S buses.
  • the processor 310 may be coupled with the audio module 370 through an I2S bus to implement communication between the processor 310 and the audio module 370 .
  • the audio module 370 can transmit audio signals to the wireless communication module 360 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 370 and the wireless communication module 360 may be coupled through a PCM bus interface.
  • the audio module 370 can also transmit audio signals to the wireless communication module 360 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 310 with the wireless communication module 360 .
  • the processor 310 communicates with the Bluetooth module in the wireless communication module 360 through the UART interface to realize the Bluetooth function.
  • the audio module 370 can transmit audio signals to the wireless communication module 360 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 310 with peripheral devices such as the display screen 394 and the camera 393 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 310 communicates with the camera 393 through a CSI interface, so as to implement the photographing function of the electronic device 300 .
  • the processor 310 communicates with the display screen 394 through the DSI interface to implement the display function of the electronic device 300 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 310 with the camera 393, the display screen 394, the wireless communication module 360, the audio module 370, the sensor module 380, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 330 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 330 can be used to connect a charger to charge the electronic device 300, and can also be used to transmit data between the electronic device 300 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 300 .
  • the electronic device 300 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 340 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 340 may receive charging input from the wired charger through the USB interface 330 .
  • the charging management module 340 may receive wireless charging input through the wireless charging coil of the electronic device 300 . While the charging management module 340 is charging the battery 342 , it can also supply power to the electronic device through the power management module 341 .
  • the power management module 341 is used to connect the battery 342 , the charging management module 340 and the processor 310 .
  • the power management module 341 receives input from the battery 342 and/or the charging management module 340, and supplies power to the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, and the wireless communication module 360.
  • the power management module 341 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 341 may also be provided in the processor 310 .
  • the power management module 341 and the charging management module 340 may also be provided in the same device.
  • the wireless communication function of the electronic device 300 may be implemented by the antenna b, the antenna c, the mobile communication module 350, the wireless communication module 360, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna b and antenna c are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 300 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna b can be multiplexed into a diversity antenna of the wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • at least one of antenna b and antenna c may be similar or identical to antenna a in the foregoing description, ie at least one of antenna b and antenna c may include a first antenna and a second antenna.
  • the mobile communication module 350 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 300 .
  • the mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 350 can receive electromagnetic waves by the antenna b, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 350 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves and radiate it out through the antenna b.
  • at least part of the functional modules of the mobile communication module 350 may be provided in the processor 310 .
  • at least part of the functional modules of the mobile communication module 350 may be provided in the same device as at least part of the modules of the processor 310 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 370A, the receiver 370B, etc.), or displays images or videos through the display screen 394 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 310, and may be provided in the same device as the mobile communication module 350 or other functional modules.
  • the wireless communication module 360 may be similar or identical to the wireless communication module 108 described above.
  • the antenna b of the electronic device 300 is coupled with the mobile communication module 350, and the antenna c is coupled with the wireless communication module 360, so that the electronic device 300 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband 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 global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • Display screen 394 may be similar or identical to display screen 106 described above.
  • the electronic device 300 can realize the shooting function through the ISP, the camera 393, the video codec, the GPU, the display screen 394, and the application processor.
  • the ISP is used to process the data fed back by the camera 393 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light 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 perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 393 .
  • Camera 393 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • 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 formats of image signals.
  • the electronic device 300 may include 1 or N cameras 393 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 300 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 300 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • External memory interface 320 may be similar or identical to external memory interface 102 described above.
  • the internal memory 321 may be similar or identical to the internal memory 103 described above.
  • the electronic device 300 may implement audio functions through an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, and an application processor. Such as music playback, recording, etc.
  • the audio module 370, the speaker 370A and the microphone 370C may be similar or identical to the aforementioned audio module 107, the speaker 107A and the microphone 107B, respectively.
  • the receiver 370B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 370B close to the human ear.
  • the headphone jack 370D is used to connect wired headphones.
  • the earphone interface 370D can be a USB interface 330, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 380 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the keys 390 include a power-on key, a volume key, and the like. Keys 390 may be mechanical keys. It can also be a touch key.
  • the electronic device 300 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 300 .
  • Motor 391 can generate vibrating cues.
  • the motor 391 can be used for incoming call vibration alerts, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 391 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 394 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 392 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 395 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 300 by inserting into the SIM card interface 395 or pulling out from the SIM card interface 395 .
  • the electronic device 300 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 395 can support Nano SIM card, Micro SIM card, SIM card and so on.
  • the same SIM card interface 395 can insert multiple cards at the same time.
  • the types of the plurality of cards may be the same or different.
  • the SIM card interface 395 can also be compatible with different types of SIM cards.
  • the SIM card interface 395 is also compatible with external memory cards.
  • the electronic device 300 interacts with the network through the SIM card to implement functions such as calls and data communication.
  • the electronic device 300 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 300 and cannot be separated from the electronic device 300 .
  • the software system of the electronic device 300 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • IoT devices such as home appliances having the above-mentioned hardware structure and electronic devices having the above-mentioned hardware structure.
  • smart home devices such as smart speakers, smart switches, smart sockets, and smart refrigerators have gradually become popular. These devices can be connected to network devices such as routing devices, gateway devices, or master control devices, and can also be connected to servers through network devices to form a feature-rich network, and users can remotely control these devices to build an ideal home environment. For example, multiple smart speakers can form a sound environment such as 2.0 stereo or 6.1 stereo. However, since some devices may not have a screen or input device, additional configuration through other devices is usually required.
  • FIG. 4 is a schematic structural diagram of a device configuration system provided by an embodiment of the present application.
  • this system includes a plurality of home devices such as home device 410, home device 420, and home device 430, and also includes electronic device 440 and network device 450).
  • the home device 410, the home device 420 and the home device 430 may not have a screen and input devices such as keyboards and keys, or, the home device 410, the home device 420 and the home device 430 may have a screen and an input device, but the display capability of the screen
  • the input capability of the input device and the input device is weak, and it is impossible or convenient to interact with the user to obtain the network configuration information.
  • the home device 410 is a smart speaker.
  • the smart speaker has a display screen 106 as shown in FIG. 1 , but the display screen 106 is only used to display the currently playing content. Although there are buttons, the buttons are only used to turn on or off the smart speaker.
  • the home device 410 can establish a communication connection with the mobile phone through the wireless communication module 108 to receive the network configuration information submitted by the user on the electronic device 440 .
  • the home device 410, the home device 420 and the home device 430 can turn on a soft access point (soft access point, soft access point) when powered on. AP) mode to broadcast the respective SSID.
  • the user connects to the home device 410 , the home device 420 and the home device 430 respectively based on the SSIDs of the home device 410 , the home device 420 and the home device 430 through the electronic device 440 , so as to send messages to the home device 410 , the home device 420 and the home device 430 respectively.
  • the network configuration information of the network device 450 (eg: the SSID of the network device 450 (eg router) and password) is sent.
  • the home device 410, the home device 420 and the home device 430 receive the network configuration information of the network device 450, the soft AP mode is turned off, and based on the network configuration information of the network device 450, they are connected to the network device 450 (for example, based on the SSID and Password to access the wireless local area network provided by the network device 450), and then connect to the home cloud through the network device 450 to complete registration and network configuration.
  • the electronic equipment 440 is connected to the home equipment 410, the home equipment 420 and the home equipment 430 in turn, and sends the network configuration information.
  • the configuration method is cumbersome and inefficient, and the time cost of configuration is proportional to the number of devices.
  • the network device 450 when the network where the network device 450 is located is a network based on the Wi-Fi protocol, the network device 450 may be a routing device; when the network where the network device 450 is located is a network based on the Bluetooth protocol or the Zigbee protocol, the network device 450 may be Gateway device or master device.
  • the present application provides a schematic structural diagram of another device configuration system.
  • the system includes a plurality of home equipment such as home equipment 510 , home equipment 520 , home equipment 521 and home equipment 530 , and also includes electronic equipment 540 and network equipment 550 .
  • Home equipment 510, home equipment 520, home equipment 521, and home equipment 530 may be similar to home equipment 410, home equipment 420, and home equipment 430 described above, and it is inconvenient to directly interact with users to obtain equipment configuration information.
  • the home device 510, the home device 520, the home device 521, and the home device 530 have the ability to obtain device configuration information directly by interacting with the user, all of them can be obtained through the methods provided in the embodiments of the present application.
  • the device configuration information is obtained by configuring the device, so as to reduce the tedious operation of the user and improve the configuration efficiency.
  • the network device 550 can be a routing device; when the network where the network device 550 is located is a network based on the Bluetooth protocol or the Zigbee protocol, the network device 550 can be a gateway device or master device.
  • the home equipment 510, the home equipment 520, the home equipment 521 and the home equipment 530 may include the wireless communication module 203, the antenna 201 and the antenna 202 as shown in FIG. 2A.
  • the electronic device 540 may store device configuration information, or may receive device configuration information submitted by a user.
  • the electronic device 540 may include a mobile phone, a computer or a smart speaker.
  • the device configuration information may be used to configure devices such as the home device 510 , the home device 520 , the home device 521 , and the home device 530 .
  • the device configuration information may include network configuration information, and the network configuration information may be used for the device to connect to the network device 550.
  • the network configuration information may include a device identification (eg, SSID) of the network device 550, and may also include the password.
  • the device configuration information may also include other types of configuration information.
  • the device configuration information may also include at least one of account registration information, device control instructions, and device state parameters.
  • the distance between the home equipment 510 and the home equipment 520, the distance between the home equipment 510 and the home equipment 521, the distance between the home equipment 520 and the home equipment 530, the distance between the home equipment 520 and the home equipment 521 are less than or equal to the first distance threshold, and the distance between the home device 510 and the home device 530 and the distance between the home device 521 and the home device 530 are both greater than the second distance threshold.
  • the home device 510 may obtain the device configuration information from the electronic device 540 in any manner (eg, in a manner similar to that of the home device 410, the home device 420, or the home device 430 in FIG. 4).
  • One between the household equipment 510 and the household equipment 520 is provided with a first antenna
  • the other is provided with a second antenna
  • one between the household equipment 510 and the household equipment 521 is provided with a first antenna
  • the other is provided with a second antenna
  • the longest transmission distance of the first antenna is the first distance threshold
  • the home device 510 receives the device configuration information, it can send the device to the home device 520 and the home device 521 that are within the range of the first distance threshold of the home device 510. configuration information.
  • the home device 520 , the home device 521 and the home device 530 may also send the device configuration information to other devices whose distances are less than or equal to the first distance threshold. It can be seen that as long as one device obtains the device configuration information, the device can send the device configuration information to other devices within the first distance threshold. In this way, each device can quickly obtain the device. configuration information, and configure the device according to the device configuration information. And the more the number of devices, the faster the diffusion of device configuration information and the faster the device configuration speed. Compared with the device configuration system provided in Figure 4, the configuration efficiency is greatly improved.
  • electronic device 540 may be replaced with any household device for which device configuration information has been obtained.
  • the system further includes a server 560, and the device configuration information may further include account registration information.
  • the account registration information can be used for registration in the server 560 .
  • the home device 510, the home device 520, the home device 521 and the home device 530 send device configuration information to other devices within the first distance threshold range
  • these devices may be devices in the same scene, For example, home equipment in the same family or security equipment in the same factory area, so these devices can be connected to the same server (such as smart home cloud server or security cloud server) for registration, so that users can manage and control through mobile phones and other devices, so when
  • the device configuration information includes account registration information
  • the account registration information may be the same.
  • the account registration information may include a user ID.
  • the device control instruction can be used to control the device to perform one or more operations corresponding to the device control instruction
  • the device configuration parameter can be used to indicate the state of the device at runtime
  • the device configuration parameter can be carried in the device control instruction.
  • the device control command can be to play music
  • the device configuration parameters can be the volume and channel mode when playing music
  • the device control command can include turning on the light
  • the device configuration parameters can include Light color and brightness.
  • the device configuration information may include device control instructions and device configuration parameters for multiple devices, and each device may, when receiving the device control instructions and device configuration parameters, respond to the received device control instructions (device configuration parameters). ) to identify, if the identification is successful, configure according to the device control command (device configuration parameter), otherwise ignore the device control command (device configuration parameter).
  • the first device and the third device may be home devices or electronic devices in an unconfigured state.
  • the first device may include home devices 510 , home devices 520 , home devices 521 , and home devices 530 that have not obtained device configuration information.
  • the second device may store a home device or electronic device with device configuration information, for example, the second device may include electronic device 540 and home device 510, home device 520, home device 521 and home device 530 after acquiring the device configuration information .
  • the first configuration indication information or the second configuration indication information may be the following configuration indication information 2, configuration indication information 3 or configuration indication information 4, and the third configuration indication information may be the following configuration indication information 1, configuration indication information Information 5, configuration indication information 6 or configuration indication information 7, the first authentication information or the second authentication information can be the following authentication information 2, authentication information 3 or authentication information 4, the first communication connection or The second communication connection may be communication connection 1, communication connection 2 or communication connection 3 in the following.
  • FIG. 6 is a flowchart of a device configuration method provided by an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in FIG. 6 and the following, and it should be understood that in other embodiments, the sequence of some steps of the method may be exchanged according to actual needs, or some steps of the method may be exchanged. It can also be omitted or deleted.
  • the method includes the following steps:
  • the home device 510 receives device configuration information from the electronic device 540 .
  • the electronic device 540 may publish the device configuration service through Wi-Fi awareness, including sending configuration indication information 1 through broadcasting, and the configuration indication information 1 may be used to describe the device configuration service.
  • Home device 510 may subscribe to configuration services through Wi-Fi awareness.
  • the authentication information 1 can be broadcast to the electronic device 540 through the first antenna.
  • the electronic device 540 receives the authentication information 1, it can prompt the user to discover the unconfigured home device 510, so as to receive the device configuration information submitted by the user, and can also establish an encrypted communication connection with the home device 510 through the authentication information 1 1, and send device configuration information to the home device 510 through the communication connection 1.
  • Wi-Fi Awareness can bypass the transmission control protocol/(transmission control protocol, TCP)/Internet Protocol (Internet Protocol, IP) layer, so that the application layer can directly control the media access control (media access control, MAC) layer, thereby reducing communication time delay.
  • TCP transmission control protocol
  • IP Internet Protocol
  • both parties can communicate directly without connecting to the same network device.
  • One party to the communication can act as a service publisher and send one or more discoverable services, and the other party can subscribe to these services as a service subscriber. When the service subscriber enters the Wi-Fi range of the service publisher, the service subscriber can receive a notification of discovery of the service, and establish a communication connection with the service publisher for communication.
  • the authentication information 1 can be used to authenticate other devices accessing the home device 510 .
  • the authentication information 1 may include a PIN or an AES-based key, such as an AES128-based key.
  • the electronic device 540 can receive the authentication information 1 sent by the home device 510 through the first antenna only when the electronic device 540 is within the range of the first distance threshold of the home device 510.
  • One antenna can send the authentication information 1 in plain text, which not only saves the process of negotiating the secret key between the home device 510 and the electronic device 540, improves the efficiency of obtaining device configuration information, but also reduces the possibility of misconnection with other devices, improving the Obtain the reliability of device configuration information.
  • the home device 510 can send out a prompt signal for discovering the distribution network service when receiving the configuration instruction information 1 through the second antenna, such as a voice prompt of "please keep the mobile phone within 50 cm of the home device", thereby prompting the user. Bring home device 510 and electronic device 540 close to each other.
  • the home device 510 may also send the device identification of the home device 510 to the electronic device 540, so that the control device can more accurately determine that the home device 510 to be connected is.
  • the home device 510 may configure the home device 510 based on the device configuration information.
  • the device configuration information includes network configuration information
  • the home device 510 may link to the network home device 550 based on the network configuration information.
  • the device configuration information includes account registration information
  • the home device 510 may perform registration in the server 560 based on the account registration information.
  • the device configuration information includes device control instructions and/or device state parameters
  • the home device 510 may operate based on the device control instructions and/or device state parameters.
  • the electronic device 540 is a device capable of controlling the home device 510 such as a mobile phone or a computer
  • the electronic device 540 also sends a registration success prompt message to the electronic device 540 when the home device 510 is successfully registered.
  • the device status information of the home device 510 can be sent to the device configuration source 340 through the communication connection 1, and/or the home device can be received through the communication connection 1.
  • 510 device control instructions and/or device state parameters so that the user can control the home device 510 before the home device 510 is configured, thereby improving the reliability of controlling the home device 510.
  • the home device 510 may also obtain device configuration information from the electronic device 540 in other ways.
  • the home device 510 can switch to the soft AP mode, and the electronic device 540 can switch to the home device 510 as a soft AP and send the device configuration information to the home device 510.
  • the home device 510 may also obtain the device configuration information from the electronic device 540 in a manner similar to the following manner as the home device 520 obtains the device configuration information from the home device 510 .
  • This embodiment of the present application does not specifically limit the manner in which the device 1 acquires the device configuration information from the control device.
  • the household device 510 can perform the following step S602 when acquiring the device configuration information, thereby further improving the efficiency of other unconfigured devices in acquiring the device configuration information, and can also successfully complete the configuration based on the device configuration information.
  • the following step S402 is performed to reduce the possibility of sending incorrect device configuration information.
  • the home device 520 broadcasts the configuration indication information 2 through the second antenna or the first antenna, and broadcasts the authentication information 2 through the first antenna.
  • the configuration indication information 2 is used to indicate that the home device 520 is in an unconfigured state, and the authentication information 2 is used to authenticate other devices accessing the home device 520 .
  • the home device 520 may broadcast configuration indication information 2 .
  • the configuration indication information 2 is used to indicate that the home device 520 is in an unconfigured state, it can be sent through the second antenna with higher transmission power, or through the first antenna with lower transmission power, and the authentication information 2 is a pair of The security requirements are relatively high, so it can be sent through the first antenna with lower transmission power, thereby ensuring that only devices within the first distance threshold from the home device 520 will receive the information to be authenticated 2, reducing the number of mismatches. possible.
  • the authentication information 2 is transmitted within the first distance threshold, and the transmission process can also be considered as safe, so the authentication information can be transmitted in plaintext. 2, in order to save the process of negotiating the secret key between the home device 520 and the home device 510, and improve the efficiency of configuring the device.
  • the home device 520 when the home device 520 broadcasts the configuration instruction information 2 through the second antenna with higher transmission power, the home device 510 in a larger distance can be made to perceive the home device 520, which improves the home device 510's perception of the home device. 520 reliability.
  • the home device 520 can broadcast the configuration instruction information 2 and the authentication information 2 through the Wi-Fi protocol, the Bluetooth protocol or the Zigbee protocol, that is, the configuration instruction information 2 and the authentication information 2 can be carried on the Wi-Fi-based Fi protocol or Bluetooth protocol frame (such as management frame or control frame).
  • the configuration indication information 2 may be carried in a beacon frame based on the Wi-Fi protocol, the Bluetooth protocol or the Zigbee protocol.
  • the configuration indication information 2 may be represented by a preset character string 1 in a data bit (frame body) of the beacon frame.
  • the preset string 1 may be four 1s, and the preset string 1 may be at the end of the SSID. Then, if the last four bits of the SSID sent by the home device 520 are all 1, it can indicate that the home device 520 is currently in an unconfigured state.
  • the home device 520 may switch to the soft AP mode to generate the beacon frame, or it may not switch to the soft AP mode, but directly call the beacon frame function to generate the beacon frame.
  • the beacon frame is generated in other manners, and the embodiment of the present application does not specifically limit the manner of generating the beacon frame.
  • beacon frame based on Wi-Fi, Bluetooth, or Zigbee.
  • the configuration indication information 2 and the authentication information 2 may be carried in the same packet.
  • the home device 520 may also be configured not to send the authentication information 2 .
  • the home device 510 may receive configuration indication information 2 and authentication information 2 through the second antenna.
  • the home device 510 receives the configuration indication information 2, it can be determined that the home device 520 in an unconfigured state is detected, so the home device 510 can send a communication connection request 1 to the home device 520, so as to communicate with the home device based on the communication connection request 1 520 establishes a communication connection 2, and the communication connection request 1 may carry the authentication information 2.
  • the home device 510 Since the authentication information 2 is sent by the home device 520 through the first antenna with low transmit power, when the home device 510 receives the authentication information 2, it can be determined that the current distance from the home device 520 is less than or equal to the first antenna. A distance threshold, in turn, an encrypted communication connection can be established with the home device 520 . In addition, since the home device 510 establishes a communication connection with the home device 520 only when it receives the configuration instruction information 2 and the authentication information 2, the waste of system resources of the home device 510, such as network resources and computing resources, can be reduced.
  • the home device 510 may establish a communication connection 2 with the home device 520 based on the Wi-Fi protocol, the Bluetooth protocol or the Zigbee protocol.
  • home device 510 may establish communication connection 2 based on the NAN.
  • the home device 510 sends device configuration information to the home device 520 based on the communication connection 2 .
  • the home device 510 when the home device 510 communicates with the home device 520 based on the communication connection 2, if the communication connection 2 is encrypted, the home device 510 can send the communication data (including the device configuration) to the home device 520 based on the second antenna or the first antenna. information), based on the second antenna to receive the communication data sent by the home device 520; if the communication connection 2 is not encrypted, the home device 510 can send the communication data to the home device 520 based on the first antenna, and receive the home device 520 based on the second antenna. Communication data sent.
  • the home device 510 can quickly send device configuration information to the home device 520 based on the second antenna with higher transmit power.
  • the home device 520 configures the home device 520 based on the device configuration information.
  • the way that the home device 520 configures the home device 520 based on the device configuration information may be the same as the way that the home device 510 configures the home device 510 based on the device configuration information in S401, and will not be repeated here.
  • the home device 520 can be connected to the network home device 550 according to the network configuration information, registered with the server 560 according to the account registration information, and so on.
  • the home device 520 may perform operations similar to those of the home device 510 in S602-S604, so as to continue to provide device configuration information for other unconfigured devices. For example, there is an unconfigured home device 530, the home device 520 performs operations similar to S602, broadcasts the configuration indication information 3 through the second antenna or the first antenna, and broadcasts the authentication information 3 through the first antenna, and the home device 520 performs the same Similar operations in S603 and S604, when receiving the configuration instruction information 3 and the authentication information 3, establish the communication connection 3 with the home device 530 based on the authentication information 3, and send the device configuration to the home device 530 based on the communication connection 3 information, the home device 530 performs an operation similar to that of S605, and completes the configuration based on the device configuration information.
  • FIGS. 7-9 are schematic state diagrams of a device provided by an embodiment of the present application.
  • the home device 510 has acquired device configuration information, and the home device 520 , the home device 521 and the home device 530 are in an unconfigured state.
  • the home device 520 broadcasts the configuration indication information 2 through the second antenna or the first antenna, and broadcasts the authentication information 2 through the first antenna;
  • the home device 530 broadcasts the configuration indication information 3 through the second antenna or the first antenna, and broadcasts the configuration indication information 3 through the first antenna Broadcast the authentication information 3;
  • the home device 521 broadcasts the configuration indication information 4 through the second antenna or the first antenna, and broadcasts the authentication information 4 through the first antenna.
  • the home equipment 510 can receive the configuration instruction information 2 and the authentication information 2 sent by the home equipment 520 and the configuration instruction information 4 and the authentication information 4 sent by the home equipment 521, but cannot receive the home equipment 530 sends the authentication information 3.
  • the home device 510 establishes an encrypted communication connection 2 with the home device 520 based on the authentication information 2, and sends the device configuration information to the home device 520 through the communication connection 2.
  • the home device 520 obtains the device configuration information, so it no longer broadcasts the configuration instruction information 2 and authentication information 2. Similarly, the home device 530 can also acquire the device configuration information, and no longer send the configuration indication information 4 and the authentication information 4 .
  • the home equipment 520 can receive the configuration instruction information 3 and the authentication information 3 sent by the home equipment 530, and the home equipment 520 Based on the authentication information 3, a communication connection 3 is established with the home device 530, and the device configuration information is sent to the home device 530 through the communication connection 3.
  • the home device 530 has obtained the device configuration information, so the configuration instruction information 3 is no longer broadcast. and authentication information 3.
  • the configuration indication information 3 is used to indicate that the home device 530 is in an unconfigured state
  • the configuration indication information 4 is used to indicate that the home device 521 is in an unconfigured state.
  • the form of the configuration indication information 3 and the configuration indication information 4 may be the same as the form of the configuration indication information 2
  • the form of the authentication information 3 and the authentication information 4 may be the same as the form of the authentication information 2 .
  • the home device 510 may receive device configuration information from the electronic device 540. If there is at least one device, the device is provided with a first antenna, and the home device 510 is provided with a second antenna. The transmission of the second antenna Power>power threshold 1>transmission power of the first antenna, the longest transmission distance of the first antenna is the first distance threshold, such as home equipment 520 and home equipment 521, the home equipment 510 can send the home equipment 510 within the first distance threshold.
  • the at least one device that is, the distance between the device and the home device 510 device is less than or equal to the first distance threshold) sends the device configuration information.
  • the home device 520 and the home device 521 can also send the device configuration information to more devices in the above-mentioned manner, so that the device configuration information can be quickly sent to other devices without requiring the user to configure each device one by one.
  • the configuration efficiency is greatly improved.
  • the home device 510 since the home device 510 establishes a communication connection with the home device 520 only when it receives the configuration instruction information 2 and the authentication information 2, the waste of system resources of the home device 510 can be reduced.
  • FIG. 10 is a flowchart of a device configuration method provided by an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in FIG. 10 and the following, and it should be understood that, in other embodiments, the sequence of some steps of the method may be exchanged according to actual needs, or some steps of the method may be exchanged. It can also be omitted or deleted.
  • the method includes the following steps:
  • the home device 510 receives device configuration information from the electronic device 540 .
  • S1001 may be the same as S601, and details are not repeated here.
  • the home device 510 broadcasts the configuration indication information 5 through the second antenna or the first antenna, and broadcasts the authentication information 5 through the first antenna.
  • the configuration indication information 5 may be used to trigger the home device 520 to receive device configuration information.
  • the device 1 can broadcast the configuration indication information 5, and transmit the configuration instruction information 5 through the first device with lower transmission power.
  • An antenna broadcasts the authentication information 5 so as to ensure the security of the authentication information 5 .
  • the home device 510 when the home device 510 broadcasts the configuration instruction information 5 through the second antenna with higher transmission power, the home device 520 within a larger distance can be able to perceive the home device 510, which improves the perception of the home device 520 by the home device 520. 510 reliability.
  • the home device 510 can broadcast the configuration instruction information 5 and the authentication information 5 through the Wi-Fi protocol, the Bluetooth protocol or the Zigbee protocol, that is, the configuration instruction information 5 and the authentication information 5 can be carried on the Wi-Fi-based In the data frame, management frame or control frame of Fi protocol or Bluetooth protocol.
  • the form of the configuration indication information 5 may be the same as the form of the configuration indication information 2 .
  • the configuration indication information 5 can be represented by the preset character string 2 in the data bits of the beacon frame.
  • the preset string 2 may be four zeros, and the preset string 2 may be at the end of the SSID. Then, if the last four bits of the SSID sent by the home device 510 are all 0, it means that the home device 510 has acquired the device configuration information, thereby triggering the home device 520 to receive the device configuration information.
  • home device 510 may also be configured not to broadcast authentication information 5 .
  • S802 may be similar to S402, which will be described in detail here.
  • the home device 520 may receive the configuration indication information 5 and the authentication information 5 through the second antenna.
  • the home device 520 receives the configuration indication information 5 and the authentication information 5, it can be determined that the home device 510 that has obtained the device configuration information has been detected, so it can send a communication connection establishment request 2 to the home device 510, so as to communicate with the home device 510.
  • a communication connection 4 is established, and the authentication information 5 may be carried in the communication connection establishment request 2 .
  • the home device 520 may establish a communication connection 2 with the home device 510 based on the Wi-Fi protocol, the Bluetooth protocol or the Zigbee protocol.
  • the authentication information 5 is sent by the home device 510 through the first antenna with low transmit power, when the home device 520 receives the authentication information, it can be determined that the current distance from the home device 510 is less than or equal to the first antenna distance threshold, and then a communication connection 4 can be established with the household device 5100 .
  • the home device 510 since the home device 510 sends the configuration instruction information 5 and the authentication information 5 when acquiring the device configuration information, the home device 520 only connects to the home device 510 when it receives the configuration instruction information 5 and the authentication information 5 Communication connection 4, then when configuring multiple devices such as the home device 510 and the home device 520, the user can first configure one of them (such as the home device 510), and when the home device 510 obtains the device configuration information, then From near to far, other devices such as other household devices 520 are triggered sequentially to obtain device configuration information, thereby reducing system resource waste of devices located beyond the first distance threshold from the household device 510 at the initial stage of configuration.
  • the home device 510 sends device configuration information to the home device 520 based on the communication connection 4 .
  • the home device 510 may execute S1002 every preset time period of 1. If the home device 510 executes S1002 and S1003 and establishes a communication connection with other devices, S1004 may be executed. If no other device establishes a communication connection within the preset time period 2 after starting to execute S1002, the execution of S1002 may be stopped; alternatively, the home device 510 may start timing when the last time S1004 is executed in the history. Within 3, if no communication connection is established with other devices, the execution of S1002 can be stopped.
  • the home device 520 configures the home device 520 based on the device configuration information.
  • the way that the home device 520 configures the home device 520 based on the device configuration information can be the same as the way that the home device 510 configures the home device 510 based on the device configuration information in S605, and will not be repeated here. .
  • S1004-S1005 may be the same as the aforementioned S604-S605, and will not be repeated here.
  • FIGS. 11-13 are schematic state diagrams of a device provided by an embodiment of the present application.
  • the home device 510 has acquired the device configuration information, so it can broadcast the configuration indication information 5 and the authentication information 5 . Since the distance between the home device 510 and the home device 520 and the distance between the home device 510 and the home device 521 are both less than or equal to the first distance threshold, the distance between the home device 510 and the home device 530 is greater than the first distance threshold , so the home device 520 and the home device 521 can receive the configuration instruction information 5 and the authentication information 5 , but the home device 530 cannot receive the authentication information 5 .
  • the home device 520 and the home device 521 respectively establish a communication connection with the home device 510 based on the authentication information 5, so as to obtain the device configuration information.
  • the home device 520 acquires the device configuration information
  • it can broadcast the configuration instruction information 6 and the authentication information 6
  • when the home device 521 acquires the device configuration information it can broadcast the configuration instruction information 7 and the authentication information. 7. Since the distance between the home device 520 and the home device 530 is less than or equal to the first distance threshold, the home device 530 can receive the configuration instruction information 6 and the authentication information 6, so as to establish a communication connection with the home device 520 and receive the device configuration information.
  • the home device 530 has also acquired the device configuration information, so it can also broadcast the configuration indication information 8 and the authentication information 8 .
  • the configuration instruction information 6 can be used to trigger the home device 530 to receive the device configuration information
  • the configuration instruction information 7 can be used to trigger other devices within the range of the first distance threshold of the home device 521 to receive the device configuration information
  • the configuration instruction information 8 can be used to trigger other devices within the first distance threshold range of the household device 530 to receive device configuration information.
  • the form of the configuration instruction information 6, the configuration information 7 and the configuration information 8 can be the same as the form of the configuration information 5, and the form of the authentication information 6, the authentication information 7 and the authentication information 8 can be the same as the form of the authentication information 5 .
  • the home device 510 may receive device configuration information from the electronic device 540 . If there is at least one device, the device is provided with a second antenna, the household device 510 is provided with a first antenna, the transmit power of the second antenna > power threshold 1 > the transmit power of the first antenna, and the longest transmit distance of the first antenna is the first distance threshold, such as the home device 520 and the home device 521, the home device 510 can communicate with the at least one device within the first distance threshold of the home device 510 (that is, the distance between the device and the home device 510 is less than or equal to the first distance between the device and the home device 510). a distance threshold) to send the device configuration information.
  • the home device 520 and the home device 521 can also send the device configuration information to more devices in the above-mentioned manner, so that the device configuration information can be quickly sent to other devices without requiring the user to configure each device one by one.
  • the configuration efficiency is greatly improved.
  • the home device 510 configures the indication information 5 and the authentication information 5 when the device configuration information is obtained, and the home device 520 only connects and communicates with the home device 510 when it receives the configuration indication information 5 and the authentication information 5 connected, then when configuring multiple devices such as the home device 510 and the home device 520, the user can configure one of them (such as the home device 510) first, and when the home device 510 obtains the device configuration information, the next and further, trigger other devices such as other household devices 520 to obtain device configuration information in an orderly manner, thereby reducing waste of system resources for devices that are beyond the first distance threshold from the household device 510 at the initial stage of configuration.
  • FIG. 14 is a flowchart of a device configuration method provided by an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in FIG. 14 and the following. It should be understood that, in other embodiments, the sequence of some steps of the method may be exchanged according to actual needs, or some steps of the method may be exchanged. It can also be omitted or deleted.
  • the method includes the following steps:
  • the home device 510 receives device configuration information from the electronic device 540 .
  • S1401 may be the same as S601, and details are not repeated here.
  • the home device 520 broadcasts the configuration indication information 2 through the second antenna or the first antenna.
  • the manner in which the home appliance 520 broadcasts the configuration instruction information 2 through the second antenna or the first antenna may be the same as the manner in which the home appliance 520 broadcasts the configuration instruction information 2 through the second antenna or the first antenna in S602. I won't repeat them one by one.
  • the home device 520 may also be configured to broadcast the configuration indication information 2, that is, S1402 is an optional step.
  • the home device 520 may broadcast the configuration indication information 2 and the authentication information 2 through the Wi-Fi protocol, the Bluetooth protocol or the Zigbee protocol.
  • the home device 510 detects that there are unconfigured home devices 520 around, there may be more unconfigured devices around, so the device configuration information can be broadcast through the first antenna so as to be within the first distance threshold of the home device 510 All devices in the device can obtain the configuration information of the device, which improves the configuration efficiency.
  • the home device 510 may broadcast device configuration information through one or more messages.
  • the home device 510 may broadcast device configuration information through Wi-Fi protocol, Bluetooth protocol or Zigbee protocol.
  • the device 1 can also broadcast the device configuration information through the first antenna when acquiring the device configuration information from the electronic device 540, Alternatively, when the configuration is successfully performed according to the device configuration information, the device configuration information is broadcast through the first antenna without detecting whether there is an unconfigured device, thereby simplifying the device configuration process and further improving the configuration efficiency.
  • the way that the home device 520 configures the home device 520 based on the device configuration information can be the same as the way that the home device 510 configures the home device 510 based on the device configuration information in S605, and will not be repeated here. .
  • the home device 510 may receive device configuration information from the electronic device 540. If there is at least one device, the home device 510 is provided with a first antenna, and the device may be provided with a second antenna. Transmission power>power threshold 1>transmission power of the first antenna, the longest transmission distance of the first antenna is the first distance threshold, such as home equipment 520 and home equipment 521, the home equipment 510 can be within the first distance threshold of the home equipment 510 The at least one device (that is, the distance between the device and the home device 510 device is less than or equal to the first distance threshold) sends the device configuration information.
  • the home device 520 and the home device 521 can also send the device configuration information to more devices in the above-mentioned manner, so that the device configuration information can be quickly sent to other devices without requiring the user to configure each device one by one.
  • the configuration efficiency is greatly improved.
  • the home device 510 can broadcast device configuration information through the first antenna, all devices within the first distance threshold of the home device 510 can obtain the device configuration information, thereby improving configuration efficiency.
  • FIG. 6 the device configuration methods provided in FIG. 6 , FIG. 10 and FIG. 14 can be combined.
  • the home device 510 may execute at least one of the following: execute S1002 to actively notify the unconfigured home device 520 and home device 521 to receive device configuration information; execute S1404 to actively Send the device configuration information to the unconfigured device that may exist; perform S603 to receive the configuration instruction information 2 and authentication information 2 of the unconfigured home device 520, from establishing a communication connection with the unconfigured home device 520, and Device configuration information is sent to home device 520 .
  • the unconfigured household device 520 may perform at least one of the following: perform S602 or S1402 to actively indicate to the possible household device 510 that has acquired device configuration information, indicating that it is currently in an unconfigured state; perform S1003 to receive the household device 510
  • the configuration instruction information 5 and the authentication information 5 are sent, and a communication connection with the home device 510 is established.
  • the home device 520 may not broadcast the authentication information 2, but similar to S1003, obtain the authentication information 5 of the home device 510, and establish a relationship with the home device 510 based on the authentication information 5 Communication connection between 4.
  • the home device 510 may not broadcast the authentication information 5, but similar to S603, obtain the authentication information 2 sent by the home device 520, and establish a communication with the home device 520 based on the authentication information 2 Communication connection between 2.
  • the home device 510 may broadcast the configuration indication information 1 through the second antenna or the first antenna, that is, publish the device configuration service through Wi-Fi perception, then the home device 520 subscribes to the device configuration service,
  • the authentication information 2 is broadcast through the first antenna, and the home device 510 obtains the authentication information 2 sent by the home device 520, and establishes a communication connection with the home device 520 based on the authentication information 2.
  • the device configuration method provided by the embodiments of the present application may include four stages.
  • the home device 510 receives device configuration information from the electronic device 540.
  • the mutual discovery between the home device 510 and the home device 520 includes at least one of the following: the home device 510 broadcasts the configuration instruction information 1, and the home device 520 receives the configuration instruction information 1, thereby discovering the home device 510; the home device 510 configures Indication information 5, the home device 520 receives the configuration instruction information 5, thereby discovering the home device 510; The home device 510 and the home device 520 discover each other by performing at least one of the operations above, which can improve the reliability and efficiency of the first device sensing the third device, and facilitate subsequent provision of network configuration information and other devices to these third devices. configuration information.
  • the home device 510 establishes a communication connection with the home device 520, including any of the following: the home device 510 establishes a communication connection 2 based on the authentication information 2 of the home device 520; the home device 520 establishes a communication connection 2 based on the authentication information 5 of the home device 510 Communication connection 4. That is, the embodiment of the present application does not limit the transmission of authentication information and the establishment of a communication connection. As long as the authentication information is sent through the first antenna, it can be ensured that the household device 510 can safely reach the first distance threshold.
  • the home device 520 in the device sends device configuration information.
  • the home device 510 sends the device configuration information to the home device 520.
  • the home device 510 can send the device configuration information to the home device 520 through the communication connection 2 or the communication connection 4, and if the home device 510 discovers the home device 520 in stage 2, then stage 3 can be omitted, and the home device 510 can discover the home device 520 in stage 2.
  • the home device 520 broadcasts the device configuration information.
  • both stage 2 and stage 3 can be omitted, and the home device 510 broadcasts the device configuration information when the stage 1 is completed, thereby omitting the home device 510 to perceive the existence of the home device 520, the first-level home device 510 and the home device within the first distance threshold range.
  • 520 establishes at least one step such as a communication connection, to further improve configuration efficiency.
  • the device configuration information can be sent through the first antenna or the second antenna. And when the device configuration information is sent through the second antenna with higher power, the efficiency of sending the device configuration information can be improved, and it can also be ensured that when the home device 510 or the home device 520 obtains the authentication information of the opposite end, even if the home device 510 The distance from the home device 520 is greater than the first distance threshold, but as long as the distance is less than or equal to the second distance threshold, the home device 510 can send device configuration information to the home device 520 to improve the reliability of sending device configuration information.
  • an embodiment of the present application also provides a device.
  • the device may include: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in the above method embodiments when the computer program is invoked.
  • the device provided in this embodiment can perform the operations performed by the home device 510 and/or the home device 520 in the method embodiments of FIG. 6 , FIG. 10 , and FIG. 14 .
  • an embodiment of the present application also provides a chip system.
  • the chip system includes a processor coupled with a memory, and the processor executes a computer program stored in the memory, so as to implement the method described in the first aspect or any one of the implementation manners of the first aspect.
  • the chip system may be a single chip, or a chip module composed of multiple chips.
  • Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
  • the embodiments of the present application further provide a computer program product, when the computer program product runs on the device, the device implements the method described in the above method embodiments when the device executes.
  • the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct the relevant hardware.
  • the computer program can be stored in a computer-readable storage medium, and the computer program When executed by a processor, the steps of each of the above method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
  • the computer-readable storage medium may include at least: any entity or device capable of carrying computer program codes to the photographing device/device, recording medium, computer memory, read-only memory (ROM), random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media For example, U disk, mobile hard disk, disk or CD, etc.
  • computer readable media may not be electrical carrier signals and telecommunications signals.
  • the disclosed apparatus/device and method may be implemented in other manners.
  • the apparatus/equipment embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrases “if it is determined” or “if the [described condition or event] is detected” may be interpreted, depending on the context, to mean “once it is determined” or “in response to the determination” or “once the [described condition or event] is detected. ]” or “in response to detection of the [described condition or event]”.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.

Abstract

本申请提供一种配置设备的方法及设备,涉及终端技术领域,其中,该方法包括第一设备接收来自第二设备的网络配置信息,第一设备向至少一个第三设备发送网络配置信息,网络配置信息用于第一设备和至少一个第三设备连接至网络设备,第一设备与任一第三设备中的一个设置有第一天线,另一个设置有第二天线,第一天线的发射功率小于第一功率阈值,第一天线的最长发射距离为第一距离阈值,第二天线的发射功率大于第一功率阈值。本申请提供的技术方案能够提高对设备进行配置的效率。

Description

配置设备的方法及设备
本申请要求于2020年09月18日提交国家知识产权局、申请号为202010988834.3、申请名称为“配置设备的方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种配置设备的方法及设备。
背景技术
随着终端技术的不断发展,各种类型和功能的设备日渐普及,比如智能音箱、智能开关等智能家居设备。这些设备在使用时,通常需要连接至网络设备,进而与服务器以及其他设备进行通信。因此,亟需一种配置设备方法。
现有技术中,智能音箱等未配网的设备需要通过网络设备的网络配置信息才能连接至该网络设备,而该未配网的设备可能没有输入设备,因此无法直接接收用户输入的网络配置信息。因此用户需要通过具有输入设备的另一设备,比如手机,连接至该未配网的设备,并向该未配网的设备提供该网络配置信息。可以看出这一配置方式较复杂,效率低下。
发明内容
有鉴于此,本申请提供一种配置设备的方法及设备。
为了实现上述目的,第一方面,本申请实施例提供一种配置设备的方法,所述方法包括:
第一设备接收来自第二设备的网络配置信息;
所述第一设备向至少一个第三设备发送所述网络配置信息,所述网络配置信息用于所述第一设备和所述至少一个第三设备连接至网络设备,所述第一设备与任一第三设备中的一个设置有第一天线,另一个设置有第二天线,所述第一天线的发射功率小于第一功率阈值,所述第一天线的最长发射距离为所述第一距离阈值,所述第二天线的发射功率大于所述第一功率阈值。
其中,第一设备和第三设备的至少一个可以为家居设备等物联网(internet of things,IoT)设备,第二设备可以是存储有网络配置信息的电子设备,第二设备也可以是存储有网络配置信息的家居设备等IoT设备。比如,第一设备和第三设备可以是一个音响系统中的多个音箱,第二设备可以手机。
需要说明的是,第一天线可以作为弱天线或假天线,第二天线可以作为强天线或真天线,第一距离阈值可以是采用第一天线发射信号时的最长发射距离。在一些实施例中,第一天线可以用于发射信号,第二天线可以用于接收并发射信号。
在本申请实施例中,在本申请实施例中,第一设备可以接收来自第二设备的网络配置信息,如果第一设备的第一距离阈值范围内(即与第一设备之间距离小于或等于第一距离阈值)还存在至少一个第三设备,第三设备和第一设备中一个设置有第一天线,另一个设置有第二天线,第二天线的发射功率>功率阈值1>第一天线的发射功率,则第一设备可以向该至少一第三设备发送该网络配置信息。由于该网络配置信息可以用于指示第一设备或第三设备连接至网络设备,因此,至少一个第三设备可以基于该网络配置信息连接至该网络设备。相似的,该至少一个第三设备也 可以按照上述方式,向更多设备发送该网络配置信息,从而能够快速地将网络配置信息发送给其他设备,以便于其他设备也能够快速地连接至该网络设备,而不需要用户逐一对各设备进行配置,极大地提高了配置效率。
需要说明的是,第一终端也可以按照与向第三设备提供网络配置信息相似的方式,向第三设备提供更多类型的设备配置信息。
可选地,所述网络配置信息包括所述网络设备的设备标识(比如服务集标识(service set identifier,SSID))和所述网络设备的密码。
可选地,所述网络设备包括路由设备、网关设备或主控设备。
其中,当网络设备所在的网络为基于无线保真(wireless fidelity,Wi-Fi)协议的网络时,网络设备可以为路由设备;当网络设备所在的网络为基于蓝牙协议或Zigbee协议的网络时,网络设备可以为网关设备或主控设备。
可选地,在所述第一设备向的至少一个第三设备发送所述网络配置信息之前,所述方法还包括:
所述第一设备接收所述任一第三设备广播的第一配置指示信息,所述第一配置指示信息用于指示所述任一第三设备处于未配置状态;
所述第一设备根据所述第一配置指示信息确定所述任一第三设备处于未配置状态。
可选地,在所述第一设备向至少一个第三设备发送所述网络配置信息之前,所述方法还包括:
所述第一设备向所述至少一个第三设备广播第三配置指示信息,所述第三配置指示信息用于触发所述至少一个第三设备接收所述网络配置信息。
其中,第三设备可以主动向第一设备广播第一配置指示信息,第一设备也可以主动向第三设备广播第三配置指示信息,那么通过这两种方式中的至少一种,都可以使得第一设备感知到周围还存在处于未配置状态的第三设备,提高了第一设备感知到第三设备的可靠性和效率,便于后续向这些第三设备提供网路配置信息等设备配置信息。
在一些实施例中,第三设备可以通过发射功率较大的第二天线发送第一配置指示信息,以使得更大距离范围内的第一设备都可以感知到第三设备,相似的,第一设备也可以通过发射功率较大的第二天线发送第三配置指示信息,以使得更大距离范围内的第三设备都可以感知到第一设备,提高第一设备与第三设备互相感知的可靠性。当然,第三设备也可以通过第一天线广播第一配置信息,相似的,第一设备也可以通过第一天线广播第三配置指示信息。
可选地,所述任一第三设备设置有所述第一天线,在所述第一设备向至少一个第三设备发送所述网络配置信息之前,所述方法还包括:
所述第一设备接收所述任一第三设备通过所述第一天线广播的第一鉴权信息;
所述第一设备基于所述第一鉴权信息,建立与所述任一第三设备之间的第一通信连接;
其中,所述第一设备向至少一个第三设备发送所述网络配置信息,包括:
所述第一设备通过所述第一通信连接向至少一个第三设备发送所述网络配置信息。
需要说明的是,当第三设备设置有第一天线时,第一设备可以设置有第二天线。且第三设备和第一设备也可以均设置有第一天线和第二天线。
还需要说明的是,第一鉴权信息可以包括个人身份识别码(personal identification number,PIN)或基于高级加密标准(advanced encryption standard,AES)的密钥,比如基于AES128的密钥。
由于第一天线的功率较低,第一设备只有处于第三设备的第一距离阈值范围内时,才可以接 收到第三设备通过第一天线发送的第一鉴权信息,因此通过第一天线便可以明文发送第一鉴权信息,既节省了协商秘钥的过程,提高了获取到设备配置信息的效率,也减少了与其他设备误连接的可能,提高了获取到设备配置信息的可靠性。
在一些实施例中,由于第三设备已经通过第一天线向第一设备发送了第一鉴权信息,第一设备基于第一鉴权信息建立了安全的第一通信连接,因此第一设备可以通过发射功率较大的第二天线来快速发送网络配置信息等设备配置信息,也能够确保当第一设备或第三设备获取到对端的鉴权信息时,即使第一设备与第三设备之间的距离大于第一距离阈值,但只要该距离小于或等于第二距离阈值,第一设备就可以向第三设备发送设备配置信息,提高发送设备配置信息的可靠性。当然,第一设备也可以通过第一天线向第三设备发送该设备配置信息。
在一些实施例中,第一设备设置有第一天线,那么第一设备可以通过第一天线向第三设备发送第一设备的鉴权信息,进而由第三设备在接收到该鉴权信息时建立与第一设备之间的通信连接。也即是,本申请实施例对第一设备与第三设备之间发送鉴权信息和建立通信连接的主体并不进行限定,只要该鉴权信息是通过第一天线发送的,都可以确保第一设备能够安全地向第一距离阈值内的第三设备发送设备配置信息。
可选地,所述第一设备与所述第二设备中的一个设置有所述第一天线,另一个设置有所述第二天线,在所述第一设备接收来自第二设备的网络配置信息之前,所述方法还包括:
所述第一设备向第二设备广播第二配置指示信息,所述第二配置指示信息用于指示所述第一设备处于未配置状态;
在所述第一设备接收来自第二设备的网络配置信息之后,所述方法还包括:
所述第一设备基于所述网络配置信息连接至所述网络设备。
其中,第一设备和第二设备中的至少一个设置有第一天线,另一个设置有第二天线,且当第二设备为手机时,可以是第一设备设置有第一天线,第二设备可以不设置第一天线。
在一些实施例中,第二设备可以通过Wi-Fi感知发布设备配置服务,第一设备通过Wi-Fi感知订阅配置服务,从而使得第一设备在确定第二设备存储有网络配置信息等设备配置信息时,从第二设备获取该设备配置信息。
需要说明的是,在本申请实施例中,也可以不限定第一设备从第二设备获取网络配置信息等设备配置信息的方式。
可选地,所述第一设备设置有所述第一天线,在所述第一设备接收来自第二设备的网络配置信息之前,所述方法还包括:
所述第一设备通过所述第一天线,向所述第二设备广播第二鉴权信息,所述第二鉴权信息用于所述第二设备建立与所述第一设备之间的第二通信连接;
所述第一设备接收来自第二设备的网络配置信息,包括:
所述第一设备基于所述第二通信连接,接收所述第二设备发送的所述网络配置信息。
可选地,所述第一设备设置有所述第一天线,所述第一设备向至少一个第三设备发送所述网络配置信息,包括:
所述第一设备通过所述第一天线,向所述至少一个第三设备广播所述网络配置信息。
在一些实施例中,第一设备可以在确定第一距离阈值范围内存在第三设备时,通过第一天线第三设备的网络配置信息等设备配置信息。在另一些实施例中,第一设备可以在获取到该设备配置信息时就通过第一天线广播设备配置信息。由于第一距离阈值较短,可以被认为是安全的通信 距离,那么第一设备便可以在第一设备与第三设备不建立通信连接的情况下,安全地向第三设备发送设备配置信息,进一步提高了配置效率。
可选地,所述第一设备接收所述任一第三设备广播的第一配置指示信息,包括:
所述第一设备通过Wi-Fi协议或蓝牙协议,接收所述任一第三设备广播的所述第一配置指示信息。
可选地,所述第一设备接收所述任一第三设备通过所述第一天线广播的第一鉴权信息,包括:
所述第一设备通过Wi-Fi协议或蓝牙协议,接收所述任一第三设备通过所述第一天线广播的所述第一鉴权信息;
所述第一设备基于所述第一鉴权信息,建立与所述任一第三设备之间的第一通信连接,包括:
所述第一设备基于所述Wi-Fi协议或所述蓝牙协议,以及所述第一鉴权信息,建立与所述任一第三设备之间的所述第一通信连接。
第二方面,本申请实施例提供一种配置设备的装置,该装置可以设置于IOT设备中,并能够用于执行第一方面任一所述的方法。
第三方面,本申请实施例提供一种设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面中任一项所述的方法。
可选地,该设备包括一个或多个天线,该一个或多个天线可以分为第一天线(即超短距天线,也称为弱天线或假天线)和第二天线(即正常天线,也称为强天线或真天线)。第一天线发射无线信号的发射功率可以小于第一功率阈值,最长发射距离为第一距离阈值,第二天线发射无线信号的发射功率可以大于第一功率阈值,最长发射距离为第二距离阈值,第一距离阈值可以小于第二距离阈值。
在一些实施例中,第一距离阈值可以小于或等于1米,如第一距离阈值可以是1米、50厘米或30厘米。
可选地,该设备可以通过处理器控制第二天线和第一天线的切换。
可选地,该设备包括微控制单元(microcontroller unit,MCU),MCU设置有通用输入输出(general-purpose input/output,GPIO)接口。MCU可以通过GPIO控制第二天线和第一天线的切换。
可选地,该设备包括无线通信模块,该无线通信模块可以提供基于无线局域网(wireless local area networks,WLAN)(如Wi-Fi),蓝牙(bluetooth,BT),Zigbee(一种低速短距离传输的无线网上协议,也称紫蜂)等无线通信的解决方案。
第四方面,本申请实施例提供一种芯片系统,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面中任一项所述的方法。
其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
第五方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面中任一项所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在设备上运行时,使得该设备执行上述第一方面中任一项所述的方法。
可以理解的是,上述第二方面至第六方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
图1为本申请实施例所提供的一种家居设备的结构示意图;
图2A为本申请实施例所提供的一种天线的结构示意图;
图2B为本申请实施例所提供的一种天线的结构示意图;
图2C为本申请实施例所提供的另一种天线的结构示意图;
图2D为本申请实施例所提供的另一种天线的结构示意图;
图2E为本申请实施例所提供的一种通信场景的示意图;
图3为本申请实施例提供的一种电子设备的结构示意图;
图4为本申请实施例提供的一种设备配置系统的结构示意图;
图5为本申请实施例提供的另一种设备配置系统的结构示意图;
图6为本申请实施例提供的一种设备配置方法的流程图;
图7为本申请实施例所提供的一种家居设备的状态示意图;
图8为本申请实施例所提供的另一种家居设备的状态示意图;
图9为本申请实施例所提供的另一种家居设备的状态示意图;
图10为本申请实施例提供的另一种设备配置方法的流程图;
图11为本申请实施例所提供的另一种设备的状态示意图;
图12为本申请实施例所提供的另一种设备的状态示意图;
图13为本申请实施例所提供的另一种设备的状态示意图;
图14为本申请实施例提供的另一种设备配置方法的流程图。
具体实施方式
本申请实施例提供的设备配置方法可以应用于智能音箱、智能开关、智能插座、智能冰箱、智能空调、智能灯泡、智能电视机、智能摄像头、智能风扇、电饭煲、体重秤或体脂秤等家居设备,也可以应用于探测设备、传感设备、安防设备等其他场合中的需要通过配置来连接至网络设备的IoT设备。本申请实施例对物联网设备的具体类型不作任何限制。当然,在实际应用中,本申请实施例所提供的设备配置方法也可以用于电子设备。
请参照图1,为本申请实施例所提供的一种家居设备100的结构示意图。如图1所示,家居设备100可以包括:处理器101,外部存储器接口102,内部存储器103,USB接口105,电源管理模块104,天线,无线通信模块108,以及其他功能模块。该其他功能模块用于实现家居设备100的相关功能。例如,智能音箱可以包括音频模块107、扬声器107A和显示屏106等。智能电视机也可以包括音频模块107、扬声器107A和显示屏106等。又例如,智能空调可以包括制冷模块等,智能灯泡可以包括发光模块等。
处理器101可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器101中还可以设置存储器,用于存储指令和数据。
其中,控制器可以是家居设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
电源管理模块104用于连接电源。电源管理模块104还可以与处理器101、内部存储器103、显示屏106和无线通信模块108等连接。电源管理模块104通过USB接口105接收电源的输入, 为处理器101、内部存储器103、显示屏106和无线通信模块108等供电。在一些实施例中,电源管理模块104也可以设置于处理器101中。
家居设备100的无线通信功能可以通过天线a和无线通信模块108等实现。
无线通信模块108可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块108经由天线a接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器101。无线通信模块108还可以从处理器101接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。在一些实施例中,家居设备200的天线a和无线通信模块108耦合,使得家居设备100可以通过无线通信技术与网络以及其他设备通信。例如,本申请实施例中的无线通信模块108可以是蓝牙模块或者Wi-Fi模块。该无线通信模块108用于与电子设备100、路由器120和云服务器130等设备进行数据传输。在一些示例中,无线通信模块108可以提供基于WLAN(Wi-Fi如)网络,BT,Zigbee等无线通信的解决方案。
其中,上述天线a可以包括一个或多个天线。该一个或多个天线可以分为第一天线(即超短距天线,也称为弱天线或假天线)和第二天线(即正常天线,也称为强天线或真天线)。第一天线发射无线信号的发射功率可以小于第一功率阈值,最长发射距离为第一距离阈值,第二天线发射无线信号的发射功率可以大于第一功率阈值,最长发射距离为第二距离阈值,第一距离阈值可以小于第二距离阈值。该第二天线和第一天线可进行切换。该第二天线和第一天线通过家居设备100上的无线通信模块实现与其他设备(如手机)的网络通信。
在一些示例中,处理器101包括MCU109,MCU109设置有GPIO接口110。MCU109可以通过GPIO110控制第二天线和第一天线的切换。
图2A示出了本申请实施例提供的家居设备100中的天线结构的一示意图。
在一种示例中,上述第二天线和第一天线可以是不同的两个天线。图1所示的家居设备100可以是图2A所示的电子设备20(如音箱)。电子设备20可以包括微控制单元MCU204,无线通信模块203,天线201和天线202。
其中,图2A所示的天线201是上述第二天线,天线202是第一天线。图1所示的天线a可以包括图2A所示的天线201和天线202。图1所示的无线通信模块108可以是图2A所示的无线通信模块203;图2A所示MCU 204可以是图1中的MCU110或由图1中处理器101实现。其中,上述无线通信模块203可以是Wi-Fi芯片,该无线通信模块203的射频输入输出(radio frequency input/output,RFIO)引脚通过单刀双掷开关连接天线201或天线202。
其中,MCU 204可以包括中央处理器,内存,计数器,时钟,中断,串行外设接口(serial peripheral interface,SPI),UART接口,通用串行总线接口等。其中,UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线,将要传输的数据在串行通信与并行通信之间转换。
在一些实施例中,MCU 204通过UART接口与无线通信模块203交互信息。其中,无线通信模块203用于实现家居设备100与其他设备(如手机)的无线通信。无线通信模块203的详细描述可以参考上述实施例对无线通信模块108的详细介绍,这里不予赘述。
其中,天线201和天线202可用于发射和接收电磁波。进一步的,无线通信模块203可将从天线201或天线202接收的电磁波转换为信号,并将信号发送至MCU 204进行处理。或者无线通信模块203可从MCU 204接收待发送的信号,经由天线201或天线202转为电磁波辐射出去。
在一些实施例中,MCU204可以控制天线201与天线202的切换。当家居设备100采用天线 201时,如果家居设备100与其他设备(如手机)之间的距离小于或等于第二距离阈值,其它设备(如手机)则能够接收到家居设备100通过天线201发射的信号,从而实现其他设备与家居设备100的通信;当家居设备100采用天线202时,如果家居设备100与其他设备(如手机)之间的距离小于或等于第一距离阈值,其他设备则能够接收到家居设备100通过天线202发射的信号,从而实现其他设备与家居设备100的通信。相似的,其他设备也可以设置有天线201或天线202。当其他设备采用天线201时,如果家居设备100与其他设备(如手机)之间的距离小于或等于第二距离阈值,家居设备100则能够接收到其它设备通过天线201发射的信号;当其他设备采用天线202时,如果家居设备100与其他设备之间的距离小于或等于第一距离阈值,家居设备100则能够接收到其他设备通过天线202发射的信号。可以看出,如果家居设备100和其他设备之间的任一个设置有天线202(即弱天线),另一个无论设置有天线202(即真天线)还是天线201,那么只要家居设备100和其他设备之间的距离小于或等于第一距离阈值,家居设备100与其他设备便可以互相接收和发送信号。
示例性的,家居设备100可以采用天线201向周围的设备发送第一消息或第二消息;家居设备100可以通过天线202接收其他设备发送的邻居感知网络(neighborhood aware netowrk,NAN)发布消息。家居设备100还可以通过天线201或天线202接入Wi-Fi路由器。
在另一些实施例中,上述第二天线和第一天线可以共用一部分走线,例如图2B-图2D所示实施例中的描述。
本申请实施例家居设备100通过第一天线来实现超短距通信。本申请实施例中家居设备100中的双天线(第一天线以及第二天线)可以通过射频开关进行切换。物理上可以将第一天线与射频开关(如图2B-图2D中虚线框中所示为第一天线)都置于屏蔽罩内或者将第一天线置于芯片内。图2B-图2D示出了三种第一天线的结构示意图。
本申请实施例中的第一天线的目的就是要尽可能减小发射距离。构造第一天线的原理可以是:
(1)减小天线长度,从而减小辐射到空气中的电磁波;
(2)减小辐射效率,通过电阻将一部分的电磁波辐射转化为热能消耗掉;
(3)降低回波损耗,将部分射频能量反射回芯片内部等。
第一天线具体的实现可以采用:
(1)将天线变短;
(2)将真天线路径中某点断开,或者在该点通过电阻、电感或者电容接地;
(3)使用屏蔽罩等。
应理解,上述第一天线具体的实现(1)和(2)可以在PCB板上或者芯片内部实现。
还应理解,上述屏蔽罩的作用是隔断天线辐射电磁波到接收器的路径,以达到削弱辐射的目的。
还应理解,上述将天线变短是指第一天线相比于第二天线来说,第一天线更短。图2B至图2D所示的三种第一天线的结构,第一天线如图2B至图2D中的虚线框中所示。图2B至图2D中第二天线的结构都是通过RFIO引脚连接滤波电路210(例如,π型电路)、匹配电路220(例如,π型电路)以及匹配电路220外的天线体230(例如,该天线体可以是一段金属走线)。图2B中虚线框所示的第一天线a、图2C中虚线框所示的第一天线b以及图2D中虚线框所示的第一天线c的长度不同,但是相比于第二天线都更短。滤波电路的作用是防止干扰,匹配电路220是用来与第二天线匹配。
示例性的,如图2B所示,第一天线a可以采用屏蔽罩240内Wi-Fi芯片250的射频输入输出(radio frequency input/output,RFIO)引脚直接断开。其中,第一天线a可以由RFIO引脚、走线和2路开关中的第一路开关(第一路开关不连接任何器件)组成。其中,2路开关指的是RFIO与滤波电路之间的开关,通过该开关可以将RFIO引脚与滤波电路210连通或者断开;所述第一路开关为2B所示的与RFIO引脚相连、且与滤波电路210之间断开的开关。应理解,本申请实施例中的2路开关可以是单刀双掷开关。
示例性的,如图2C所示,第一天线b可以采用屏蔽罩240内Wi-Fi芯片250的RFIO通过匹配器件(例如,电阻)到地。其中,第一天线b可以由RFIO引脚、走线、2路开关的第一路开关(第一路开关连接电阻)以及电阻组成。通过电阻接地可以将一部分的电磁波辐射转化为热能消耗掉,从而减小了第一天线b的辐射效率。其中,所述2路开关指的是RFIO引脚与电阻、滤波电路之间的开关,通过该开关,可以将RFIO引脚与电阻相连、与滤波电路210断开,或者可以将RFIO引脚与电阻断开、而与滤波电路210相连通。所述的第一路开关为与电阻相连、且与滤波电路断开的开关。
示例性的,如图2D所示,第一天线c可以采用屏蔽罩240内Wi-Fi芯片250的RFIO引脚过芯片匹配的滤波电路220后接匹配器件(例如,电阻)到地。第一天线c可以由RFIO引脚、走线、滤波电路210、2路开关的第一路开关(第一路开关连接电阻)以及电阻组成。通过电阻接地可以将一部分的电磁波辐射转化为热能消耗掉,从而减小了第一天线b的辐射效率。其中,所述2路开关指的是屏蔽罩240内的滤波电路210与电阻、屏蔽罩240外的匹配电路220之间的开关,通过该开关,可以将屏蔽罩240内的滤波电路210与电阻相连、与屏蔽罩外的匹配电路220断开,或者可以将屏蔽罩240内的滤波电路210与电阻断开、而与屏蔽罩240外的匹配电路220相连通。所述的第一路开关为连接屏蔽罩240内的滤波电路210与电阻的开关。
应理解,上述图2B至图2C中的第二天线可以由RFIO引脚、走线、2路开关中的第二路开关,滤波电路210、匹配电路220以及匹配电路220外连接的天线体230组成。所述第二路开关为连接RFIO引脚与滤波电路210的开关。
上述图2D中的第二天线可以由RFIO引脚、滤波电路210、走线、2路开关中的第二路开关、匹配电路220以及匹配电路220外连接的天线体230组成。所述第二路开关为连接屏蔽罩240内的滤波电路210与屏蔽罩240外的匹配电路220的开关。
应理解,上述图2A所示的无线通信模块203可以是图2B至图2C中所述的Wi-Fi芯片250。
以上不同的第一天线结构配合Wi-Fi芯片250的不同发射功率(Tx power)的设置,可以达到不同超短距通讯的要求(例如,从10cm到2m)。
示例性的,表1示出了几种不同的第一天线结构配合不同发射功率的通讯距离。
表1
Figure PCTCN2021111731-appb-000001
由于芯片内物理器件的特性,天线最大发射功率和最小发射功率之差是相关联的。如果把家居设备100的最小发射功率降得很低,则最大发射功率也会被降低,这样就不满足正常工作时的 距离要求。本申请实施例中,由于不同的家居设备100的结构不同以及对家居设备100的安全性能要求不同,所以家居设备100的生产厂商可以采用不同的第一天线结构以及发射功率来保证家居设备100的通讯距离。示例性的,对于不同的智能空调生产厂商,其智能空调外壳的厚度可能不同,那么在第一天线结构相同以及发射功率相同的情况下,智能空调能够被发现的通讯距离也可能不同。不同的家居设备100生产厂商可以根据其智能设备本身的结构,配合第一天线的结构以及一定的发射功率,从而测试出家居设备100被发现的安全距离。
结合上述示例,以第二距离阈值是5米,第一距离阈值是0.3米为例。当家居设备100采用第二天线(即强天线)时,如果家居设备100与其他设备(如手机)之间的距离小于第二距离阈值(如其他设备位于图2E所示的位置1),家居设备100可与其他设备(如音箱)通信;当家居设备100采用第一天线(即弱天线)时,如果家居设备100与其他设备(如手机)之间的距离小于第一距离阈值(如其他设备位于图2E所示的位置2),家居设备100可与其他设备(如手机)通信。
家居设备100通过GPU,显示屏106,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏106和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器101可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏106用于显示图像,视频等。显示屏394包括显示面板。显示面板可以采用液晶显示屏(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个显示屏106,N为大于1的正整数。
视频编解码器用于对数字视频压缩或解压缩。家居设备100可以支持一种或多种视频编解码器。这样,家居设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
内部存储器103可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器101通过运行存储在内部存储器103的指令,从而执行家居设备100的各种功能应用以及数据处理。内部存储器103可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储家居设备100使用过程中所创建的数据(比如音频播放记录)等。此外,内部存储器103可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口102可以用于连接外部存储卡,例如Micro SD卡,实现扩展广告设备120的存储能力。外部存储卡通过外部存储器接口102与处理器301通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
家居设备100可以通过音频模块107,扬声器107A和麦克风107B,以及应用处理器等实现音频功能。例如音乐播放,录音,语音采集等。
音频模块107用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块107还可以用于对音频信号编码和解码。在一些实施例中,音频模块107可以设置于处理器101中,或将音频模块107的部分功能模块设置于处理器101中。扬声器307A, 也称“喇叭”,用于将音频电信号转换为声音信号。麦克风107B,也称“话筒”,“传声器”,用于采集声音信号,并将声音信号转换为电信号。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、膝上型、可穿戴设备(如智能手表)、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等包括显示屏和短距离通信模块的设备,本申请实施例对该电子设备的具体形态不作特殊限制。请参照图3,为本申请所提供的一种电子设备300的结构示意图。电子设备300可以包括处理器310,外部存储器接口320,内部存储器321,通用串行总线(universal serial bus,USB)接口330,充电管理模块340,电源管理模块341,电池342,天线b,天线c,移动通信模块350,无线通信模块360,音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,传感器模块380,按键390,马达391,指示器392,摄像头393,显示屏394,以及用户标识模块(subscriber identification module,SIM)卡接口395等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备300的具体限定。在本申请另一些实施例中,电子设备300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器310可以与前述中的处理器101相似或相同,此处不再赘述。
在一些实施例中,处理器310可以包括一个或多个接口。接口可以包括集成电路(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)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器310可以包含多组I2C总线。处理器310可以通过不同的I2C总线接口分别耦合触摸传感器380K,充电器,闪光灯,摄像头393等。例如:处理器310可以通过I2C接口耦合触摸传感器380K,使处理器310与触摸传感器380K通过I2C总线接口通信,实现电子设备300的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器310可以包含多组I2S总线。处理器310可以通过I2S总线与音频模块370耦合,实现处理器310与音频模块370之间的通信。在一些实施例中,音频模块370可以通过I2S接口向无线通信模块360传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块370与无线通信模块360可以通过PCM总线接口耦合。在一些实施例中,音频模块370也可以通过PCM接口向无线通信模块360传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器310与无线通信模块360。例如:处理器310通过UART接口与无线通信模块360中的蓝牙模 块通信,实现蓝牙功能。在一些实施例中,音频模块370可以通过UART接口向无线通信模块360传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器310与显示屏394,摄像头393等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器310和摄像头393通过CSI接口通信,实现电子设备300的拍摄功能。处理器310和显示屏394通过DSI接口通信,实现电子设备300的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器310与摄像头393,显示屏394,无线通信模块360,音频模块370,传感器模块380等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口330是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口330可以用于连接充电器为电子设备300充电,也可以用于电子设备300与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备300的结构限定。在本申请另一些实施例中,电子设备300也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块340用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块340可以通过USB接口330接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块340可以通过电子设备300的无线充电线圈接收无线充电输入。充电管理模块340为电池342充电的同时,还可以通过电源管理模块341为电子设备供电。
电源管理模块341用于连接电池342,充电管理模块340与处理器310。电源管理模块341接收电池342和/或充电管理模块340的输入,为处理器310,内部存储器321,外部存储器,显示屏394,摄像头393,和无线通信模块360等供电。电源管理模块341还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块341也可以设置于处理器310中。在另一些实施例中,电源管理模块341和充电管理模块340也可以设置于同一个器件中。
电子设备300的无线通信功能可以通过天线b,天线c,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。
天线b和天线c用于发射和接收电磁波信号。电子设备300中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线b复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。在一些实施例中,天线b和天线c中的至少一个可以与前述中的天线a相似或相同,即天线b和天线c中的至少一个可以包括第一天线和第二天线。
移动通信模块350可以提供应用在电子设备300上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块350可以由天线b接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块350还可以对经调制解调处理器调 制后的信号放大,经天线b转为电磁波辐射出去。在一些实施例中,移动通信模块350的至少部分功能模块可以被设置于处理器310中。在一些实施例中,移动通信模块350的至少部分功能模块可以与处理器310的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器370A,受话器370B等)输出声音信号,或通过显示屏394显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器310,与移动通信模块350或其他功能模块设置在同一个器件中。
无线通信模块360可以与前述中的无线通信模块108相似或相同。
在一些实施例中,电子设备300的天线b和移动通信模块350耦合,天线c和无线通信模块360耦合,使得电子设备300可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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)。
显示屏394可以与前述中的显示屏106相似或相同。
电子设备300可以通过ISP,摄像头393,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。
ISP用于处理摄像头393反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头393中。
摄像头393用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备300可以包括1个或N个摄像头393,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备300在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备300的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口320可以与前述中的外部存储器接口102相似或相同。
内部存储器321可以与前述中的内部存储器103相似或相同。
电子设备300可以通过音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块370,扬声器370A和麦克风370C,可以分别和前述中的音频模块107,扬声器107A和麦克风107B相似或相同。
受话器370B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备300接听电话或语音信息时,可以通过将受话器370B靠近人耳接听语音。
耳机接口370D用于连接有线耳机。耳机接口370D可以是USB接口330,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
传感器模块380可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
按键390包括开机键,音量键等。按键390可以是机械按键。也可以是触摸式按键。电子设备300可以接收按键输入,产生与电子设备300的用户设置以及功能控制有关的键信号输入。
马达391可以产生振动提示。马达391可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏394不同区域的触摸操作,马达391也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器392可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口395用于连接SIM卡。SIM卡可以通过插入SIM卡接口395,或从SIM卡接口395拔出,实现和电子设备300的接触和分离。电子设备300可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口395可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口395可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口395也可以兼容不同类型的SIM卡。SIM卡接口395也可以兼容外部存储卡。电子设备300通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备300采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备300中,不能和电子设备300分离。
电子设备300的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。
以下实施例中的方法均可以在具有上述硬件结构的家居设备等物联网设备和具有上述硬件结构的电子设备中实现。
为了便于理解本申请施例中的技术方案,下面首先对本申请实施例的应用场景予以介绍。
目前,无论生活还是生产中,各种设备越来越多。以智能机家居场景为例,智能音箱、智能开关、智能插座和智能冰箱等智能家居设备已经逐渐普及。这些设备可以连接至路由设备、网关设备或主控设备等网络设备,还可以通过网络设备连接至服务器,从而形成一个功能丰富的网络,用户可以远程控制这些设备来构建一个理想的家居环境。比如,多个智能音箱可以组成2.0立体 声或6.1立体声等声效环境。但由于某些设备可能没有屏幕或输入设备,通常需要额外通过其他设备来进行配置。
请参照图4,为本申请实施例所提供的一种设备配置系统的结构示意图。在该系统中,包括家居设备410、家居设备420和家居设备430等多个家居设备,还包括电子设备440和网络设备450)。
家居设备410、家居设备420和家居设备430可以不具有屏幕,不具有键盘和按键等输入设备,或者,家居设备410、家居设备420和家居设备430具有屏幕和输入设备,但该屏幕的显示能力和输入设备的输入能力较弱,不能或便于与用户进行交互来获取得到网络配置信息。比如,家居设备410为智能音箱,该智能音箱具有如图1中的显示屏106但该显示屏106只用于显示当前播放内容,虽然也有按键但该按键只用于开启或关闭智能音箱。那么显然,家居设备410很难通过与用户交互的方式来获取到网络配置信息。但家居设备410如果包括无线通信模块108,那么家居设备410便可以通过无线通信模块108,与手机建立通信连接,从而接收用户在电子设备440提交的网络配置信息。
为了与电子设备440建立通信连接,从而获取到电子设备440送的网络配置信息,家居设备410、家居设备420和家居设备430可以在上电启动时,开启软接入点(soft access point,soft AP)模式,从而广播各自的SSID。用户通过电子设备440依次基于家居设备410、家居设备420和家居设备430的SSID,分别连接至家居设备410、家居设备420和家居设备430,从而分别向家居设备410、家居设备420和家居设备430发送网络设备450的网络配置信息(例如:网络设备450(如路由器)SSID的)和密码)。当家居设备410、家居设备420和家居设备430接收到网络设备450的网络配置信息时,关闭soft AP模式,并基于该网络设备450的网络配置信息,连接至该网络设备450(例如基于SSID和密码接入网络设备450提供的无线局域网),进而通过该网络设备450连接家居云完成注册和配网。在上述配置过程中,由于家居设备410、家居设备420和家居设备430要切换至soft AP模式,从而使电子设备440依次连接家居设备410、家居设备420和家居设备430,并发送网络配置信息,配置的方式比较繁琐,效率低下,其配置所耗费的时间成本与设备数目成正比。
其中,当网络设备450所在的网络为基于Wi-Fi协议的网络时,网络设备450可以为路由设备;当网络设备450所在的网络为基于蓝牙协议或Zigbee协议的网络时,网络设备450可以为网关设备或主控设备。
为解决上述问题,本申请提供了另一种设备配置系统的结构示意图。请参照图5,该系统包括家居设备510、家居设备520、家居设备521和家居设备530等多个家居设备,还包括电子设备540和网络设备550。
家居设备510、家居设备520、家居设备521和家居设备530,可以与前述中的家居设备410、家居设备420和家居设备430类似,不便于直接与用户进行交互来获取设备配置信息。当然,在实际应用中,无论家居设备510、家居设备520、家居设备521和家居设备530是否具有直接通过与用户进行交互来获取设备配置信息的能力,都可以通过本申请实施例的所提供的配置设备的方式来获取设备配置系信息,以减少用户的繁琐操作,提高配置效率。当网络设备550所在的网络为基于Wi-Fi协议的网络时,网络设备550可以为路由设备;当网络设备550所在的网络为基于蓝牙协议或Zigbee协议的网络时,网络设备550可以为网关设备或主控设备。
其中,家居设备510、家居设备520、家居设备521和家居设备530,可以包括如图2A中的 无线通信模块203,天线201和天线202。
电子设备540中可以存储有设备配置信息,或者可以接收用户提交的设备配置信息。例如,该电子设备540可以包括手机、电脑或者智能音箱。
其中,设备配置信息可以用于对家居设备510、家居设备520、家居设备521和家居设备530等设备进行配置。该设备配置信息可以包括网络配置信息,该网络配置信息可以用于设备连接至网络设备550,比如该网络配置信息可以包括网络设备550的设备标识(如SSID),还可以包括该网络设备550的密码。当然,在实际应用中,该设备配置信息也可以包括其他类型的配置信息,比如设备配置信息还可以包括账号注册信息、设备控制指令和设备状态参数等中的至少一个。
假设在图3中,家居设备510和家居设备520之间的距离、家居设备510与家居设备521之间的距离、家居设备520与家居设备530之间的距离、家居设备520与家居设备521之间的距离,均小于或等于第一距离阈值,家居设备510与家居设备530之间的距离和家居设备521与家居设备530之间的距离,均大于第二距离阈值。
首先,家居设备510可以通过任意方式(比如与图4中家居设备410、家居设备420或家居设备430相似的方式)从电子设备540获取该设备配置信息。家居设备510与家居设备520之间的一个设置有第一天线,另一个设置有第二天线,家居设备510与家居设备521之间的一个设置有第一天线,另一个设置有第二天线,第一天线的最长发射距离为第一距离阈值,那么当家居设备510接收到该设备配置信息时,可以向处于家居设备510第一距离阈值范围内的家居设备520和家居设备521发送该设备配置信息。相似的,家居设备520、家居设备521和家居设备530也可以向与其之间的距离小于或等于第一距离阈值的其他设备发送该设备配置信息。可以看出,只要有一个设备获取到了设备配置信息,那么该设备便可以向第一距离阈值范围内的其他设备发送该设备配置信息,如此链式传播,各设备便可以快速得获取得到该设备配置信息,并根据该设备配置信息对该设备进行配置。且设备的数目越多,设备配置信息扩散的速度越快,配置设备的速度越快,与图4所提供的设备配置系统相比,配置的效率得到了极大地提升。
在一些实施例中,电子设备540可以被代替为已经获取到设备配置信息的任意家居设备。
在一些实施例中,该系统还包括服务器560,设备配置信息还可以包括账号注册信息。该账号注册信息可以用于在该服务器560中进行注册。
需要说明的是,由于家居设备510、家居设备520、家居设备521和家居设备530是向第一距离阈值范围内的其他设备发送设备配置信息,因此这些设备可以是处于同一个场景中的设备,比如同一个家庭中的家居设备或同一厂区的安防设备等,所以这些设备可以连接在同一服务器(比如智能家居云服务器或安防云服务器)进行注册,以便于用户通过手机等设备进行管控,因此当该设备配置信息包括账号注册信息时,该账号注册信息可以相同。比如,该账号注册信息可以包括用户标识。
另外,设备控制指令可以用于控制设备执行与该设备控制指令对应的一种或多种操作,设备配置参数可以用于指示设备在运行时的状态,该设备配置参数可以携带在该设备控制指令中。比如,设备为智能音箱,设备控制指令可以为播放音乐,设备配置参数可以播放音乐时的音量和声道模式;又比如,设备为智能灯泡,设备控制指令可以包括打开灯光,设备配置参数可以包括灯光颜色和亮度。
需要说明的是,设备配置信息中可以包括针对多个设备的设备控制指令和设备配置参数,各设备可以在接收到设备控制指令和设备配置参数时,对接收到的设备控制指令(设备配置参数) 进行识别,如果识别成功则根据该设备控制指令(设备配置参数)进行配置,否则忽略该设备控制指令(设备配置参数)。
下面针对图1和图3所提供的设备以及图5所提供的设备配置系统,以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。需要说明的是,下述中的家居设备或电子设备可以全部或部分被替换为物联网设备,且当电子设备也可以设置第一天线时,家居设备可以被全部或部分替换为电子设备。
其中,第一设备和第三设备可以为处于未配置状态的家居设备或电子设备,比如第一设备可以包括未获取到设备配置信息的家居设备510、家居设备520、家居设备521和家居设备530;第二设备可以存储有设备配置信息的家居设备或电子设备,比如,第二设备可以包括电子设备540以及获取到设备配置信息之后的家居设备510、家居设备520、家居设备521和家居设备530。第一配置指示信息或第二配置指示信息可以为下述中的配置指示信息2、配置指示信息3或配置指示信息4,第三配置指示信息可以为下述中的配置指示信息1、配置指示信息5、配置指示信息6或配置指示信息7,第一鉴权信息或第二鉴权信息可以为下述中的鉴权信息2、鉴权信息3或鉴权信息4,第一通信连接或第二通信连接可以为下述中的通信连接1、通信连接2或通信连接3。
请参照图6,为本申请实施例所提供的一种设备配置方法的流程图。需要说明的是,该方法并不以图6以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:
S601,家居设备510接收来自电子设备540的设备配置信息。
可选地,电子设备540可以通过Wi-Fi感知发布设备配置服务,包括通过广播发送配置指示信息1,配置指示信息1可以用于描述该设备配置服务。家居设备510可以通过Wi-Fi感知订阅配置服务。当家居设备510通过第二天线接收到配置指示信息1时,可以确定发现了电子设备540,因此可以通过第一天线向电子设备540广播鉴权信息1。当电子设备540接收到鉴权信息1时,可以提示用户发现了未配置的家居设备510,以便于接收用户提交的设备配置信息,还可以通过鉴权信息1与家居设备510建立加密的通信连接1,并通过该通信连接1向家居设备510发送设备配置信息。
Wi-Fi感知,或称为NAN。Wi-Fi感知可以绕过传输控制协议/(transmission control protocol,TCP)/网际协议(Internet Protocol,IP)层,使应用层可以直接控制媒体访问控制(media access control,MAC)层,从而降低通信时延。通过Wi-Fi感知技术,通信双方可以在不连接同一网络设备的情况下直接进行通信。通信的一方可以作为服务发布者并发送一个或多个可发现的服务,另一方可以作为服务订阅者订阅这些服务。当服务订阅者进入服务发布者的Wi-Fi范围时,服务订阅者可以接收到发现该服务的通知,并与服务发布者建立通信连接进行通信。
鉴权信息1可以用于对访问家居设备510的其他设备进行鉴权。该鉴权信息1可以包括PIN或基于AES的密钥,比如基于AES128的密钥。
由前述可知,第一天线的功率较低,电子设备540只有处于家居设备510的第一距离阈值范围内时,才可以接收到家居设备510通过第一天线发送的鉴权信息1,因此通过第一天线便可以明文发送鉴权信息1,既节省了家居设备510与电子设备540协商秘钥的过程,提高了获取到设备配置信息的效率,也减少了与其他设备误连接的可能,提高了获取到设备配置信息的可靠性。
可选地,家居设备510可以在通过第二天线接收到配置指示信息1时,发出发现配网服务提示信号,比如发出“请将手机靠近本家居设备50厘米以内”的语音提示,从而提示用户将家居设备510与电子设备540互相靠近。
可选地,家居设备510还可以向电子设备540发送家居设备510的设备标识,从而便于控制设备更加准确地确定所要连接是家居设备510。
可选地,家居设备510可以基于设备配置信息对家居设备510进行配置。当该设备配置信息包括网络配置信息时,家居设备510可以基于该网络配置信息链接至网络家居设备550。当该设备配置信息包括账号注册信息时,家居设备510可以基于该账号注册信息在服务器560中进行注册。当该设备配置信息包括设备控制指令和/或设备状态参数时,家居设备510可以基于该设备控制指令和/或设备状态参数进行运行。
需要说明的是,若电子设备540为手机或电脑等能够对家居设备510进行控制的设备,则电子设备540在家居设备510注册成功时,还向该电子设备540发送注册成功提示信息。家居设备510可以在与电子设备540之间的通信连接1建立成功时,通过通信连接1将家居设备510的设备状态信息发送给设备配置源340,和/或,通过通信连接1接收针对家居设备510的设备控制指令和/或设备状态参数,从而便于用户在家居设备510配置之前对家居设备510进行控制,提高控制家居设备510的可靠性。
需要说明的是,家居设备510也可以通过其他方式来从电子设备540获取设备配置信息。比如,家居设备510可以切换至soft AP模式,电子设备540至作为soft AP的家居设备510并向家居设备510发送设备配置信息。又比如,家居设备510也可以按照下述与家居设备520从家居设备510获取设备配置信息相似的方式,从电子设备540获取该设备配置信息。本申请实施例对设备1从控制设备获取设备配置信息的方式不做具体限定。
还需要说明的是,家居设备510可以在获取到设备配置信息时执行下述步骤S602,从而进一步提高其他未配置的设备获取到设备配置信息的效率,也可以在基于该设备配置信息成功完成配置(比如根据网络配置信息成功连接至网络家居设备550、根据账号注册信息在成功在服务器560进行注册等)时再执行下述步骤S402,以减少可能发送错误的设备配置信息的可能。
S602,家居设备520通过第二天线或第一天线广播配置指示信息2,并通过第一天线广播鉴权信息2。
其中,配置指示信息2用于指示家居设备520处于未配置状态,鉴权信息2用于对访问家居设备520的其他设备进行鉴权。
为了便于家居设备510感知到周围还存在未配置的家居设备520,家居设备520可以广播配置指示信息2。且由于配置指示信息2是用于指示家居设备520处于未配置状态,因此可以通过发射功率较高的第二天线发送,也可以通过发射功率较低的第一天线发送,而鉴权信息2对安全性要求比较高,因此可以通过发射功率较低的第一天线发送,从而确保只有处于与家居设备520的第一距离阈值范围内的设备才会接收待鉴权信息2,减少了误配的可能。同时因为第一距离阈值较短,可以为认为是安全的传输距离,那么在第一距离阈值内传输鉴权信息2,该传输过程也可以被认为是安全的,所以可以通过明文传输鉴权信息2,以节省家居设备520与家居设备510协商秘钥的过程,提高了配置设备的效率。
其中,当家居设备520通过发射功率较大的第二天线广播配置指示信息2时,可以使得更大距离范围内的家居设备510都可以感知到家居设备520,提高了家居设备510感知到家居设备520 的可靠性。
可选地,家居设备520可以通过Wi-Fi协议、蓝牙协议或Zigbee协议,广播配置指示信息2和鉴权信息2,也即是,配置指示信息2和鉴权信息2可以携带在基于Wi-Fi协议或蓝牙协议的帧(比如管理帧或控制帧)中。
可选地,配置指示信息2可以携带在基于Wi-Fi协议、蓝牙协议或Zigbee协议的信标(beacon)帧。其中,配置指示信息2可以通过信标帧的数据位(frame body)中的预设字符串1来表示。例如,预设字符串1可以为4个1,该预设字符串1可以处于SSID末尾。那么如果家居设备520发出的SSID的最后四位都为1,则可以表示家居设备520当前处于未配置状态。
需要说明的是,家居设备520可以切换至soft AP模式来生成该信标帧,也可以不切换至soft AP模式,而是直接调用信标帧功能来生成该信标帧,当然,也可以通过其他方式来生成该信标帧,本申请实施例对生成该信标帧的方式不做具体限定。
还需要说明的是,本申请实施例中其它需要通过广播发送的数据,也可以携带在基于Wi-Fi、蓝牙或Zigbee的信标帧中。
可选地,若家居设备520通过第一天线发送配置指示信息2和鉴权信息2,则配置指示信息2和鉴权信息2可以携带在同一个报文中。
另外,在一些实施例中,家居设备520也可以被配置为不发送鉴权信息2。
S603,当家居设备510接收到配置指示信息2和鉴权信息2时,基于鉴权信息2建立与家居设备520之间的通信连接2。
其中,家居设备510可以通过第二天线接收配置指示信息2和鉴权信息2。当家居设备510接收到配置指示信息2时,可以确定检测到处于未配置状态的家居设备520,因此家居设备510可以向家居设备520发送通信连接请求1,从而基于该通信连接请求1与家居设备520建立通信连接2,该通信连接请求1中可以携带鉴权信息2。
由于鉴权信息2是由家居设备520通过发射功率较低的第一天线发送的,因此当家居设备510接收到鉴权信息2时,可以确定当前与家居设备520之间的距离小于或等于第一距离阈值,进而可以与家居设备520建立加密的通信连接。另外,由于家居设备510是在接收到配置指示信息2和鉴权信息2时,才与家居设备520建立通信连接,可以减少家居设备510的系统资源浪费,如网络资源和运算资源等。
可选地,家居设备510可以基于Wi-Fi协议、蓝牙协议或Zigbee协议,与家居设备520建立通信连接2。例如,家居设备510可以基于NAN建立通信连接2。
S604,家居设备510基于通信连接2,向家居设备520发送设备配置信息。
其中,家居设备510在基于通信连接2与家居设备520进行通信时,若通信连接2是加密的,则家居设备510可以基于第二天线或第一天线向家居设备520发送通信数据(包括设备配置信息),基于第二天线接收家居设备520发送的通信数据;若通信连接2是不加密的,则家居设备510可以基于第一天线向家居设备520发送通信数据,基于第二天线接收家居设备520发送的通信数据。
需要说明的是,由于通信连接2是基于通过第一天线发送的鉴权信息2建立的,所以家居设备510可以基于发射功率较高的第二天线,来快速向家居设备520发送设备配置信息。
S605,家居设备520基于该设备配置信息对家居设备520进行配置。
需要说明的是,家居设备520基于设备配置信息对家居设备520进行配置的方式,可以与S401中家居设备510基于该设备配置信息对家居设备510进行配置的方式相同,此处不再一一赘述。 例如,家居设备520可以根据网络配置信息连接至网络家居设备550、根据账号注册信息在服务器560进行注册等。
需要说明的是,家居设备520在接收到设备配置信息时,可以执行与前述中S602-S604中家居设备510相似的操作,从而继续为其他未配置的设备提供设备配置系信息。例如,还存在未配置的家居设备530,家居设备520执行S602相似的操作,通过第二天线或第一天线广播配置指示信息3,并通过第一天线广播鉴权信息3,家居设备520执行与S603和S604相似的操作,在接收到配置指示信息3和鉴权信息3时,基于鉴权信息3建立与家居设备530之间的通信连接3,并基于通信连接3向家居设备530发送设备配置信息,家居设备530执行与S605相似的操作,基于该设备配置信息完成配置。
请参照图7-9,为本申请实施例所提供的一种设备的状态示意图。参照图7,家居设备510已经获取到了设备配置信息,家居设备520、家居设备521和家居设备530处于未配置状态。家居设备520通过第二天线或第一天线广播配置指示信息2,并通过第一天线广播鉴权信息2;家居设备530通过第二天线或第一天线广播配置指示信息3,并通过第一天线广播鉴权信息3;家居设备521通过第二天线或第一天线广播配置指示信息4,并通过第一天线广播鉴权信息4。请参照图8,由于家居设备510与家居设备520之间的距离以及家居设备510与家居设备521之间的距离均小于或等于第一距离阈值,而家居设备510与家居设备530之间的距离大于第一距离阈值,因此,家居设备510可以接收到家居设备520发送的配置指示信息2和鉴权信息2以及家居设备521发送的配置指示信息4和鉴权信息4,而接收不到家居设备530发送的鉴权信息3。家居设备510基于鉴权信息2与家居设备520建立加密的通信连接2,并通过通信连接2向家居设备520发送设备配置信息,家居设备520获取到了该设备配置信息,因此不再广播配置指示信息2和鉴权信息2。相似的,家居设备530也可以获取到该设备配置信息,并不再发送配置指示信息4和鉴权信息4。请参照图9,由于家居设备520与家居设备530之间的距离小于或等于第一距离阈值,因此家居设备520可以接收到家居设备530发送的配置指示信息3和鉴权信息3,家居设备520基于鉴权信息3建立与家居设备530之间的通信连接3,并通过通信连接3向家居设备530发送该设备配置信息,家居设备530获取到了该设备配置信息,因此不再广播配置指示信息3和鉴权信息3。
需要说明的是,配置指示信息3用于指示家居设备530处于未配置状态,配置指示信息4用于指示家居设备521处于未配置状态。配置指示信息3和配置指示信息4的形式可以与配置指示信息2的形式相同,鉴权信息3和鉴权信息4的形式可以与鉴权信息2的形式相同。
在本申请实施例中,家居设备510可以接收来自电子设备540的设备配置信息,如果还存在至少一个设备,该设备设置有第一天线,家居设备510设置有第二天线,第二天线的发射功率>功率阈值1>第一天线的发射功率,第一天线的最长发射距离为第一距离阈值,如家居设备520和家居设备521,家居设备510可以向该家居设备510第一距离阈值内的该至少一设备(即该设备与家居设备510设备之间距离小于或等于第一距离阈值)发送该设备配置信息。相似的,家居设备520和家居设备521也可以按照上述方式,向更多设备发送该设备配置信息,从而能够快速地将设备配置信息发送给其他设备,而不需要用户逐一对各设备进行配置,极大地提高了配置效率。其次,由于家居设备510是在接收到配置指示信息2和鉴权信息2时,才与家居设备520建立通信连接,可以减少家居设备510的系统资源浪费。
请参照图10,为本申请实施例所提供的一种设备配置方法的流程图。需要说明的是,该方法并不以图10以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤 的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:
S1001,家居设备510接收来自电子设备540的设备配置信息。
其中,S1001可以与S601相同,此处不再一一赘述。
S1002,家居设备510通过第二天线或第一天线广播配置指示信息5,通过第一天线广播鉴权信息5。
其中,配置指示信息5可以用于触发家居设备520接收设备配置信息。
为了便于周围其他未配置的家居设备520感知到家居设备510已经获取到设备配置信息,从而触发家居设备520接收该设备配置信息,设备1可以广播配置指示信息5,并通发射功率较小的第一天线广播鉴权信息5,从而保证鉴权信息5的安全性。
其中,当家居设备510通过发射功率较大的第二天线广播配置指示信息5时,可以使得更大距离范围内的家居设备520都可以感知到家居设备510,提高了家居设备520感知到家居设备510的可靠性。
可选地,家居设备510可以通过Wi-Fi协议、蓝牙协议或Zigbee协议,广播配置指示信息5和鉴权信息5,也即是,配置指示信息5和鉴权信息5可以携带在基于Wi-Fi协议或蓝牙协议的数据帧、管理帧或控制帧中。
其中,配置指示信息5的形式可以与配置指示信息2的形式相同。配置指示信息5,可以通过信标帧的数据位中的预设字符串2来表示。例如,预设字符串2可以为4个0,该预设字符串2可以处于SSID末尾。那么如果家居设备510发出的SSID的最后四位都为0,则可以表示家居设备510已经获取到设备配置信息,从而触发家居设备520接收该设备配置信息。
另外,在一些实施例中,家居设备510也可以被配置为不广播鉴权信息5。
需要说明的是,S802可以与S402相似,此处在一一赘述。
S1003,当家居设备520接收到配置指示信息5和鉴权信息5时,基于鉴权信息5建立与家居设备510之间的通信连接4。
其中,家居设备520可以通过第二天线接收配置指示信息5和鉴权信息5。当家居设备520接收到配置指示信息5和鉴权信息5时,可以确定检测到已经获取到设备配置信息的家居设备510,因此可以向家居设备510发送通信连接建立请求2,从而与家居设备510建立通信连接4,该通信连接建立请求2中可以携带鉴权信息5。
可选地,家居设备520可以基于Wi-Fi协议、蓝牙协议或Zigbee协议,与家居设备510建立通信连接2。
由于鉴权信息5是由家居设备510通过发射功率较低的第一天线发送的,因此当家居设备520接收到鉴权信息时,可以确定当前与家居设备510之间的距离小于或等于第一距离阈值,进而可以与家居设备5100建立通信连接4。另外,由于家居设备510是在获取到设备配置信息时发送配置指示信息5和鉴权信息5,而家居设备520时在接收到配置指示信息5和鉴权信息5时,才与家居设备510连接通信连接4,那么在对家居设备510和家居设备520等多个设备进行配置时,可以由用户先对其中一个(比如家居设备510)进行配置,当家居设备510获取到设备配置信息时,再由近及远,依次有序触发其他家居设备520等其他设备获取设备配置信息,减少在配置初期,处于距离家居设备510第一距离阈值之外的设备的系统资源浪费。
S1004,家居设备510基于通信连接4,向家居设备520发送设备配置信息。
可选地,为了节省家居设备510的系统资源,家居设备510可以每间隔预设时长1来执行S1002。若家居设备510执行S1002和S1003与其他设备建立了通信连接,则可以执行S1004。如果在开始执行S1002之后的预设时长2之内,都没有其他设备建立通信连接,则可以停止执行S1002;或者,家居设备510可以在历史中最近一次执行S1004时开始计时,如果在预设时长3之内,都没有与其他设备建立通信连接,则可以停止执行S1002。
S1005,家居设备520基于该设备配置信息对该家居设备520进行配置。
需要说明的是,家居设备520基于设备配置信息对家居设备520进行配置的方式,可以与S605中家居设备510基于该设备配置信息对家居设备510进行配置的方式相同,此处不再一一赘述。
还需要说明的是,S1004-S1005,可以与前述S604-S605相同,此处不再一一赘述。
请参照图11-13,为本申请实施例所提供的一种设备的状态示意图。请参照图11,家居设备510已经获取到了设备配置信息,因此可以广播配置指示信息5和鉴权信息5。由于家居设备510与家居设备520之间的距离以及家居设备510与家居设备521之间的距离均小于或等于第一距离阈值,而家居设备510与家居设备530之间的距离大于第一距离阈值,因此家居设备520和家居设备521可以接收到配置指示信息5和鉴权信息5,家居设备530无法接收到鉴权信息5。家居设备520和家居设备521分别基于鉴权信息5与家居设备510建立通信连接,从而获取到该设备配置信息。请参照图12,家居设备520获取到该设备配置信息时,可以广播配置指示信息6和鉴权信息6,家居设备521在获取到该设备配置信息时,可以广播配置指示信息7和鉴权信息7。由于家居设备520与家居设备530之间的距离小于或等于第一距离阈值,因此家居设备530可以接收到配置指示信息6和鉴权信息6,从而可以与家居设备520建立通信连接并接收该设备配置信息。请参照图13,家居设备530也获取到了设备配置信息,因此也可以广播配置指示信息8和鉴权信息8。
需要说明的是,配置指示信息6可以用于触发家居设备530接收设备配置信息,配置指示信息7可以用于触发处于家居设备521第一距离阈值范围内的其他设备接收设备配置信息,配置指示信息8可以用于触发处于家居设备530第一距离阈值范围内的其他设备接收设备配置信息。配置指示信息6、配置信息7和配置信息8的形式,可以与配置信息5的形式相同,鉴权信息6、鉴权信息7和鉴权信息8的形式,可以与鉴权信息5的形式相同。
在本申请实施例中,家居设备510可以接收来自电子设备540的设备配置信息。如果还存在至少一个设备,该设备设置有第二天线,家居设备510设置有第一天线,第二天线的发射功率>功率阈值1>第一天线的发射功率,第一天线的最长发射距离为第一距离阈值,如家居设备520和家居设备521,家居设备510可以向该家居设备510第一距离阈值内的该至少一设备(即该设备与家居设备510设备之间距离小于或等于第一距离阈值)发送该设备配置信息。相似的,家居设备520和家居设备521也可以按照上述方式,向更多设备发送该设备配置信息,从而能够快速地将设备配置信息发送给其他设备,而不需要用户逐一对各设备进行配置,极大地提高了配置效率。其次,由于家居设备510是在获取到设备配置信息时配置指示信息5和鉴权信息5,而家居设备520是在接收到配置指示信息5和鉴权信息5时,才与家居设备510连接通信连接,那么在对家居设备510和家居设备520等多个设备进行配置时,可以由用户先对其中一个(比如家居设备510)进行配置,当家居设备510获取到设备配置信息时,再由近及远,依次有序触发其他家居设备520等其他设备获取设备配置信息,减少在配置初期,处于距离家居设备510第一距离阈值之外的设备的系统资源浪费。
请参照图14,为本申请实施例所提供的一种设备配置方法的流程图。需要说明的是,该方法并不以图14以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:
S1401,家居设备510接收来自电子设备540的设备配置信息。
其中,S1401可以与S601相同,此处不再一一赘述。
S1402,家居设备520通过第二天线或第一天线广播配置指示信息2。
需要说明的是,家居设备520通过第二天线或第一天线广播配置指示信息2的方式,可以与S602中家居设备520通过第二天线或第一天线广播配置指示信息2的方式相同,此处不再一一赘述。
另外,在一些实施例中,家居设备520也可以被配置为广播配置指示信息2,也即是,S1402是可选地步骤。
可选地,家居设备520可以通过Wi-Fi协议、蓝牙协议或Zigbee协议,广播配置指示信息2和鉴权信息2。
S1403,当家居设备510接收到配置指示信息2时,通过第一天线广播设备配置信息。
当家居设备510在检测到周围存在未配置的家居设备520时,可能周围还有更多未配置的设备,因此可以通过第一天线广播设备配置信息,以便于处于家居设备510第一距离阈值之内的设备都可以获取到该设备配置信息,提高配置效率。
需要说明的是,家居设备510可以通过一个或多个报文广播设备配置信息。
可选地,家居设备510可以通过Wi-Fi协议、蓝牙协议或Zigbee协议,广播设备配置信息。
另外,在一些实施例中,由于第一距离阈值较短,可以被认为是安全的通信距离,因此设备1也可以在从电子设备540获取到设备配置信息时通过第一天线广播设备配置信息,或者,在根据设备配置信息成功进行配置时通过第一天线广播设备配置信息,而不再检测是否还存在未配置的设备,从而简化设备配置过程,进一步提高配置效率。
S1404,当家居设备520接收到该设备配置信息时,基于该设备配置信息对该家居设备520进行配置。
需要说明的是,家居设备520基于设备配置信息对家居设备520进行配置的方式,可以与S605中家居设备510基于该设备配置信息对家居设备510进行配置的方式相同,此处不再一一赘述。
在本申请实施例中,家居设备510可以接收来自电子设备540的设备配置信息,如果还存在至少一个设备,家居设备510设置有第一天线,该设备可以设置有第二天线,第二天线的发射功率>功率阈值1>第一天线的发射功率,第一天线的最长发射距离为第一距离阈值,如家居设备520和家居设备521,家居设备510可以该家居设备510第一距离阈值内的该至少一设备(即该设备与家居设备510设备之间距离小于或等于第一距离阈值)发送该设备配置信息。相似的,家居设备520和家居设备521也可以按照上述方式,向更多设备发送该设备配置信息,从而能够快速地将设备配置信息发送给其他设备,而不需要用户逐一对各设备进行配置,极大地提高了配置效率。其次,由于家居设备510可以通过第一天线广播设备配置信息,以便于处于家居设备510第一距离阈值之内的设备都可以获取到该设备配置信息,提高配置效率。
需要说明的是,上述图6、图10和图14所提供的设备配置方法可以进行结合。
在一些实施例中,家居设备510在S601、S1001或S1401之后,可以执行下述至少一项:执 行S1002来主动通知未配置的家居设备520和家居设备521来接收设备配置信息;执行S1404来主动向可能存在的未配置的设备发送设备配置信息;执行S603来接收未配置的家居设备520的配置指示信息2和鉴权信息2,从建立与未配置的家居设备520之间的通信连接,并向家居设备520发送设备配置信息。未配置的家居设备520可以执行下述至少一项:执行S602或S1402来主动向可能存在的已经获取到设备配置信息的家居设备510,说明当前处于未配置的状态;执行S1003来接收家居设备510发送的配置指示信息5和鉴权信息5,并建立与家居设备510之间的通信连接。
在一些实施例中,在S602中,家居设备520可以不广播鉴权信息2,而是与S1003类似的,获取家居设备510的鉴权信息5,并基于鉴权信息5建立与家居设备510之间的通信连接4。
在一些实施例中,在S1002中,家居设备510可以不广播鉴权信息5,而是与S603类似的,获取家居设备520发送的鉴权信息2,并基于鉴权信息2建立与家居设备520之间的通信连接2。
在一些实施例中,在S1002中,家居设备510可以通过第二天线或第一天线广播发送配置指示信息1,即通过Wi-Fi感知发布设备配置服务,那么家居设备520订阅该设备配置服务,并在接收到该配置指示信息时,通过第一天线广播鉴权信息2,家居设备510获取家居设备520发送的鉴权信息2,并基于鉴权信息2建立与家居设备520之间的通信连接2。
综上所述,本申请实施例所提供的设备配置方法可以包括4个阶段。
阶段1,家居设备510接收来自电子设备540的设备配置信息。
阶段2,家居设备510与家居设备520的互相发现,包括下述至少一项:家居设备510广播配置指示信息1,家居设备520接收到配置指示信息1,从而发现家居设备510;家居设备510配置指示信息5,家居设备520接收到配置指示信息5,从而发现家居设备510;家居设备520广播配置指示信息2,家居设备510接收到配置指示信息2,从而发现家居设备520。家居设备510与家居设备520通过执行上述至少一项的操作来互相发现,可以提高了第一设备感知到第三设备的可靠性和效率,便于后续向这些第三设备提供网路配置信息等设备配置信息。
阶段3,家居设备510与家居设备520建立通信连接,包括下述任一项:家居设备510基于家居设备520鉴权信息2建立通信连接2;家居设备520基于家居设备510的鉴权信息5建立通信连接4。也即是,本申请实施例对发射鉴权信息和建立通信连接的并不进行限定,只要该鉴权信息是通过第一天线发送的,都可以确保家居设备510能够安全地向第一距离阈值内的家居设备520送设备配置信息。
阶段4,家居设备510向家居设备520发送设备配置信息。其中,家居设备510可以通过通信连接2或通信连接4向家居设备520发送设备配置信息,且如果在阶段2中是家居设备510发现家居设备520,则可以省略阶段3,家居设备510可以在发现家居设备520时广播该设备配置信息。又或者,阶段2和阶段3都可以省略,家居设备510在阶段1完成时广播该设备配置信息,从而省略家居设备510感知第一距离阈值范围内存在家居设备520一级家居设备510与家居设备520建立通信连接等至少一个步骤,进一步提高配置效率。
其中,当家居设备510可以通过通信连接2或通信连接4向家居设备520发送设备配置信息时,可以通过第一天线或第二天线发送该设备配置信息。且当通过功率较大的第二天线发送该设备配置信息时,可以提高发送设备配置信息的效率,也能够确保当家居设备510或家居设备520获取到对端的鉴权信息时,即使家居设备510与家居设备520之间的距离大于第一距离阈值,但只要该距离小于或等于第二距离阈值,家居设备510就可以向家居设备520发送设备配置信息, 提高发送设备配置信息的可靠性。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
基于同一发明构思,本申请实施例还提供了一种设备。该设备可以包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述方法实施例所述的方法。
本实施例提供的设备可以执行上述图6、图10和图14方法实施例家居设备510和/或家居设备520所执行的操作,其实现原理与技术效果类似,此处不再赘述。
基于同一发明构思,本申请实施例还提供了一种芯片系统。该所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面或第一方面的任一实施方式所述的方法。
其中,该芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。
本申请实施例还提供一种计算机程序产品,当计算机程序产品在设备上运行时,使得设备执行时实现上述方法实施例所述的方法。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到拍照装置/设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅 仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (15)

  1. 一种配置设备的方法,其特征在于,所述方法包括:
    第一设备接收来自第二设备的网络配置信息;
    所述第一设备向至少一个第三设备发送所述网络配置信息,所述网络配置信息用于所述第一设备和所述至少一个第三设备连接至网络设备,所述第一设备与任一第三设备中的一个设置有第一天线,另一个设置有第二天线,所述第一天线的发射功率小于第一功率阈值,所述第一天线的最长发射距离为所述第一距离阈值,所述第二天线的发射功率大于所述第一功率阈值。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一设备向至少一个第三设备发送所述网络配置信息之前,所述方法还包括:
    所述第一设备接收所述任一第三设备广播的第一配置指示信息,所述第一配置指示信息用于指示所述任一第三设备处于未配置状态;
    所述第一设备根据所述第一配置指示信息确定所述任一第三设备处于未配置状态。
  3. 根据权利要求1所述的方法,其特征在于,所述第一设备与所述第二设备中的一个设置有所述第一天线,另一个设置有所述第二天线,在所述第一设备接收来自第二设备的网络配置信息之前,所述方法还包括:
    所述第一设备向所述第二设备广播第二配置指示信息,所述第二配置指示信息用于指示所述第一设备处于未配置状态;
    在所述第一设备接收来自第二设备的网络配置信息之后,所述方法还包括:
    所述第一设备基于所述网络配置信息连接至所述网络设备。
  4. 根据权利要求1或2所述的方法,其特征在于,在所述第一设备向至少一个第三设备发送所述网络配置信息之前,所述方法还包括:
    所述第一设备向所述至少一个第三设备广播第三配置指示信息,所述第三配置指示信息用于触发所述至少一个第三设备接收所述网络配置信息。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述任一第三设备设置有所述第一天线,在所述第一设备向至少一个第三设备发送所述网络配置信息之前,所述方法还包括:
    所述第一设备接收所述任一第三设备通过所述第一天线广播的第一鉴权信息;
    所述第一设备基于所述第一鉴权信息,建立与所述任一第三设备之间的第一通信连接;
    其中,所述第一设备向至少一个第三设备发送所述网络配置信息,包括:
    所述第一设备通过所述第一通信连接向所述至少一个第三设备发送所述网络配置信息。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述第一设备设置有所述第一天线,在所述第一设备接收来自第二设备的网络配置信息之前,所述方法还包括:
    所述第一设备通过所述第一天线,向所述第二设备广播第二鉴权信息,所述第二鉴权信息用于所述第二设备建立与所述第一设备之间的第二通信连接;
    所述第一设备接收来自第二设备的网络配置信息,包括:
    所述第一设备基于所述第二通信连接,接收所述第二设备发送的所述网络配置信息。
  7. 根据权利要求1-5中任一项所述的方法,其特征在于,所述第一设备设置有所述第一天线,所述第一设备向至少一个第三设备发送所述网络配置信息,包括:
    所述第一设备通过所述第一天线,向所述至少一个第三设备广播所述网络配置信息。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述网络配置信息包括所述网络设备 的设备标识和所述网络设备的密码。
  9. 根据权利要求2所述的方法,其特征在于,所述第一设备接收所述任一第三设备广播的第一配置指示信息,包括:
    所述第一设备通过无线保真Wi-Fi协议或蓝牙协议,接收所述任一第三设备广播的所述第一配置指示信息。
  10. 根据权利要求5所述的方法,其特征在于,所述第一设备接收所述任一第三设备通过所述第一天线广播的第一鉴权信息,包括:
    所述第一设备通过Wi-Fi协议或蓝牙协议,接收所述任一第三设备通过所述第一天线广播的所述第一鉴权信息;
    所述第一设备基于所述第一鉴权信息,建立与所述任一第三设备之间的第一通信连接,包括:
    所述第一设备基于所述Wi-Fi协议或所述蓝牙协议,以及所述第一鉴权信息,建立与所述任一第三设备之间的所述第一通信连接。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述网络设备包括路由设备、网关设备或主控设备。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述第一设备和所述至少一个第三设备中的至少一个为物联网IoT设备。
  13. 根据权利要求12所述的方法,其特征在于,所述第二设备为所述IoT设备。
  14. 一种设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时执行如权利要求1-13任一项所述的方法。
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-13任一项所述的方法。
PCT/CN2021/111731 2020-09-18 2021-08-10 配置设备的方法及设备 WO2022057521A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21868349.8A EP4203409A4 (en) 2020-09-18 2021-08-10 DEVICE CONFIGURATION METHOD AND DEVICES
US18/245,776 US20230337147A1 (en) 2020-09-18 2021-08-10 Device Configuration Method and Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010988834.3 2020-09-18
CN202010988834.3A CN114285737B (zh) 2020-09-18 2020-09-18 配置设备的方法及设备

Publications (1)

Publication Number Publication Date
WO2022057521A1 true WO2022057521A1 (zh) 2022-03-24

Family

ID=80777556

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/111731 WO2022057521A1 (zh) 2020-09-18 2021-08-10 配置设备的方法及设备

Country Status (4)

Country Link
US (1) US20230337147A1 (zh)
EP (1) EP4203409A4 (zh)
CN (1) CN114285737B (zh)
WO (1) WO2022057521A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101464A (zh) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 无线网络配置方法及无线网络配置系统
CN106375167A (zh) * 2016-10-13 2017-02-01 杭州鸿雁智能科技有限公司 一种基于nfc的智能家居的配网设备及配网方法
CN108391238A (zh) * 2018-02-01 2018-08-10 乐鑫信息科技(上海)有限公司 无线mesh网络的配网方法
CN108632056A (zh) * 2017-03-17 2018-10-09 阿里云计算有限公司 一种智能设备网络配置方法与系统
CN108924135A (zh) * 2018-06-29 2018-11-30 百度在线网络技术(北京)有限公司 网络接入方法和装置
WO2019153143A1 (zh) * 2018-02-07 2019-08-15 华为技术有限公司 一种网络接入方法、设备及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131846A (zh) * 2016-08-30 2016-11-16 广东美的制冷设备有限公司 智能设备的配网方法、系统、智能设备及手持终端
CN110320811B (zh) * 2019-06-17 2021-12-14 华为技术有限公司 一种智能家居设备的接入方法及一种电子设备
CN111010693B (zh) * 2019-11-25 2023-10-03 华为技术有限公司 一种提供无线保真网络接入服务的方法及电子设备
CN110896364B (zh) * 2019-11-28 2022-09-16 北京小米移动软件有限公司 配网方法及装置、电子设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101464A (zh) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 无线网络配置方法及无线网络配置系统
CN106375167A (zh) * 2016-10-13 2017-02-01 杭州鸿雁智能科技有限公司 一种基于nfc的智能家居的配网设备及配网方法
CN108632056A (zh) * 2017-03-17 2018-10-09 阿里云计算有限公司 一种智能设备网络配置方法与系统
CN108391238A (zh) * 2018-02-01 2018-08-10 乐鑫信息科技(上海)有限公司 无线mesh网络的配网方法
WO2019153143A1 (zh) * 2018-02-07 2019-08-15 华为技术有限公司 一种网络接入方法、设备及系统
CN108924135A (zh) * 2018-06-29 2018-11-30 百度在线网络技术(北京)有限公司 网络接入方法和装置

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP4203409A4 (en) 2024-01-03
CN114285737A (zh) 2022-04-05
US20230337147A1 (en) 2023-10-19
CN114285737B (zh) 2023-09-22
EP4203409A1 (en) 2023-06-28

Similar Documents

Publication Publication Date Title
CN110320811B (zh) 一种智能家居设备的接入方法及一种电子设备
WO2020224486A1 (zh) 一种通话方法、设备及系统
WO2021036835A1 (zh) 一种蓝牙搜索方法、系统及相关装置
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
US20220039179A1 (en) Bluetooth Connection Method and Device
JP2022529033A (ja) ブルートゥース接続方法、デバイス、およびシステム
WO2021052178A1 (zh) 一种Wi-Fi连接方法及设备
WO2020133183A1 (zh) 音频数据的同步方法及设备
CN111601199A (zh) 无线耳机盒及系统
CN112469013B (zh) 一种蓝牙连接方法及相关装置
CN112822663B (zh) 蓝牙连接方法及相关装置
CN111405681B (zh) Wi-Fi Aware的建链方法、系统、电子设备和存储介质
WO2021043219A1 (zh) 一种蓝牙回连方法及相关装置
WO2021017909A1 (zh) 一种通过nfc标签实现功能的方法、电子设备及系统
CN114499587B (zh) 音频同步的通信方法、系统、无线耳机、终端及存储介质
CN112469011A (zh) 一种蓝牙配对方法及相关装置
CN111010693A (zh) 一种提供无线保真WiFi网络接入服务的方法及电子设备
US20230370920A1 (en) Communication method, terminal device, and storage medium
WO2021027623A1 (zh) 一种设备能力发现方法及p2p设备
WO2022057521A1 (zh) 配置设备的方法及设备
CN114339698A (zh) 设备间触碰建立无线连接的方法、电子设备及芯片
WO2023051204A1 (zh) 跨设备连接方法、电子设备及存储介质
CN116981108B (zh) 无线投屏连接方法、移动终端及计算机可读存储介质
WO2022095581A1 (zh) 数据传输方法及终端设备
EP4362507A1 (en) Communication system and communication method

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2021868349

Country of ref document: EP

Effective date: 20230323

NENP Non-entry into the national phase

Ref country code: DE