WO2024027713A1 - Scenario configuration method, electronic device and system - Google Patents

Scenario configuration method, electronic device and system Download PDF

Info

Publication number
WO2024027713A1
WO2024027713A1 PCT/CN2023/110568 CN2023110568W WO2024027713A1 WO 2024027713 A1 WO2024027713 A1 WO 2024027713A1 CN 2023110568 W CN2023110568 W CN 2023110568W WO 2024027713 A1 WO2024027713 A1 WO 2024027713A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
scene configuration
devices
configuration information
configuration file
Prior art date
Application number
PCT/CN2023/110568
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2024027713A1 publication Critical patent/WO2024027713A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Definitions

  • the embodiments of the present application relate to the field of terminal technology, and in particular, to a scene configuration method, electronic device and system.
  • various devices in the home are connected together through the Internet of Things technology to form a smart home system, providing users with multiple functions such as home appliance control and lighting control.
  • any smart home device required in the scene to be configured is not online, the scene creation will fail. Moreover, even if the smart home devices to be configured are all online, the status parameters of each smart home device in the scene need to be configured one by one. As the number of scenes to be configured and the number of smart home devices in the scene to be configured increases, the scene configuration process consumes time increases.
  • embodiments of the present application provide a scene configuration method, electronic device and system.
  • the first device obtains the scene configuration file, it sends the scene configuration information to the online third device according to the online status of the third device to be configured, so as to realize automatic scene configuration. This effectively reduces the time-consuming scene configuration during the pre-installation process.
  • the first aspect is to provide a scene configuration method.
  • the method includes: the first device receives a scene configuration file sent by the second device.
  • the first device determines n third devices to be configured according to the scene configuration file, where n is an integer not less than 1.
  • the first device sends a first scene creation instruction to the online first target device among the n third devices.
  • the first scene creation instruction carries the first scene configuration information.
  • the first scene creation instruction is used to instruct the first target device according to The first scene configuration information creates the scene; and/or, after the first device determines that the second target device that is not online among the n third devices is online, it sends a second scene creation instruction to the second target device. Carrying the second scene configuration information, the second scene creation instruction is used to instruct the second target device to create a scene according to the second scene configuration information.
  • the scene configuration process in the pre-installation process can be completed, thereby effectively reducing the scene configuration time in the pre-installation process and improving scene configuration efficiency.
  • the first device can automatically complete the scene configuration according to the online status of the third device in the scene to be configured, ensuring the success rate of scene configuration.
  • the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
  • the method further includes: the first device sends a broadcast message to n third devices, the broadcast message carries the scene identifier, and the broadcast message is used to indicate the n third devices.
  • the device executes the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier.
  • the third device can trigger execution of the corresponding scene according to the received broadcast message.
  • the third device can determine the corresponding scene configuration information based on the scene identifier carried therein, so as to facilitate subsequent execution of the scene corresponding to the corresponding scene identifier.
  • the method before the first device determines n third devices to be configured according to the scene configuration file, the method further includes: the first device saves the scene configuration file.
  • the first device can also complete the scene configuration of the third device that comes online later based on the saved scene configuration file after the third device comes online, thereby effectively improving the efficiency of scene configuration. Success rate.
  • the method further includes: the first device sets n third devices The state is the first state, and the first state is used to indicate that the scene has not been saved.
  • the method further includes: third device settings The state of the first target device is the second state, and the second state is used to represent the saved scene; and/or the third device sets the state of the second target device to the second state.
  • the first device sets the status of the third device so that it can subsequently determine which third devices have completed scene configuration and which third devices still need to perform scene configuration based on the status of the third device.
  • the second aspect is to provide a scene configuration method.
  • the method includes: in response to the first operation, the second device launches the configuration application.
  • the second device In response to a second operation by the user in the configuration application, the second device generates a scene configuration file.
  • the second device sends a scene configuration file to the first device.
  • the scene configuration file is used to instruct the first device to configure n scenes of the third device, where n is an integer not less than 1.
  • the second device can generate a corresponding scene configuration file according to the user's operation in the configuration application. Then, during the pre-installation process, after the second device sends the scene configuration file to the first device, it can be determined that the scene configuration during the pre-installation process is completed, thereby effectively reducing the scene configuration time and improving the scene configuration efficiency.
  • the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, and scene configuration information.
  • a third aspect provides an electronic device.
  • the electronic device includes: a processor and a memory.
  • the memory is coupled to the processor.
  • the memory is used to store computer program codes.
  • the computer program codes include computer instructions.
  • the processor reads the computer instructions from the memory, the electronic device executes: first device Receive the scene configuration file sent by the second device.
  • the first device determines n third devices to be configured according to the scene configuration file, where n is an integer not less than 1.
  • the first device sends a first scene creation instruction to the online first target device among the n third devices.
  • the first scene creation instruction carries the first scene configuration information.
  • the first scene creation instruction is used to instruct the first target device according to The first scene configuration information creates the scene; and/or, after the first device determines that the second target device that is not online among the n third devices is online, it sends a second scene creation instruction to the second target device. Carrying the second scene configuration information, the second scene creation instruction is used to instruct the second target device to create a scene according to the second scene configuration information.
  • the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the first device sends a broadcast message to n third devices , the broadcast message carries the scene identifier, and the broadcast message is used to instruct n third devices to execute the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the first device saves the scene configuration file.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the first device sets the status of n third devices as The first state is used to indicate that the scene has not been saved.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the third device sets the state of the first target device to the third Two states, the second state is used to represent the saved scene; and/or, the third device sets the state of the second target device to the second state.
  • a fourth aspect provides an electronic device.
  • the electronic device includes: a processor and a memory.
  • the memory is coupled to the processor.
  • the memory is used to store computer program code.
  • the computer program code includes computer instructions.
  • the processor reads the program code from the memory
  • the computer instruction causes the electronic device to execute: in response to the first operation, the second device starts the configuration application.
  • the second device In response to a second operation by the user in the configuration application, the second device generates a scene configuration file.
  • the second device sends a scene configuration file to the first device.
  • the scene configuration file is used to instruct the first device to configure n scenes of the third device, where n is an integer not less than 1.
  • the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, and scene configuration information.
  • embodiments of the present application provide a scene configuration system, including: a second device configured to start a configuration application in response to a first operation, and to generate a scene configuration file in response to a user's second operation in the configuration application. .
  • the second device is also used to send the scene configuration file to the first device.
  • the first device is configured to receive the scene configuration file sent by the second device.
  • the first device is also used to determine n third devices to be configured according to the scene configuration file, where n is an integer not less than 1.
  • the first device is also configured to send a first scene creation instruction to an online first target device among the n third devices.
  • the first scene creation instruction carries the first scene configuration information, and/or determines the n third devices.
  • the second target device After the second target device that is not online among the devices comes online, it sends a second scene creation instruction to the second target device, and the second scene creation instruction carries the second scene configuration information.
  • the third device is used to create a scene according to the first scene configuration information and/or the second scene configuration information.
  • the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
  • the first device is further configured to send a broadcast message to n third devices, where the broadcast message carries a scene identifier.
  • the n third devices are also used to receive the broadcast message and execute the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier carried in the broadcast message.
  • embodiments of the present application provide an electronic device that has the function of implementing the scene configuration method as described in the above first aspect and any possible implementation manner; or, the electronic device has the function of implementing The function of the scene configuration method described in the above second aspect and any possible implementation manner thereof.
  • This function can be implemented by hardware, or can be implemented by hardware and corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • a computer-readable storage medium stores a computer program (which may also be referred to as instructions or codes).
  • the computer program When the computer program is executed by an electronic device, it causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect; or , causing the electronic device to perform the second aspect or the method of any one of the implementation modes of the second aspect.
  • embodiments of the present application provide a computer program product.
  • the computer program product When the computer program product is run on an electronic device, it causes the electronic device to execute the method of the first aspect or any one of the embodiments in the first aspect; or, causes the electronic device to execute The device performs the second aspect or the method of any one of the implementation modes of the second aspect.
  • inventions of the present application provide a circuit system.
  • the circuit system includes a processing circuit.
  • the processing circuit is configured to execute the method of the first aspect or any one of the implementation modes of the first aspect; or, the processing circuit is configured to execute The method of the second aspect or any one of the second aspects.
  • embodiments of the present application provide a chip system, including at least one processor and at least one interface circuit.
  • the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor.
  • at least one processor When at least one processor When executing instructions, at least one processor performs the first aspect or the method of any implementation manner in the first aspect; or, at least one processor The processor executes the second aspect or the method of any one of the implementation modes of the second aspect.
  • Figure 1 is a schematic flow chart of a scene configuration method in the prior art provided by an embodiment of the present application
  • Figure 2 is a schematic diagram of a communication system applied to a scenario configuration method provided by an embodiment of the present application
  • Figure 3A is a schematic diagram of the hardware structure of a communication device provided by an embodiment of the present application.
  • Figure 3B is a schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application.
  • Figure 3C is a schematic block diagram of the software structure of the second device provided by the embodiment of the present application.
  • Figure 4 is a schematic flowchart 1 of the scene configuration method provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of the interface provided by the embodiment of the present application.
  • Figure 6 is a schematic flowchart 2 of the scene configuration method provided by the embodiment of the present application.
  • Figure 7 is a schematic flowchart three of the scene configuration method provided by the embodiment of the present application.
  • Figure 8 is a schematic flowchart 4 of the scene configuration method provided by the embodiment of the present application.
  • Figure 9 is a schematic structural diagram of the first device provided by the embodiment of the present application.
  • Figure 10 is a schematic structural diagram of the second device provided by the embodiment of the present application.
  • the pre-installation process of the smart home system In some scenarios, during the installation stage before the equipment in the smart home system is delivered to users for use, installation and maintenance engineers need to configure and debug the smart home equipment.
  • This process is the pre-installation process of the smart home system.
  • installation and maintenance engineers log in to the configuration application (such as installation After applying), the configuration and debugging of the smart home devices in the smart home system are completed through the configuration application in the electronic device.
  • the configuration and debugging process of smart home devices includes creating a scene and configuring the status of the smart home devices in the scene.
  • Bluetooth mesh (Mesh) network is widely used in complex smart home scenarios, smart office building automation scenarios and other scenarios due to its advantages such as low power consumption and high security. It realizes multiple scenarios within the coverage of Bluetooth Mesh network. To-many transmission. Among them, if the devices in the Bluetooth Mesh network need to implement preset scene functions, they also need to perform scene configuration. During the scene configuration process, the status configuration of the devices included in the scene being configured needs to be completed in sequence.
  • the mobile phone sends instruction information to create a group to the living room lamp, which is used to instruct the living room lamp to create a scene (that is, step 1.1).
  • the mobile phone sends the setting status indication information to the living room lamp, which is used to configure the status parameters of the living room lamp in the "going home scene", such as the setting information of the status parameters such as turning on and brightness (ie, step 1.2).
  • the mobile phone sends the instruction information of the save group to the living room lamp, which is used to instruct the living room lamp to save the setting status corresponding to the currently created scene (i.e. step 1.3), thereby completing the status parameter configuration of the living room lamp in the "go home scene".
  • the mobile phone responds to the engineer's operation in the configuration application and completes the status parameter configuration of the water dispenser through steps 2.1 to 2.3, and completes the status parameter configuration of the living room speaker through steps 3.1 to 3.3. This completes the creation of the "go home scene".
  • the scene creation process in the Bluetooth Mesh network is complicated. If any device required in the scene to be configured is not online, the scene creation will fail. Moreover, even if all the devices to be configured are online, the status parameters of each device in the scene need to be configured one by one. As the number of scenes to be configured and devices in the scene to be configured increases, the scene configuration process becomes more time-consuming.
  • the number of scenarios to be configured is 20-30.
  • the scene configuration time takes at least 20 minutes to 30 minutes. It takes too long and affects the pre-installation efficiency of smart home scenarios.
  • the embodiment of the present application provides a scene configuration method.
  • the first device obtains the scene configuration file.
  • the scene configuration file includes the online status of the smart home device.
  • the first device delivers the scene configuration information corresponding to the smart home device in the scene configuration file to the online smart home device. , complete the scene configuration.
  • engineers only need to send the scene configuration file to the first device through electronic equipment to achieve automatic scene configuration, thereby effectively reducing the time-consuming scene configuration during the pre-installation process and improving the efficiency of scene configuration. Success rate.
  • Figure 2 is a schematic diagram of a communication system for scenario configuration application provided by an embodiment of the present application.
  • the communication system includes a first device 100 , a second device 200 , a third device 300 , and a fourth device 400 .
  • the first device 100 is, for example, a Bluetooth gateway, used to manage and control devices in the smart home system (such as the third device 300).
  • the first device 100 may be an independent Bluetooth gateway, or a module with a Bluetooth gateway function configured in a control center of a smart home system (such as a smart home control panel, etc.). This application does not limit the specific type of the first device 100.
  • the second device 200 is a device used by installation and maintenance engineers.
  • it can be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, or artificial intelligence (AI).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • AI artificial intelligence
  • equipment and other terminal equipment, the operating system installed on the second device 200 includes but is not limited to or other operating systems. This application does not limit the specific type of the second device 200 or the operating system installed.
  • the third device 300 may be, for example, a smart home device, a mobile phone, a tablet, a laptop, a netbook, a PDA, a wearable device, an AI device and other terminal devices.
  • smart home equipment includes, for example, audio and video equipment (such as large-screen equipment, speakers, etc.), lighting equipment (such as desk lamps, electric lamps, sleep aids, etc.), environmental control equipment (such as air purifiers, sweepers, etc.), and security systems.
  • Equipment such as cameras, smart door locks, etc.
  • kitchen appliances such as water dispensers, ovens, dishwashers, etc.
  • smart sensors etc.
  • the operating systems installed on the third device 300 include but are not limited to or other operating systems.
  • the third device 300 may not have an operating system installed. This application does not limit the specific type of the third device 300, whether or not an operating system is installed, or the type of operating system if the operating system is installed.
  • the fourth device 400 is, for example, a smart home system hub.
  • the third device 300 can access the smart home cloud through the fourth device 400.
  • the fourth device 400 is, for example, a router or other device. This application does not limit the specific type of the fourth device 400 or the operating system installed.
  • a first type of communication connection is established between the first device 100 and the fourth device 400, and between the second device 200 and the fourth device 400.
  • the first type of communication connection may be a wireless communication connection.
  • the wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (bluetooth, BT) (for example, traditional Bluetooth or low energy (bluetooth low energy, BLE) Bluetooth), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (infrared) , IR) etc.
  • a second type of communication connection is established between the first device 100 and the third device 300 .
  • the second communication connection is, for example, a Bluetooth connection.
  • the first device 100 and the third device 300 form a Bluetooth Mesh network.
  • the second device 200 can perform the scene configuration process in the pre-installation process by logging in to the configuration application installed in the second device 200 .
  • the configuration application has the function of configuring and debugging smart home devices and creating scenes during the pre-installation process. For example, configure the application to install application.
  • the first device 100 or the fourth device 400 in the embodiment of this application can be implemented by different devices.
  • the first device 100 or the fourth device 400 in the embodiment of the present application can be implemented by the communication device in FIG. 3A.
  • Figure 3A shows a schematic diagram of the hardware structure of a communication device provided by an embodiment of the present application.
  • the communication device includes at least one processor 301, communication line 302, memory 303 and at least one communication interface 304.
  • the memory 303 may also be included in the processor 301.
  • the processor 301 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 302 may include one or more pathways that carry information between the components described above.
  • the communication interface may be a module, a circuit, a bus, an interface, a transceiver, or other devices that can implement communication functions for communicating with other devices.
  • the transceiver can be an independently configured transmitter, which can be used to send information to other devices.
  • the transceiver can also be an independently configured receiver, which can be used to receive information from other devices. The device receives the information.
  • the transceiver may also be a component that integrates the functions of sending and receiving information. The embodiments of this application do not limit the specific implementation of the transceiver.
  • the memory 303 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions.
  • a dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or can be used to carry or store instructions or data structures.
  • EEPROM electrically erasable programmable read-only memory
  • the memory may exist independently and be connected to the processor through a communication line 302 . Memory can also be integrated with the processor.
  • the memory 303 is used to store computer execution instructions for implementing the solution of the present application, and is controlled by the processor 301 for execution.
  • the processor 301 is used to execute computer execution instructions stored in the memory 303, thereby implementing the data processing method provided by the following embodiments of the present application.
  • the computer execution instructions in the embodiments of the present application may also be called application codes, instructions, computer programs or other names, which are not specifically limited in the embodiments of the present application.
  • the communication device receives the scene configuration file sent by the second device 200 through the fourth device 400 , and saves the scene configuration file through the memory 303 .
  • the first device 100 determines the online status of the third device 300 through the processor 301. If the third device 300 is online, the first device 100 sends a scene creation instruction to the third device 300 according to the scene configuration file to complete the scene configuration of the third device 300 . If the third device 300 is not online, after the third device 300 comes online, the first device 100 sends a scene creation instruction to the third device 300 that comes online later according to the scene configuration file to complete the third device 300 that comes online later. scene configuration.
  • the processor 301 may include one or more CPUs, such as CPU0 and CPU1 in Figure 3A.
  • the communication device may include multiple processors, such as the processor 301 and the processor 307 in Figure 3A.
  • processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the communication device may also include an output device 305 and an input device 306.
  • Output device 305 communicates with processor 301 and can display information in a variety of ways.
  • the output device 305 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. wait.
  • Input device 306 communicates with processor 301 and can receive user input in a variety of ways.
  • the input device 306 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
  • the second device 200 or the third device 300 in the embodiment of this application can be implemented by different devices.
  • the second device 200 or the third device 300 in the embodiment of the present application can be implemented by the electronic device in Figure 3B.
  • FIG. 3B shows a schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application.
  • the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic equipment.
  • the electronic device may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other first electronic devices, such as AR devices.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. While charging the battery 142, the charging management module 140 can also provide power to the first electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be reused as a diversity antenna for a wireless LAN.
  • antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into medium and high frequency signals.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through the audio device, or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems for use in electronic devices. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the electronic device implements display functions through the GPU, display screen 194, and application processor.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device (such as the second device 200) responds to a user operation and displays the configuration application on the display screen 194 after starting the configuration application. Afterwards, in response to the user's operation on the display screen 194, the second device 200 configures the scene and generates a scene configuration file. Finally, the second device 200 sends the scene configuration file to the first device 100 through the wireless communication module 160, so that the first device 100 can subsequently complete the scene configuration in response to the online status of the third device 300.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function), etc.
  • the storage data area can store data (such as audio data) created during the use of the electronic device.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory.
  • the processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals.
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate vibration prompts.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the software system of the second device 200 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • This embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the second device 200 .
  • Figure 3C is a software structure block diagram of the second device 200 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include configuration applications, application market, camera, calendar, music, gallery, map, call, video and other applications.
  • the configuration application has the function of configuring and debugging smart home devices and creating scenes during the pre-installation process. For example, configure the application to install application.
  • the second device 200 starts the configuration application in response to the user operation. Afterwards, the second device 200 receives the user's operation in the configuration application, creates the corresponding scene, and can generate the corresponding scene configuration file.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the second device 200 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Android runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), three-dimensional graphics processing libraries (for example: OpenGL ES), two-dimensional graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the following takes the first device 100 as a Bluetooth gateway, the second device 200 as a mobile phone, the third device 300 as a smart home device, and the fourth device 400 as a smart home system hub.
  • the scene configuration method is applied to a smart home scene as an example.
  • the embodiments of the present application The provided scene configuration methods are introduced in detail.
  • FIG. 4 is a schematic flowchart of a scene configuration method provided by an embodiment of the present application. As shown in Figure 4, the method includes the following steps.
  • the mobile phone obtains the scene configuration file.
  • the scene configuration file is used to configure one or more scenes in the smart home system.
  • the scene configuration file includes, for example, one or more of a scene identification (identity, ID), smart home device information included in the scene corresponding to the scene ID, scene configuration information of the smart home device, and the like.
  • the smart home device information is, for example, media access control (media access control, MAC) address and other information used to identify the smart home device.
  • media access control media access control, MAC
  • the scene configuration information includes, for example, status parameters used to configure the status of smart home devices, such as switch status parameters, color temperature status parameters, brightness status parameters, temperature status parameters, running time status parameters, etc.
  • status parameters used to configure the status of smart home devices such as switch status parameters, color temperature status parameters, brightness status parameters, temperature status parameters, running time status parameters, etc.
  • the scene configuration information of the same smart home device in different scenes may be the same or different, and the scene configuration information of different smart home devices in different scenes may be the same or different.
  • the smart home device (the third device 300 shown in Figure 2) is connected to the Bluetooth gateway (the first device 100 shown in Figure 2), and the Bluetooth gateway is connected to the smart home system hub ( Figure 2).
  • the fourth device 400 shown in 2), or the smart home device can be directly connected to the smart home system hub.
  • the smart home system hub can obtain the MAC address of each smart home device in the smart home system.
  • the mobile phone (the second electronic device 200 shown in Figure 2) is connected to the smart home system hub, the MAC address of each smart home device can be obtained.
  • the mobile phone can determine which smart home devices exist in the smart home system and the MAC address of each smart home device.
  • the mobile phone can also determine whether each smart home device is online during the scene creation process.
  • the mobile phone responds to user (such as installation and maintenance engineer) operations, starts a configuration application, and receives the user's scene configuration operation on the configuration application to generate a corresponding scene configuration file. Or, in response to user operations, the mobile phone directly obtains the scene configuration file from a server or other device.
  • user such as installation and maintenance engineer
  • the mobile phone in response to user operation, starts the configuration application and displays interface 501 as shown in (a) of Figure 5 .
  • the user can perform scene configuration, such as creating a new scene, adding devices in the newly created scene, adjusting device parameters in the scene, etc.
  • the mobile phone detects the user's click on the selection control 51 and determines to add the four accent lighting devices in the living room to the scene.
  • the mobile phone can display the interface 502 as shown in Figure 5(b), and display the selected items on the interface 502.
  • Devices such as dimmer lamp 01, dimmer lamp 02, dimmer lamp 03, and dimmer lamp 04.
  • the mobile phone can also receive the user's parameter setting operation for the device that has been added to the scene. For example, the mobile phone detects the user's operation of clicking the dimming light 01 control 52, and displays the interface 503 as shown in (c) in Figure 5. .
  • a pop-up window 53 is displayed.
  • the mobile phone displays the adjustable status parameters of the dimming lamp 1.
  • the mobile phone determines that the currently created scene includes turning on the dimming light 01.
  • the user can complete the selection of smart home devices and setting the status parameters of the smart home devices on the interface 502.
  • the mobile phone saves the scene created by the user and generates the corresponding scene configuration file.
  • the scenarios created by the mobile phone through the configuration application include scenario 1 and scenario 2, and as shown in Table 1 below, the mobile phone can generate the corresponding configuration file.
  • the scene configuration file includes scene 1.
  • the MAC address of the living room lamp, the MAC address of the water dispenser, and the MAC address of the living room speaker included in scene 1 are the scene configuration information of the living room lamp to implement scene 1.
  • the scene configuration information of the water dispenser, the scene configuration information of the living room speaker; and the scene configuration file includes scene 2.
  • the MAC address of the sweeper and the MAC address of the air purifier included in scene 2 are used to implement the sweeping machine in scene 2. Scene configuration information and scene configuration information of the air purifier.
  • the mobile phone sends the scene configuration file to the Bluetooth gateway.
  • the mobile phone may send the scene configuration file to the Bluetooth gateway.
  • the Bluetooth gateway receives the scene configuration file sent by the mobile phone.
  • the mobile phone transmits the scene configuration file to the Bluetooth gateway in a specified format (such as JASON format, etc.).
  • a specified format such as JASON format, etc.
  • both the mobile phone (ie, the second device 200) and the Bluetooth gateway (ie, the first device 100) are connected to the smart home system hub (ie, the fourth device 400). Connect to the Wi-Fi network provided by the smart home system hub. Then, the mobile phone can send the scene configuration file to the Bluetooth gateway through the Wi-Fi network.
  • the Bluetooth gateway saves the scene configuration file.
  • the Bluetooth gateway can save the scene configuration file to facilitate subsequent scene configuration.
  • the Bluetooth gateway after the Bluetooth gateway saves the scene configuration file, it can determine the smart home devices in the scene to be configured in the scene configuration file, and set the status of these smart home devices to be configured to the unsaved scene state.
  • the Bluetooth gateway automatically completes scene configuration according to the online status of the smart home device to be configured.
  • the Bluetooth gateway obtains the MAC address of the smart home device included in the scene to be configured according to the scene configuration file, and then determines whether the smart home device required for the scene to be configured is online. If the smart home device to be configured is online, you can instruct the online smart home device to be configured to complete the scene configuration; if the smart home device to be configured is not online, you can instruct the offline smart home device to be configured after it comes online. The smart home device to be configured completes the configuration of the scene.
  • the Bluetooth gateway may set the status of these smart home devices that have completed scene configuration to the saved scene state.
  • the Bluetooth gateway can determine which smart home devices have completed scene configuration and which smart home devices still need scene configuration based on the status of the smart home devices.
  • step S44 includes step S441 and/or step S442.
  • the Bluetooth gateway determines that the smart home device is online and executes step S441.
  • Step S441 includes steps S4411 to S4413.
  • the Bluetooth gateway determines that the smart home device A corresponding to the scene configuration file is online.
  • smart home device A is used to represent an online smart home device in the scene to be configured.
  • the smart home device is online, for example, indicating that the smart home device is powered on and is in a communicable state.
  • a Bluetooth gateway is used to manage and control connected smart home devices. Therefore, the Bluetooth gateway can learn the online status of smart home devices.
  • the Bluetooth gateway may determine the scene to be configured in the scene configuration file and the smart home devices included in the scene to be configured. Then, the Bluetooth gateway can determine whether the smart home device in the scene to be configured is online, for example, determine whether the smart home device A is online.
  • the Bluetooth gateway sends a scene creation instruction to smart home device A.
  • the scene creation instruction carries scene configuration information.
  • the Bluetooth gateway after determining the online status of the smart home device in the scene to be configured, sends a scene creation instruction to the online smart home device A to instruct the smart home device A to create a scene and save the corresponding Scene configuration information, which is used by smart home device A in the created scene to set corresponding status parameters.
  • smart home device A receives the scene creation instruction sent by the Bluetooth gateway.
  • the Bluetooth gateway determines that the living room lights included in scenario 1 are not online, the water dispenser is online, and the living room speakers are not online. Then, the Bluetooth gateway can send a scene creation instruction to the water dispenser based on the MAC address of the water dispenser, and the scene creation instruction carries scene configuration information for setting the status of the water dispenser in scene 1, such as switch status parameters.
  • the scene configuration file may include scene configuration files for multiple scenes, and the multiple scene configuration files may Includes the same or different scene configuration information used to configure the same smart home device.
  • the Bluetooth gateway also carries the scene ID in the scene creation command sent to the smart home device. In this way, if a smart home device receives multiple scene creation instructions, it can determine the corresponding scene configuration information based on the scene ID carried therein, so as to facilitate the subsequent execution of the scene with the corresponding scene ID.
  • the scene configuration file includes scene configuration file 1 for configuring the "go home scene” and scene configuration file 2 for configuring the "entertainment scene”.
  • scene configuration file 1 includes scene configuration information for configuring the living room lamp as the brightness status parameter is brightness 1
  • scene configuration file 2 includes scene configuration information for configuring the living room lamp as the brightness status parameter is brightness 2.
  • the Bluetooth gateway determines that the living room lamp is online, it sends scene creation instruction 1 carrying the scene ID of the "go home scene” and the corresponding scene configuration information to the living room lamp, and sends scene creation instruction 2 to the living room lamp carrying There is the scene ID of "entertainment scene” and the corresponding scene configuration information.
  • Smart home device A saves scene configuration information.
  • smart home device A after receiving the scene creation instruction sent by the Bluetooth gateway, saves the scene configuration information carried therein. In this way, the subsequent smart home device A can respond to the instructions of the Bluetooth gateway and implement the corresponding scene according to the scene configuration information.
  • the Bluetooth gateway determines that the smart home device is not online and executes step S442.
  • Step S442 includes steps S4421 to S4423.
  • the Bluetooth gateway determines that the smart home device B corresponding to the scene configuration file is online.
  • smart home device B is used to represent an offline smart home device in the scenario to be configured.
  • the smart home device is not online, for example, it means that the smart home device is not powered on, or is in a non-communicable state.
  • the Bluetooth gateway may determine the scene to be configured in the scene configuration file and the smart home devices included in the scene to be configured. Then, the Bluetooth gateway can determine whether the smart home device in the scene to be configured is online, for example, determine whether the smart home device B is not online.
  • the Bluetooth gateway can monitor the online status of smart home device B. If it is determined that smart home device B is online, smart home device B can be configured according to the saved scene configuration file.
  • the Bluetooth gateway sends a scene creation instruction to smart home device B.
  • the scene creation instruction carries scene configuration information.
  • the Bluetooth gateway can send a scene creation instruction to smart home device B to instruct smart home device B to create a scene and save the corresponding scene configuration information.
  • this scene configuration information is used by smart home device B in the created scene to set corresponding status parameters.
  • smart home device B receives the scene creation instruction sent by the Bluetooth gateway.
  • the Bluetooth gateway determines that the living room lights included in scenario 1 are not online, the water dispenser is online, and the living room speakers are not online.
  • the Bluetooth gateway completes the scene configuration of the water dispenser through the above step S4412. However, because the living room lamp and living room speaker are not online, the status parameters of the living room lamp and living room speaker in scene 1 cannot be configured.
  • the Bluetooth gateway can send a scene creation instruction to the living room lamp according to the MAC address of the living room lamp, and carry the scene creation instruction to set the living room lamp status parameters in scene 1.
  • Scene configuration information including switch status parameters and brightness status parameters.
  • the scene creation instruction also carries the scene ID of the scene to be created.
  • step S4422 for the remaining content of step S4422, reference may be made to the relevant content of step S4412 above, which will not be described again here.
  • Smart home device B saves scene configuration information.
  • smart home device B after receiving the scene creation instruction sent by the Bluetooth gateway, saves the scene configuration information carried therein. In this way, the subsequent smart home device B can respond to the instructions of the Bluetooth gateway and implement the corresponding scene according to the scene configuration information.
  • the mobile phone responds to the user operation and sends the scene configuration file to the Bluetooth gateway, and the Bluetooth gateway completes the scene configuration.
  • the scene configuration process in the pre-installation process can be completed. Improve scene configuration efficiency during pre-installation.
  • the subsequent Bluetooth gateway can automatically complete scene configuration based on the online status of the smart home devices in the scene to be configured, ensuring the success rate of scene configuration.
  • steps S71- Step S73 after step S44 (for example, including step S441 and/or step S442), steps S71- Step S73.
  • the Bluetooth gateway broadcasts the scene ID.
  • the Bluetooth gateway can receive operation instructions for the scene from the control device (such as a mobile phone, a smart home control panel, etc.), such as an instruction to execute the scene.
  • the control device such as a mobile phone, a smart home control panel, etc.
  • the smart home control panel responds to the user's operation and sends a command to start the "go home scene" to the Bluetooth gateway.
  • the Bluetooth gateway can receive the command and determine that the scene to be executed is the "go home scene".
  • the Bluetooth gateway may determine the scene to be executed that meets the conditions based on the scene configuration file saved in step S43. For example, if the execution condition of "Going Home Scenario" is 18:00 in the evening, then the Bluetooth gateway can determine to execute the "Going Home Scenario” after determining that the current time is 18:00 in the evening.
  • the Bluetooth gateway may determine the scene ID of the scene to be executed. Afterwards, the Bluetooth gateway broadcasts the scene ID to notify the smart home device corresponding to the scene ID to execute the scene.
  • Smart home device A executes the corresponding scene according to the scene configuration information.
  • Smart home device B executes the corresponding scene according to the scene configuration information.
  • smart home device A and smart home device B after listening to the Bluetooth gateway broadcast message, smart home device A and smart home device B determine that the scene ID carried in the broadcast message is the scene ID corresponding to the locally saved scene configuration information. . Then, smart home device A and smart home device B can obtain the scene configuration information corresponding to the scene ID, and set the corresponding status according to the scene configuration information to execute the scene corresponding to the scene ID.
  • the living room lights, water dispensers, and living room speakers can obtain the scene configuration information corresponding to scene 1 after listening to the scene ID broadcast by the Bluetooth gateway. , set the corresponding status.
  • the living room lamp is turned on according to the switch status parameter in the scene configuration information of scene 1, and is turned on with brightness 1 according to the brightness status parameter;
  • the water dispenser is turned on according to the switch status parameter in the scene configuration information of scene 1;
  • the speaker in the living room is turned on according to the switch status parameter setting in the scene configuration information of scene 1, and is turned on at a volume of 50 decibels according to the volume status parameter setting.
  • step S72 and step S73 does not limit the execution order of step S72 and step S73.
  • the smart home device executes the corresponding scene according to the scene configuration information set by the Bluetooth gateway, effectively ensuring the success rate of scene execution.
  • the scene configuration method provided by the embodiment of the present application is not only applicable to smart home scenarios, but also applicable to other scenarios using Bluetooth Mash networks, such as building automation scenarios in smart offices, and the configuration of scenarios in other scenarios.
  • the Bluetooth gateway can obtain the scenario configuration file sent by the engineer through the mobile phone. Afterwards, the Bluetooth gateway can automatically complete the scenario configuration based on the online status of the office equipment. It can also improve the scene configuration efficiency and success rate of office equipment.
  • FIG. 8 is a schematic flowchart of yet another scene configuration method provided by an embodiment of the present application. As shown in Figure 8, the method includes the following steps.
  • the first device receives the scene configuration file sent by the second device.
  • the first device is, for example, a Bluetooth gateway
  • the second device is, for example, a mobile phone with a configuration application installed
  • the first device and the second device are connected to a fourth device (such as a router), and the second device can configure the first device through the configuration application.
  • the second device in response to the first operation, after the second device launches the configuration application, in response to the user's second operation in the configuration application, the second device may generate the scene configuration file. Afterwards, the second device sends the scene configuration file to the first device. Correspondingly, the first device receives the scene configuration file sent by the second device.
  • the second device starts the configuration application and receives the user's scene configuration operations on the configuration application, such as creating a new scene, adding devices in the newly created scene, and adjusting the settings in the scene. Equipment parameters, etc. Therefore, the second device can create a scene based on the user's operation and generate a corresponding scene configuration file.
  • the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
  • the first device may save the scene configuration file.
  • the first device can also use the saved field after the third device comes online.
  • scene configuration file to complete the scene configuration of the third device that will be online later, thus effectively improving the success rate of scene configuration.
  • the first device determines n third devices to be configured according to the scene configuration file.
  • the second device generates the scene configuration file according to the user's scene configuration operation in the configuration application. Then, the scene configuration file includes information, such as MAC addresses, of n third devices (ie, smart home devices) required to implement the scene. Therefore, after receiving the scene configuration file, the first device can determine n third devices to be configured according to the scene configuration file.
  • n third devices ie, smart home devices
  • the first device sets the states of the n third devices to the first state, and the first state is used to indicate the unsaved scene.
  • the first device sends a first scene creation instruction to the online first target device among the n third devices.
  • the first scene creation instruction carries the first scene configuration information.
  • the first device After determining that the second target device that is not online among the n third devices is online, the first device sends a second scene creation instruction to the second target device.
  • the second scene creation instruction carries the second scene configuration information.
  • the first device obtains n third devices included in the scene to be configured according to the scene configuration file, and then determines whether the n third devices required for the scene to be configured are online. .
  • the online third device to be configured can be instructed to complete the configuration of the scenario. If the online device among the n third devices is the first target device, the first device may send a first scene creation instruction to the first target device, and carry the first scene configuration information in the first scene creation instruction. Therefore, the first target device responds to the first scene creation instruction and creates a scene according to the first scene configuration information.
  • the third device to be configured can be instructed to complete the configuration of the scenario.
  • the device that is not online among the n third devices is the second target device, and the first device can send a second scene creation instruction to the second target device after determining that the second target device that is not online among the n third devices is online. , and carry the second scene configuration information in the second scene creation instruction. Therefore, the second target device responds to the second scene creation instruction and creates a scene according to the second scene configuration information.
  • the second device responds to the user operation by sending the scene configuration file to the first device, and the first device completes the configuration of the scene.
  • the preloading process can be completed.
  • the scene configuration process improves the efficiency of scene configuration in the pre-installation process.
  • the first device can automatically complete the scene configuration according to the online status of the third device in the scene to be configured, ensuring the success rate of scene configuration.
  • the third device sets the state of the first target device to the second state and /Or, the third device sets the state of the second target device to the second state.
  • the second state is used to represent the saved scene.
  • the first device can determine which third devices have completed scene configuration and which third devices still need to perform scene configuration according to the status of the third device.
  • the first device sends a broadcast message to n third devices, and carries the scene identifier in the broadcast message.
  • the third device can execute the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier carried in the broadcast message.
  • the third device can trigger execution of the corresponding scene according to the received broadcast message.
  • the third device can determine the corresponding scene configuration information based on the scene identifier carried therein, so as to facilitate subsequent execution of the scene corresponding to the corresponding scene identifier.
  • the first device can also perform the steps and functions performed by the Bluetooth gateway in the above embodiments
  • the second device can also perform the steps and functions performed by the mobile phone in the above embodiments
  • the third device can also perform the smart devices in the above embodiments.
  • the steps and functions performed by the home device are implemented to implement the scene configuration method provided in the above embodiments.
  • FIG. 9 is a schematic structural diagram of a first device provided by an embodiment of the present application.
  • the first device 900 may include: a transceiver unit 901 and a processing unit 902.
  • the first device 900 may be used to implement the functions of the first device (such as a Bluetooth gateway) involved in the above method embodiments.
  • the transceiver unit 901 is used to support the first device 900 to perform S42 in Figure 4; and/or is used to support the first device 900 to perform S42 in Figure 4;
  • the device 900 performs S4412 and/or S4422 in Figure 6; and/or is used to support the first device 900 to perform S71 in Figure 7; and/or is used to support the first device 900 to perform S83 and/or in Figure 8 Or S84.
  • the processing unit 902 is used to support the first device 900 to perform S44 in Figure 4; and/or to support the first device 900 to perform S4411 and/or S4421 in Figure 6; and/or to The first device 900 is supported to execute S82 in FIG. 8 .
  • the transceiver unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module.
  • the operation and/or function of each unit in the first device 900 is to implement the corresponding process of the scene configuration method described in the above method embodiment. All relevant content of each step involved in the above method embodiment can be quoted to the corresponding function. The functional description of the unit will not be repeated here for the sake of brevity.
  • the first device 900 shown in FIG. 9 may also include a storage unit 903 for supporting the first device 900 to perform S43 in FIG. 4 .
  • programs or instructions are stored in the storage unit.
  • the transceiver unit 901 and the processing unit 902 execute the program or instruction
  • the first device 900 shown in FIG. 9 can execute the scene configuration method described in the above method embodiment.
  • the technical solution provided by this application can also be a functional unit or chip in the first device, or a device used in conjunction with the first device.
  • FIG. 10 is a schematic structural diagram of a second device provided by an embodiment of the present application.
  • the second device 1000 may include: a transceiver unit 1001 and a processing unit 1002.
  • the second device 1000 may be used to implement the functions of the second device (such as a mobile phone) involved in the above method embodiments.
  • the transceiver unit 1001 is used to support the second device 1000 to perform S41 and S42 in Figure 4; and/or to support the second device 1000 to perform S81 in Figure 8.
  • the processing unit 1002 is configured to support the second device 1000 in generating a scene configuration file in response to user operations.
  • the configuration application in the application framework layer as shown in FIG. 3C is installed in the second device 1000.
  • the processing unit 1002 starts the configuration application.
  • the processing unit 1002 generates the scene configuration file.
  • the transceiver unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module.
  • the operation and/or function of each unit in the second device 1000 is to implement the corresponding process of the scene configuration method described in the above method embodiment. All relevant content of each step involved in the above method embodiment can be quoted to the corresponding function. The functional description of the unit will not be repeated here for the sake of brevity.
  • the second device 1000 shown in Fig. 10 may also include a storage unit (not shown in Fig. 10), in which programs or instructions are stored.
  • a storage unit not shown in Fig. 10
  • the transceiver unit 1001 and the processing unit 1002 execute the program or instruction
  • the second device 1000 shown in FIG. 10 can execute the scene configuration method described in the above method embodiment.
  • the technical solution provided by this application can also be a functional unit or chip in the second device, or a device used in conjunction with the second device.
  • An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, and the memory is used to store programs or instructions. When the program or instructions are executed by the processor, the The chip system implements the method in any of the above method embodiments.
  • processors in the chip system there may be one or more processors in the chip system.
  • the processor can be implemented in hardware or software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software code stored in memory.
  • the memory may be integrated with the processor or may be provided separately from the processor, which is not limited by the embodiments of the present application.
  • the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be separately provided on different chips.
  • the embodiments of this application vary on the type of memory, and The arrangement of the memory and processor is not specifically limited.
  • the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system chip.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processor unit
  • NP network processor
  • DSP digital signal processor
  • MCU microcontroller unit
  • PLD programmable logic device
  • each step in the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the method steps disclosed in conjunction with the embodiments of this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to perform the above related steps to implement the above embodiments. scene configuration method.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the scene configuration method in the above embodiment.
  • the embodiment of the present application also provides a device.
  • the device may specifically be a component or module, and the device may include one or more connected processors and memories. Among them, memory is used to store computer programs. When the computer program is executed by one or more processors, the device is caused to execute the scene configuration method in each of the above method embodiments.
  • the devices, computer-readable storage media, computer program products or chips provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be described again here.
  • the steps of the methods or algorithms described in connection with the disclosure of the embodiments of this application can be implemented in hardware or by a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (random access memory, RAM), flash memory, read only memory (read only memory, ROM), erasable programmable read only memory (erasable programmable ROM (EPROM), electrically erasable programmable read-only memory (EPROM, EEPROM), register, hard disk, removable hard disk, compact disc (CD-ROM) or any other form of storage media well known in the art.
  • An exemplary storage medium is coupled to the processor such that the processor can read information from the storage medium and write information to the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage medium may be located in an application specific integrated circuit (ASIC).
  • ASIC application specific integrated circuit
  • the disclosed method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored. or not executed.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of modules or units, and may be in electrical, mechanical or other forms.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • Computer-readable storage media includes but is not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or optical disk etc.
  • Various media that can store program code include but is not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Stored Programmes (AREA)

Abstract

A scenario configuration method, an electronic device and a system, the scene configuration method comprising: after receiving a scenario configuration file sent by a second device (200), a first device (100) determines n third devices (300) to be configured; and the first device (100) sends, to an online first target device in the n third devices (300), a first scenario creation instruction carrying first scenario configuration information and used for instructing the first target device to create a scenario according to the first scenario configuration information, and/or, after determining that an offline second target device in the n third devices (300) is online, sends to the second target device a second scenario creation instruction carrying second scenario configuration information and used for instructing the second target device to create a scenario according to the second scene configuration information.

Description

场景配置方法、电子设备及系统Scene configuration method, electronic device and system
本申请要求于2022年08月05日提交国家知识产权局、申请号为202210938367.2、发明名称为“场景配置方法、电子设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the State Intellectual Property Office on August 5, 2022, with application number 202210938367.2 and the invention name "Scene Configuration Method, Electronic Device and System", the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请实施例涉及终端技术领域,尤其涉及一种场景配置方法、电子设备及系统。The embodiments of the present application relate to the field of terminal technology, and in particular, to a scene configuration method, electronic device and system.
背景技术Background technique
随着终端技术的发展,用户拥有的电子设备越来越多。如家庭场景中,通过物联网技术将家中的各种设备(如音视频设备、照明设备、环境控制设备等)连接到一起形成智能家居系统,为用户提供家电控制、照明控制等多种功能。With the development of terminal technology, users have more and more electronic devices. For example, in home scenarios, various devices in the home (such as audio and video equipment, lighting equipment, environmental control equipment, etc.) are connected together through the Internet of Things technology to form a smart home system, providing users with multiple functions such as home appliance control and lighting control.
其中,在首次安装智能家居系统的过程中,工程师可对智能家居系统中的场景进行配置,以实现上述智能家居设备的各种场景功能。如添加场景中包括的智能家居设备,以及设置场景实现过程中智能家居设备的状态参数等。Among them, during the first installation of the smart home system, engineers can configure the scenes in the smart home system to realize various scene functions of the above-mentioned smart home devices. Such as adding smart home devices included in the scene, and setting the status parameters of the smart home devices during scene implementation, etc.
但是,在场景配置过程中,若待配置的场景中所需的任一智能家居设备未在线,就会导致该场景创建失败。并且,即使待配置的智能家居设备均在线,也需要一一配置场景中的各个智能家居设备的状态参数,随着待配置场景和待配置场景中智能家居设备的数量的增多,场景配置过程耗时增加。However, during the scene configuration process, if any smart home device required in the scene to be configured is not online, the scene creation will fail. Moreover, even if the smart home devices to be configured are all online, the status parameters of each smart home device in the scene need to be configured one by one. As the number of scenes to be configured and the number of smart home devices in the scene to be configured increases, the scene configuration process consumes time increases.
发明内容Contents of the invention
为了解决上述的技术问题,本申请实施例提供了一种场景配置方法、电子设备及系统。本申请实施例提供的技术方案,第一设备获取场景配置文件后,根据待配置的第三设备在线情况,向在线的第三设备下发场景配置信息,以实现自动场景配置。从而有效减少前装过程中,场景配置耗时。In order to solve the above technical problems, embodiments of the present application provide a scene configuration method, electronic device and system. In the technical solution provided by the embodiments of this application, after the first device obtains the scene configuration file, it sends the scene configuration information to the online third device according to the online status of the third device to be configured, so as to realize automatic scene configuration. This effectively reduces the time-consuming scene configuration during the pre-installation process.
为了实现上述的技术目的,本申请实施例提供了如下技术方案:In order to achieve the above technical objectives, the embodiments of this application provide the following technical solutions:
第一方面,提供一种场景配置方法。该方法包括:第一设备接收第二设备发送的场景配置文件。第一设备根据场景配置文件,确定待配置的n个第三设备,n为不小于1的整数。第一设备向n个第三设备中在线的第一目标设备发送第一场景创建指令,第一场景创建指令中携带有第一场景配置信息,第一场景创建指令用于指示第一目标设备根据第一场景配置信息创建场景;和/或,第一设备确定n个第三设备中不在线的第二目标设备上线后,向第二目标设备发送第二场景创建指令,第二场景创建指令中携带有第二场景配置信息,第二场景创建指令用于指示第二目标设备根据第二场景配置信息创建场景。The first aspect is to provide a scene configuration method. The method includes: the first device receives a scene configuration file sent by the second device. The first device determines n third devices to be configured according to the scene configuration file, where n is an integer not less than 1. The first device sends a first scene creation instruction to the online first target device among the n third devices. The first scene creation instruction carries the first scene configuration information. The first scene creation instruction is used to instruct the first target device according to The first scene configuration information creates the scene; and/or, after the first device determines that the second target device that is not online among the n third devices is online, it sends a second scene creation instruction to the second target device. Carrying the second scene configuration information, the second scene creation instruction is used to instruct the second target device to create a scene according to the second scene configuration information.
如此,在前装过程中,第二设备向第一设备发送场景配置文件后,可确定前装过程中的场景配置完成,后续由第一设备完成场景的配置。这样无论待配置场景中的第三设备是否在线,均可完成前装过程中的场景配置流程,从而有效降低前装过程中的场景配置时间,提高场景配置效率。In this way, during the pre-installation process, after the second device sends the scene configuration file to the first device, it can be determined that the scene configuration during the pre-installation process is completed, and subsequently the first device completes the scene configuration. In this way, no matter whether the third device in the scene to be configured is online or not, the scene configuration process in the pre-installation process can be completed, thereby effectively reducing the scene configuration time in the pre-installation process and improving scene configuration efficiency.
并且,后续第一设备可根据待配置场景中的第三设备的在线情况,自动完成场景配置,保证场景配置的成功率。In addition, the first device can automatically complete the scene configuration according to the online status of the third device in the scene to be configured, ensuring the success rate of scene configuration.
根据第一方面,场景配置文件包括如下一项或几项:场景标识,n个第三设备的标识,第一场景配置信息和/或第二场景配置信息。According to the first aspect, the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:第一设备向n个第三设备发送广播消息,广播消息携带有场景标识,广播消息用于指示n个第三设备按照场景标识对应的第一场景配置信息或第二场景配置信息执行相应的场景。According to the first aspect, or any implementation of the above first aspect, the method further includes: the first device sends a broadcast message to n third devices, the broadcast message carries the scene identifier, and the broadcast message is used to indicate the n third devices. The device executes the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier.
如此,第三设备能够根据接收到的广播消息触发执行相应的场景。可选的,第三设备如接收到多个场景创建指令,能够其中携带的根据场景标识,确定对应的场景配置信息,便于后续执行相应场景标识对应的场景。In this way, the third device can trigger execution of the corresponding scene according to the received broadcast message. Optionally, if the third device receives multiple scene creation instructions, it can determine the corresponding scene configuration information based on the scene identifier carried therein, so as to facilitate subsequent execution of the scene corresponding to the corresponding scene identifier.
根据第一方面,或者以上第一方面的任意一种实现方式,在第一设备根据场景配置文件,确定待配置的n个第三设备之前,方法还包括:第一设备保存场景配置文件。 According to the first aspect, or any implementation of the above first aspect, before the first device determines n third devices to be configured according to the scene configuration file, the method further includes: the first device saves the scene configuration file.
如此,在第三设备不在线的情况下,第一设备也能够在后续第三设备上线后,根据保存的场景配置文件,完成该后上线的第三设备的场景配置,从而有效提高场景配置的成功率。In this way, when the third device is not online, the first device can also complete the scene configuration of the third device that comes online later based on the saved scene configuration file after the third device comes online, thereby effectively improving the efficiency of scene configuration. Success rate.
根据第一方面,或者以上第一方面的任意一种实现方式,在第一设备根据场景配置文件,确定待配置的n个第三设备之后,方法还包括:第一设备设置n个第三设备的状态为第一状态,第一状态用于表示未保存场景。According to the first aspect, or any implementation of the above first aspect, after the first device determines n third devices to be configured according to the scene configuration file, the method further includes: the first device sets n third devices The state is the first state, and the first state is used to indicate that the scene has not been saved.
根据第一方面,或者以上第一方面的任意一种实现方式,在第一设备向n个第三设备中在线的第一目标设备发送第一场景创建指令之后,方法还包括:第三设备设置第一目标设备的状态为第二状态,第二状态用于表示已保存场景;和/或,第三设备设置第二目标设备的状态为第二状态。According to the first aspect, or any implementation of the above first aspect, after the first device sends the first scene creation instruction to the online first target device among the n third devices, the method further includes: third device settings The state of the first target device is the second state, and the second state is used to represent the saved scene; and/or the third device sets the state of the second target device to the second state.
如此,第一设备通过设置第三设备的状态,以便后续根据第三设备的状态可确定哪些第三设备已完成场景配置,哪些第三设备还需要进行场景配置。In this way, the first device sets the status of the third device so that it can subsequently determine which third devices have completed scene configuration and which third devices still need to perform scene configuration based on the status of the third device.
第二方面,提供一种场景配置方法。该方法包括:响应于第一操作,第二设备启动配置应用。响应于用户在配置应用中的第二操作,第二设备生成场景配置文件。第二设备向第一设备发送场景配置文件,场景配置文件用于指示第一设备配置n个第三设备的场景,n为不小于1的整数。The second aspect is to provide a scene configuration method. The method includes: in response to the first operation, the second device launches the configuration application. In response to a second operation by the user in the configuration application, the second device generates a scene configuration file. The second device sends a scene configuration file to the first device. The scene configuration file is used to instruct the first device to configure n scenes of the third device, where n is an integer not less than 1.
如此,第二设备根据用户在配置应用中的操作,可生成相应的场景配置文件。那么,在前装过程中,第二设备向第一设备发送场景配置文件后,可确定前装过程中的场景配置完成,从而有效降低场景配置时间,提高场景配置效率。In this way, the second device can generate a corresponding scene configuration file according to the user's operation in the configuration application. Then, during the pre-installation process, after the second device sends the scene configuration file to the first device, it can be determined that the scene configuration during the pre-installation process is completed, thereby effectively reducing the scene configuration time and improving the scene configuration efficiency.
根据第二方面,场景配置文件包括如下一项或几项:场景标识,n个第三设备的标识,场景配置信息。According to the second aspect, the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, and scene configuration information.
第二方面以及第二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the second aspect and any one of the implementation methods of the second aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第三方面,提供一种电子设备。该电子设备包括:处理器和存储器,存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得电子设备执行:第一设备接收第二设备发送的场景配置文件。第一设备根据场景配置文件,确定待配置的n个第三设备,n为不小于1的整数。第一设备向n个第三设备中在线的第一目标设备发送第一场景创建指令,第一场景创建指令中携带有第一场景配置信息,第一场景创建指令用于指示第一目标设备根据第一场景配置信息创建场景;和/或,第一设备确定n个第三设备中不在线的第二目标设备上线后,向第二目标设备发送第二场景创建指令,第二场景创建指令中携带有第二场景配置信息,第二场景创建指令用于指示第二目标设备根据第二场景配置信息创建场景。A third aspect provides an electronic device. The electronic device includes: a processor and a memory. The memory is coupled to the processor. The memory is used to store computer program codes. The computer program codes include computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes: first device Receive the scene configuration file sent by the second device. The first device determines n third devices to be configured according to the scene configuration file, where n is an integer not less than 1. The first device sends a first scene creation instruction to the online first target device among the n third devices. The first scene creation instruction carries the first scene configuration information. The first scene creation instruction is used to instruct the first target device according to The first scene configuration information creates the scene; and/or, after the first device determines that the second target device that is not online among the n third devices is online, it sends a second scene creation instruction to the second target device. Carrying the second scene configuration information, the second scene creation instruction is used to instruct the second target device to create a scene according to the second scene configuration information.
根据第三方面,场景配置文件包括如下一项或几项:场景标识,n个第三设备的标识,第一场景配置信息和/或第二场景配置信息。According to the third aspect, the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
根据第三方面,或者以上第三方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:第一设备向n个第三设备发送广播消息,广播消息携带有场景标识,广播消息用于指示n个第三设备按照场景标识对应的第一场景配置信息或第二场景配置信息执行相应的场景。According to the third aspect, or any implementation of the above third aspect, when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the first device sends a broadcast message to n third devices , the broadcast message carries the scene identifier, and the broadcast message is used to instruct n third devices to execute the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier.
根据第三方面,或者以上第三方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:第一设备保存场景配置文件。According to the third aspect, or any implementation of the above third aspect, when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the first device saves the scene configuration file.
根据第三方面,或者以上第三方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:第一设备设置n个第三设备的状态为第一状态,第一状态用于表示未保存场景。According to the third aspect, or any implementation of the above third aspect, when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the first device sets the status of n third devices as The first state is used to indicate that the scene has not been saved.
根据第三方面,或者以上第三方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:第三设备设置第一目标设备的状态为第二状态,第二状态用于表示已保存场景;和/或,第三设备设置第二目标设备的状态为第二状态。According to the third aspect, or any implementation of the above third aspect, when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: the third device sets the state of the first target device to the third Two states, the second state is used to represent the saved scene; and/or, the third device sets the state of the second target device to the second state.
第三方面以及第三方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the third aspect and any one of the implementation methods of the third aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第四方面,提供一种电子设备。该电子设备包括:处理器和存储器,存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计 算机指令,使得电子设备执行:响应于第一操作,第二设备启动配置应用。响应于用户在配置应用中的第二操作,第二设备生成场景配置文件。第二设备向第一设备发送场景配置文件,场景配置文件用于指示第一设备配置n个第三设备的场景,n为不小于1的整数。A fourth aspect provides an electronic device. The electronic device includes: a processor and a memory. The memory is coupled to the processor. The memory is used to store computer program code. The computer program code includes computer instructions. When the processor reads the program code from the memory, The computer instruction causes the electronic device to execute: in response to the first operation, the second device starts the configuration application. In response to a second operation by the user in the configuration application, the second device generates a scene configuration file. The second device sends a scene configuration file to the first device. The scene configuration file is used to instruct the first device to configure n scenes of the third device, where n is an integer not less than 1.
根据第四方面,场景配置文件包括如下一项或几项:场景标识,n个第三设备的标识,场景配置信息。According to the fourth aspect, the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, and scene configuration information.
第四方面以及第四方面中任意一种实现方式所对应的技术效果,可参见上述第二方面及第二方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the fourth aspect and any one of the implementation methods of the fourth aspect, please refer to the technical effects corresponding to the above-mentioned second aspect and any one of the implementation methods of the second aspect, which will not be described again here.
第五方面,本申请实施例提供一种场景配置系统,包括:第二设备,用于响应于第一操作,启动配置应用,并响应于用户在配置应用中的第二操作,生成场景配置文件。第二设备,还用于向第一设备发送场景配置文件。第一设备,用于接收第二设备发送的场景配置文件。第一设备,还用于根据场景配置文件,确定待配置的n个第三设备,n为不小于1的整数。第一设备,还用于向n个第三设备中在线的第一目标设备发送第一场景创建指令,第一场景创建指令中携带有第一场景配置信息,和/或,确定n个第三设备中不在线的第二目标设备上线后,向第二目标设备发送第二场景创建指令,第二场景创建指令中携带有第二场景配置信息。第三设备,用于根据第一场景配置信息和/或第二场景配置信息创建场景。In a fifth aspect, embodiments of the present application provide a scene configuration system, including: a second device configured to start a configuration application in response to a first operation, and to generate a scene configuration file in response to a user's second operation in the configuration application. . The second device is also used to send the scene configuration file to the first device. The first device is configured to receive the scene configuration file sent by the second device. The first device is also used to determine n third devices to be configured according to the scene configuration file, where n is an integer not less than 1. The first device is also configured to send a first scene creation instruction to an online first target device among the n third devices. The first scene creation instruction carries the first scene configuration information, and/or determines the n third devices. After the second target device that is not online among the devices comes online, it sends a second scene creation instruction to the second target device, and the second scene creation instruction carries the second scene configuration information. The third device is used to create a scene according to the first scene configuration information and/or the second scene configuration information.
根据第五方面,场景配置文件包括如下一项或几项:场景标识,n个第三设备的标识,第一场景配置信息和/或第二场景配置信息。According to the fifth aspect, the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
根据第五方面,或者以上第五方面的任意一种实现方式,第一设备,还用于向n个第三设备发送广播消息,广播消息携带有场景标识。n个第三设备,还用于接收广播消息,按照广播消息中携带的场景标识对应的第一场景配置信息或第二场景配置信息执行相应的场景。According to the fifth aspect, or any implementation manner of the fifth aspect above, the first device is further configured to send a broadcast message to n third devices, where the broadcast message carries a scene identifier. The n third devices are also used to receive the broadcast message and execute the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier carried in the broadcast message.
第五方面以及第五方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the fifth aspect and any one of the implementation methods of the fifth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第六方面,本申请实施例提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一种可能的实现方式中所述的场景配置方法的功能;或者,该电子设备具有实现如上述第二方面及其中任一种可能的实现方式中所述的场景配置方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应地软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, embodiments of the present application provide an electronic device that has the function of implementing the scene configuration method as described in the above first aspect and any possible implementation manner; or, the electronic device has the function of implementing The function of the scene configuration method described in the above second aspect and any possible implementation manner thereof. This function can be implemented by hardware, or can be implemented by hardware and corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第六方面以及第六方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the sixth aspect and any one of the implementation methods of the sixth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第七方面,提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被电子设备执行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法;或者,使得电子设备执行第二方面或第二方面中任意一种实施方式的方法。In a seventh aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (which may also be referred to as instructions or codes). When the computer program is executed by an electronic device, it causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect; or , causing the electronic device to perform the second aspect or the method of any one of the implementation modes of the second aspect.
第七方面以及第七方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the seventh aspect and any one of the implementation methods of the seventh aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be described again here.
第八方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法;或者,使得电子设备执行第二方面或第二方面中任意一种实施方式的方法。In an eighth aspect, embodiments of the present application provide a computer program product. When the computer program product is run on an electronic device, it causes the electronic device to execute the method of the first aspect or any one of the embodiments in the first aspect; or, causes the electronic device to execute The device performs the second aspect or the method of any one of the implementation modes of the second aspect.
第八方面以及第八方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the eighth aspect and any one of the implementation methods of the eighth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be described again here.
第九方面,本申请实施例提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行第一方面或第一方面中任意一种实施方式的方法;或者,处理电路被配置为执行第二方面或第二方面中任意一种实施方式的方法。In a ninth aspect, embodiments of the present application provide a circuit system. The circuit system includes a processing circuit. The processing circuit is configured to execute the method of the first aspect or any one of the implementation modes of the first aspect; or, the processing circuit is configured to execute The method of the second aspect or any one of the second aspects.
第九方面以及第九方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the ninth aspect and any one of the implementation methods of the ninth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be described again here.
第十方面,本申请实施例提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行第一方面或第一方面中任意一种实施方式的方法;或者,至少一个处 理器执行第二方面或第二方面中任意一种实施方式的方法。In a tenth aspect, embodiments of the present application provide a chip system, including at least one processor and at least one interface circuit. The at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor. When at least one processor When executing instructions, at least one processor performs the first aspect or the method of any implementation manner in the first aspect; or, at least one processor The processor executes the second aspect or the method of any one of the implementation modes of the second aspect.
第十方面以及第十方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the tenth aspect and any one of the implementation methods of the tenth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
附图说明Description of the drawings
图1为本申请实施例提供的现有技术中场景配置方法流程示意图;Figure 1 is a schematic flow chart of a scene configuration method in the prior art provided by an embodiment of the present application;
图2为本申请实施例提供的一种场景配置方法应用的通信系统的示意图;Figure 2 is a schematic diagram of a communication system applied to a scenario configuration method provided by an embodiment of the present application;
图3A为本申请实施例提供的通信设备的硬件结构示意图;Figure 3A is a schematic diagram of the hardware structure of a communication device provided by an embodiment of the present application;
图3B为本申请实施例提供的电子设备的硬件结构示意图;Figure 3B is a schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application;
图3C为本申请实施例提供的第二设备的软件结构框图示意图;Figure 3C is a schematic block diagram of the software structure of the second device provided by the embodiment of the present application;
图4为本申请实施例提供的场景配置方法流程示意图一;Figure 4 is a schematic flowchart 1 of the scene configuration method provided by the embodiment of the present application;
图5为本申请实施例提供的界面示意图;Figure 5 is a schematic diagram of the interface provided by the embodiment of the present application;
图6为本申请实施例提供的场景配置方法流程示意图二;Figure 6 is a schematic flowchart 2 of the scene configuration method provided by the embodiment of the present application;
图7为本申请实施例提供的场景配置方法流程示意图三;Figure 7 is a schematic flowchart three of the scene configuration method provided by the embodiment of the present application;
图8为本申请实施例提供的场景配置方法流程示意图四;Figure 8 is a schematic flowchart 4 of the scene configuration method provided by the embodiment of the present application;
图9为本申请实施例提供的第一设备的结构示意图;Figure 9 is a schematic structural diagram of the first device provided by the embodiment of the present application;
图10为本申请实施例提供的第二设备的结构示意图。Figure 10 is a schematic structural diagram of the second device provided by the embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "above," "the" and "the" are intended to include For example, the expression "one or more" unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more than two (including two).
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized. The term "connected" includes both direct and indirect connections unless otherwise stated. “First” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features.
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of this application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the present application is not to be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
在一些场景中,智能家居系统中的设备在交付用户使用之前的安装阶段,需要装维工程师对智能家居设备进行配置和调测,该过程为智能家居系统的前装过程。在前装过程中,装维工程师通过电子设备(如手机)登录配置应用(如装应用)后,再通过电子设备中的配置应用完成智能家居系统中的智能家居设备的配置和调测。可选的,智能家居设备的配置和调测过程包括创建场景,以及对场景中的智能家居设备的状态进行配置。In some scenarios, during the installation stage before the equipment in the smart home system is delivered to users for use, installation and maintenance engineers need to configure and debug the smart home equipment. This process is the pre-installation process of the smart home system. During the pre-installation process, installation and maintenance engineers log in to the configuration application (such as installation After applying), the configuration and debugging of the smart home devices in the smart home system are completed through the configuration application in the electronic device. Optionally, the configuration and debugging process of smart home devices includes creating a scene and configuring the status of the smart home devices in the scene.
目前,蓝牙网格(Mesh)网络以其低功耗、高安全性等优势,广泛应用于情况复杂的智能家居场景、智能办公室的楼宇自动化场景等场景中,实现蓝牙Mesh网络覆盖范围内的多对多传输。其中,蓝牙Mesh网络中的设备如需实现预设的场景功能,也需要进行场景配置,在场景配置过程中,需要依次完成正在配置的场景中包括的设备的状态配置。At present, Bluetooth mesh (Mesh) network is widely used in complex smart home scenarios, smart office building automation scenarios and other scenarios due to its advantages such as low power consumption and high security. It realizes multiple scenarios within the coverage of Bluetooth Mesh network. To-many transmission. Among them, if the devices in the Bluetooth Mesh network need to implement preset scene functions, they also need to perform scene configuration. During the scene configuration process, the status configuration of the devices included in the scene being configured needs to be completed in sequence.
示例性的,以配置智能家居场景中的“回家场景”为例,如在“回家场景”中,用户期待开启客厅灯、饮水机以及客厅音箱。那么在前装过程中,工程师通过电子设备(如手机等)登录配置应用,开始创建蓝牙Mesh网络中的智能家居设备对应的“回家场景”。如图1所示,手机响应于工程师的操作,向客厅灯发送创建组的指示信息,用于指示客厅灯创建场景(即步骤1.1)。 之后,手机向客厅灯发送设置状态的指示信息,用于配置客厅灯在“回家场景”中的状态参数,如开启、亮度等状态参数的设置信息(即步骤1.2)。最后,手机向客厅灯发送保存组的指示信息,用于指示客厅灯保存当前创建的场景对应的设置状态(即步骤1.3),从而完成“回家场景”中客厅灯的状态参数配置。之后,同上述步骤1.1-步骤1.3,手机响应于工程师在配置应用中的操作,通过步骤2.1-步骤2.3完成饮水机的状态参数配置,以及通过步骤3.1-步骤3.3完成客厅音箱的状态参数配置,从而完成“回家场景”的创建。As an example, take the "go home scene" in the smart home scene configuration. For example, in the "go home scene", the user expects to turn on the living room lights, water dispenser, and living room speakers. Then during the pre-installation process, engineers log in to the configuration application through electronic devices (such as mobile phones, etc.) and begin to create a "home scene" corresponding to the smart home devices in the Bluetooth Mesh network. As shown in Figure 1, in response to the engineer's operation, the mobile phone sends instruction information to create a group to the living room lamp, which is used to instruct the living room lamp to create a scene (that is, step 1.1). After that, the mobile phone sends the setting status indication information to the living room lamp, which is used to configure the status parameters of the living room lamp in the "going home scene", such as the setting information of the status parameters such as turning on and brightness (ie, step 1.2). Finally, the mobile phone sends the instruction information of the save group to the living room lamp, which is used to instruct the living room lamp to save the setting status corresponding to the currently created scene (i.e. step 1.3), thereby completing the status parameter configuration of the living room lamp in the "go home scene". After that, the same as steps 1.1 to 1.3 above, the mobile phone responds to the engineer's operation in the configuration application and completes the status parameter configuration of the water dispenser through steps 2.1 to 2.3, and completes the status parameter configuration of the living room speaker through steps 3.1 to 3.3. This completes the creation of the "go home scene".
可以看出,蓝牙Mesh网络中场景创建过程复杂,若待配置的场景中所需的任一设备未在线,就会导致该场景创建失败。并且,即使待配置的设备均在线,也需要一一配置场景中的各个设备的状态参数,随着待配置场景和待配置场景中设备的数量的增多,场景配置过程耗时增加。It can be seen that the scene creation process in the Bluetooth Mesh network is complicated. If any device required in the scene to be configured is not online, the scene creation will fail. Moreover, even if all the devices to be configured are online, the status parameters of each device in the scene need to be configured one by one. As the number of scenes to be configured and devices in the scene to be configured increases, the scene configuration process becomes more time-consuming.
例如,由于场景中需要配置的设备的数量较多,单个场景配置至少需要60秒左右的时间。而在一般的智能家居场景中,待配置的场景数量为20个-30个。那么,在前装过程中,场景配置时间占用至少为20分钟-30分钟。耗时过长,影响智能家居场景的前装效率。For example, due to the large number of devices that need to be configured in the scene, it takes at least 60 seconds to configure a single scene. In a general smart home scenario, the number of scenarios to be configured is 20-30. Then, during the pre-installation process, the scene configuration time takes at least 20 minutes to 30 minutes. It takes too long and affects the pre-installation efficiency of smart home scenarios.
由此,本申请实施例提供一种场景配置方法。在场景配置过程中,第一设备获取场景配置文件,场景配置文件中包括智能家居设备的在线情况,第一设备向在线的智能家居设备下发场景配置文件中该智能家居设备对应的场景配置信息,完成场景的配置。这样,在前装过程中,工程师只需通过电子设备将场景配置文件下发到第一设备,即可实现自动的场景配置,从而有效减少前装过程中,场景配置耗时,提高场景配置的成功率。Therefore, the embodiment of the present application provides a scene configuration method. During the scene configuration process, the first device obtains the scene configuration file. The scene configuration file includes the online status of the smart home device. The first device delivers the scene configuration information corresponding to the smart home device in the scene configuration file to the online smart home device. , complete the scene configuration. In this way, during the pre-installation process, engineers only need to send the scene configuration file to the first device through electronic equipment to achieve automatic scene configuration, thereby effectively reducing the time-consuming scene configuration during the pre-installation process and improving the efficiency of scene configuration. Success rate.
图2为本申请实施例提供的场景配置应用的通信系统的示意图。如图2所示,该通信系统包括第一设备100、第二设备200、第三设备300、以及第四设备400。Figure 2 is a schematic diagram of a communication system for scenario configuration application provided by an embodiment of the present application. As shown in FIG. 2 , the communication system includes a first device 100 , a second device 200 , a third device 300 , and a fourth device 400 .
可选的,第一设备100例如为蓝牙网关,用于管理和控制智能家居系统中的设备(如第三设备300)。可选的,第一设备100可以为独立的蓝牙网关,或者为智能家居系统的控制中心(如智能家居控制面板等)中配置的具有蓝牙网关功能的模块。本申请对第一设备100的具体类型不作限制。Optionally, the first device 100 is, for example, a Bluetooth gateway, used to manage and control devices in the smart home system (such as the third device 300). Optionally, the first device 100 may be an independent Bluetooth gateway, or a module with a Bluetooth gateway function configured in a control center of a smart home system (such as a smart home control panel, etc.). This application does not limit the specific type of the first device 100.
可选的,第二设备200为装维工程师使用的设备。例如可以为手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴设备、人工智能(artificial intelligence,AI)设备等终端设备,第二设备200安装的操作系统包括但不限于或者其它操作系统。本申请对第二设备200的具体类型、所安装的操作系统均不作限制。Optionally, the second device 200 is a device used by installation and maintenance engineers. For example, it can be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, or artificial intelligence (AI). equipment and other terminal equipment, the operating system installed on the second device 200 includes but is not limited to or other operating systems. This application does not limit the specific type of the second device 200 or the operating system installed.
可选的,第三设备300例如可以为智能家居设备、手机、平板电脑、笔记本电脑、上网本、PDA、可穿戴设备、AI设备等终端设备。其中,智能家居设备例如包括音视频设备(如大屏设备、音箱等)、照明设备(如台灯、电灯、助眠灯等)、环境控制设备(如空气净化器、扫地机等)、安防系统设备(如摄像头、智能门锁等)、厨电类设备(如饮水机、烤箱、洗碗机等)、智能传感器等。Optionally, the third device 300 may be, for example, a smart home device, a mobile phone, a tablet, a laptop, a netbook, a PDA, a wearable device, an AI device and other terminal devices. Among them, smart home equipment includes, for example, audio and video equipment (such as large-screen equipment, speakers, etc.), lighting equipment (such as desk lamps, electric lamps, sleep aids, etc.), environmental control equipment (such as air purifiers, sweepers, etc.), and security systems. Equipment (such as cameras, smart door locks, etc.), kitchen appliances (such as water dispensers, ovens, dishwashers, etc.), smart sensors, etc.
第三设备300安装的操作系统包括但不限于或者其它操作系统。第三设备300也可以不安装有操作系统。本申请对第三设备300的具体类型、有无安装操作系统、在有安装操作系统下操作系统的类型均不作限制。The operating systems installed on the third device 300 include but are not limited to or other operating systems. The third device 300 may not have an operating system installed. This application does not limit the specific type of the third device 300, whether or not an operating system is installed, or the type of operating system if the operating system is installed.
可选的,第四设备400例如为智能家居系统中枢,第三设备300可通过第四设备400接入智能家居云,第四设备400例如为路由器等设备。本申请对第四设备400的具体类型、所安装的操作系统均不作限制。Optionally, the fourth device 400 is, for example, a smart home system hub. The third device 300 can access the smart home cloud through the fourth device 400. The fourth device 400 is, for example, a router or other device. This application does not limit the specific type of the fourth device 400 or the operating system installed.
在一些实施例中,第一设备100和第四设备400之间,以及第二设备200和第四设备400之间建立有第一类通信连接。其中,第一类通信连接可以为无线通信连接。其中,建立无线通信连接的无线通信技术包括但不限于以下的至少一种:无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT)(例如,传统蓝牙或者低功耗(bluetooth low energy,BLE)蓝牙),近距离无线通信(near field communication,NFC),紫蜂(Zigbee),调频(frequency modulation,FM),红外(infrared,IR)等。In some embodiments, a first type of communication connection is established between the first device 100 and the fourth device 400, and between the second device 200 and the fourth device 400. Wherein, the first type of communication connection may be a wireless communication connection. Among them, the wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (bluetooth, BT) (for example, traditional Bluetooth or low energy (bluetooth low energy, BLE) Bluetooth), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (infrared) , IR) etc.
在一些实施例中,第一设备100和第三设备300之间建立有第二类通信连接。其中,第二通信连接例如为蓝牙连接。可选的,第一设备100和第三设备300组成蓝牙Mesh网络。 In some embodiments, a second type of communication connection is established between the first device 100 and the third device 300 . The second communication connection is, for example, a Bluetooth connection. Optionally, the first device 100 and the third device 300 form a Bluetooth Mesh network.
一些示例中,第二设备200可通过登录第二设备200中安装的配置应用,执行前装过程中的场景配置过程。In some examples, the second device 200 can perform the scene configuration process in the pre-installation process by logging in to the configuration application installed in the second device 200 .
其中,配置应用具有在前装过程中配置和调测智能家居设备、场景创建的功能。比如,配置应用为装应用。Among them, the configuration application has the function of configuring and debugging smart home devices and creating scenes during the pre-installation process. For example, configure the application to install application.
可选的,本申请实施例中的第一设备100或第四设备400可以通过不同的设备实现。例如,本申请实施例中的第一设备100或第四设备400可通过图3A中的通信设备来实现。图3A所示为本申请实施例提供的通信设备的硬件结构示意图。该通信设备包括至少一个处理器301,通信线路302,存储器303以及至少一个通信接口304。其中,存储器303还可以包括于处理器301中。Optionally, the first device 100 or the fourth device 400 in the embodiment of this application can be implemented by different devices. For example, the first device 100 or the fourth device 400 in the embodiment of the present application can be implemented by the communication device in FIG. 3A. Figure 3A shows a schematic diagram of the hardware structure of a communication device provided by an embodiment of the present application. The communication device includes at least one processor 301, communication line 302, memory 303 and at least one communication interface 304. Among them, the memory 303 may also be included in the processor 301.
处理器301可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 301 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
通信线路302可包括一个或多个通路,在上述组件之间传送信息。Communication lines 302 may include one or more pathways that carry information between the components described above.
通信接口304,用于与其他设备通信。在本申请实施例中,通信接口可以是模块、电路、总线、接口、收发器或者其它能实现通信功能的装置,用于与其他设备通信。可选的,当通信接口是收发器时,该收发器可以为独立设置的发送器,该发送器可用于向其他设备发送信息,该收发器也可以为独立设置的接收器,用于从其他设备接收信息。该收发器也可以是将发送、接收信息功能集成在一起的部件,本申请实施例对收发器的具体实现不做限制。Communication interface 304, used to communicate with other devices. In this embodiment of the present application, the communication interface may be a module, a circuit, a bus, an interface, a transceiver, or other devices that can implement communication functions for communicating with other devices. Optionally, when the communication interface is a transceiver, the transceiver can be an independently configured transmitter, which can be used to send information to other devices. The transceiver can also be an independently configured receiver, which can be used to receive information from other devices. The device receives the information. The transceiver may also be a component that integrates the functions of sending and receiving information. The embodiments of this application do not limit the specific implementation of the transceiver.
存储器303可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路302与处理器相连接。存储器也可以和处理器集成在一起。The memory 303 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions. A dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or can be used to carry or store instructions or data structures. The desired program code and any other medium capable of being accessed by a computer, without limitation. The memory may exist independently and be connected to the processor through a communication line 302 . Memory can also be integrated with the processor.
其中,存储器303用于存储用于实现本申请方案的计算机执行指令,并由处理器301来控制执行。处理器301用于执行存储器303中存储的计算机执行指令,从而实现本申请下述实施例提供的数据处理方法。Among them, the memory 303 is used to store computer execution instructions for implementing the solution of the present application, and is controlled by the processor 301 for execution. The processor 301 is used to execute computer execution instructions stored in the memory 303, thereby implementing the data processing method provided by the following embodiments of the present application.
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码、指令、计算机程序或者其它名称,本申请实施例对此不作具体限定。Optionally, the computer execution instructions in the embodiments of the present application may also be called application codes, instructions, computer programs or other names, which are not specifically limited in the embodiments of the present application.
在一些实施例中,通信设备(如为第一设备100)通过第四设备400接收第二设备200发送的场景配置文件,并通过存储器303保存该场景配置文件。之后,第一设备100通过处理器301确定第三设备300的在线情况。若第三设备300在线,第一设备100根据场景配置文件向第三设备300发送场景创建指令,完成该第三设备300的场景配置。若第三设备300未在线,可待第三设备300上线后,第一设备100再根据场景配置文件向该后上线的第三设备300发送场景创建指令,以完成该后上线的第三设备300的场景配置。In some embodiments, the communication device (eg, the first device 100 ) receives the scene configuration file sent by the second device 200 through the fourth device 400 , and saves the scene configuration file through the memory 303 . Afterwards, the first device 100 determines the online status of the third device 300 through the processor 301. If the third device 300 is online, the first device 100 sends a scene creation instruction to the third device 300 according to the scene configuration file to complete the scene configuration of the third device 300 . If the third device 300 is not online, after the third device 300 comes online, the first device 100 sends a scene creation instruction to the third device 300 that comes online later according to the scene configuration file to complete the third device 300 that comes online later. scene configuration.
在具体实现中,作为一种实施例,处理器301可以包括一个或多个CPU,例如图3A中的CPU0和CPU1。In specific implementation, as an embodiment, the processor 301 may include one or more CPUs, such as CPU0 and CPU1 in Figure 3A.
在具体实现中,作为一种实施例,通信设备可以包括多个处理器,例如图3A中的处理器301和处理器307。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In specific implementation, as an embodiment, the communication device may include multiple processors, such as the processor 301 and the processor 307 in Figure 3A. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在具体实现中,作为一种实施例,通信设备还可以包括输出设备305和输入设备306。输出设备305和处理器301通信,可以以多种方式来显示信息。例如,输出设备305可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备306和处理器301通信,可以以多种方式接收用户的输入。例如,输入设备306可以是鼠标、键盘、触摸屏设备或传感设备等。In specific implementation, as an embodiment, the communication device may also include an output device 305 and an input device 306. Output device 305 communicates with processor 301 and can display information in a variety of ways. For example, the output device 305 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. wait. Input device 306 communicates with processor 301 and can receive user input in a variety of ways. For example, the input device 306 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
可选的,本申请实施例中的第二设备200或第三设备300可以通过不同的设备实现。例如, 本申请实施例中的第二设备200或第三设备300可通过图3B中的电子设备来实现。图3B所示为本申请实施例提供的电子设备的硬件结构示意图。Optionally, the second device 200 or the third device 300 in the embodiment of this application can be implemented by different devices. For example, The second device 200 or the third device 300 in the embodiment of the present application can be implemented by the electronic device in Figure 3B. FIG. 3B shows a schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application.
电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc. .
可以理解的是,本申请实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic equipment. In other embodiments of the present application, the electronic device may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备充电,也可以用于电子设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他第一电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other first electronic devices, such as AR devices.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为第一电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. While charging the battery 142, the charging management module 140 can also provide power to the first electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制 成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into medium and high frequency signals. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through the audio device, or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems for use in electronic devices. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device implements display functions through the GPU, display screen 194, and application processor. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
在一些实施例中,电子设备(如为第二设备200)响应于用户操作,启动配置应用后,在显示屏194上显示配置应用。之后,响应于用户在显示屏194上的操作,第二设备200进行场景的配置,生成场景配置文件。最后,第二设备200将场景配置文件通过无线通信模块160发送到第一设备100,以便于后续第一设备100响应于第三设备300的在线情况,完成场景的配置。In some embodiments, the electronic device (such as the second device 200) responds to a user operation and displays the configuration application on the display screen 194 after starting the configuration application. Afterwards, in response to the user's operation on the display screen 194, the second device 200 configures the scene and generates a scene configuration file. Finally, the second device 200 sends the scene configuration file to the first device 100 through the wireless communication module 160, so that the first device 100 can subsequently complete the scene configuration in response to the online status of the third device 300.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function), etc. The storage data area can store data (such as audio data) created during the use of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory. The processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals.
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
马达191可以产生振动提示。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。The motor 191 can generate vibration prompts. The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
第二设备200的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明第二设备200的软件结构。 The software system of the second device 200 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. This embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the second device 200 .
图3C是本申请实施例的第二设备200的软件结构框图。Figure 3C is a software structure block diagram of the second device 200 according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图3C所示,应用程序包可以包括配置应用,应用市场,相机,日历,音乐,图库,地图,通话,视频等应用程序。As shown in Figure 3C, the application package can include configuration applications, application market, camera, calendar, music, gallery, map, call, video and other applications.
一些示例中,配置应用具有在前装过程中配置和调测智能家居设备、场景创建的功能。比如,配置应用为装应用。In some examples, the configuration application has the function of configuring and debugging smart home devices and creating scenes during the pre-installation process. For example, configure the application to install application.
示例性的,第二设备200响应于用户操作,启动配置应用。之后,第二设备200接收用户在配置应用中的操作,创建对应的场景,并可生成相应的场景配置文件。Exemplarily, the second device 200 starts the configuration application in response to the user operation. Afterwards, the second device 200 receives the user's operation in the configuration application, creates the corresponding scene, and can generate the corresponding scene configuration file.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3C所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 3C, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供第二设备200的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the second device 200 . For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), three-dimensional graphics processing libraries (for example: OpenGL ES), two-dimensional graphics engines (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
二维图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
以下以第一设备100蓝牙网关,第二设备200为手机,第三设备300为智能家居设备,第四设备400为智能家居系统中枢,场景配置方法应用于智能家居场景为例,对本申请实施例提供的场景配置方法进行详细介绍。 The following takes the first device 100 as a Bluetooth gateway, the second device 200 as a mobile phone, the third device 300 as a smart home device, and the fourth device 400 as a smart home system hub. The scene configuration method is applied to a smart home scene as an example. The embodiments of the present application The provided scene configuration methods are introduced in detail.
示例性的,图4为本申请实施例提供的场景配置方法的流程示意图。如图4所示,该方法包括如下步骤。Exemplarily, FIG. 4 is a schematic flowchart of a scene configuration method provided by an embodiment of the present application. As shown in Figure 4, the method includes the following steps.
S41、手机获取场景配置文件。S41. The mobile phone obtains the scene configuration file.
其中,场景配置文件用于配置智能家居系统中的一个或多个场景。可选的,场景配置文件中例如包括场景标识(identity,ID)、场景ID对应的场景中包括的智能家居设备信息、智能家居设备的场景配置信息等中的一项或几项。Among them, the scene configuration file is used to configure one or more scenes in the smart home system. Optionally, the scene configuration file includes, for example, one or more of a scene identification (identity, ID), smart home device information included in the scene corresponding to the scene ID, scene configuration information of the smart home device, and the like.
可选的,智能家居设备信息例如为媒体访问控制(media access control,MAC)地址等用于标识智能家居设备的信息。Optionally, the smart home device information is, for example, media access control (media access control, MAC) address and other information used to identify the smart home device.
可选的,场景配置信息例如包括用于配置智能家居设备状态的状态参数,如开关状态参数、色温状态参数、亮度状态参数、温度状态参数、运行时间状态参数等。不同场景中相同的智能家居设备的场景配置信息相同或不相同,不同场景中不同的智能家居设备的场景配置信息相同或不相同。Optionally, the scene configuration information includes, for example, status parameters used to configure the status of smart home devices, such as switch status parameters, color temperature status parameters, brightness status parameters, temperature status parameters, running time status parameters, etc. The scene configuration information of the same smart home device in different scenes may be the same or different, and the scene configuration information of different smart home devices in different scenes may be the same or different.
在一些实施例中,智能家居设备(如图2所示的第三设备300)接入蓝牙网关(如图2所示的第一设备100),蓝牙网关又接入智能家居系统中枢(如图2所示的第四设备400),或者智能家居设备可直接接入智能家居系统中枢。那么,智能家居系统中枢可获取智能家居系统中各个智能家居设备的MAC地址。后续,手机(如图2所示的第二电子设备200)接入智能家居系统中枢后,可获取到各个智能家居设备的MAC地址。这样,在场景创建的过程中,手机可确定智能家居系统中存在哪些智能家居设备,以及各个智能家居设备的MAC地址。可选的,手机还可确定在场景创建过程中,各个智能家居设备是否在线。In some embodiments, the smart home device (the third device 300 shown in Figure 2) is connected to the Bluetooth gateway (the first device 100 shown in Figure 2), and the Bluetooth gateway is connected to the smart home system hub (Figure 2). The fourth device 400 shown in 2), or the smart home device can be directly connected to the smart home system hub. Then, the smart home system hub can obtain the MAC address of each smart home device in the smart home system. Subsequently, after the mobile phone (the second electronic device 200 shown in Figure 2) is connected to the smart home system hub, the MAC address of each smart home device can be obtained. In this way, during the scene creation process, the mobile phone can determine which smart home devices exist in the smart home system and the MAC address of each smart home device. Optionally, the mobile phone can also determine whether each smart home device is online during the scene creation process.
在一些实施例中,手机响应于用户(如装维工程师)操作,启动配置应用,并在配置应用上接收用户的场景配置操作,以生成相应的场景配置文件。或者,手机响应于用户操作,直接从服务器等设备中,获取到场景配置文件。In some embodiments, the mobile phone responds to user (such as installation and maintenance engineer) operations, starts a configuration application, and receives the user's scene configuration operation on the configuration application to generate a corresponding scene configuration file. Or, in response to user operations, the mobile phone directly obtains the scene configuration file from a server or other device.
示例性的,响应于用户操作,手机启动配置应用,并显示如图5中(a)所示的界面501。在界面501上,用户可进行场景配置,如创建新的场景、添加新创建的场景中的设备、调整场景中的设备参数等。手机检测到用户点击选择控件51的操作,确定将客厅中的4个重点照明设备添加到场景中,之后手机可显示如图5中(b)所示界面502,在界面502上显示被选中的设备,如调光灯01、调光灯02、调光灯03、以及调光灯04。在界面502上,手机还可接收用户对已添加到场景中的设备的参数设置操作,如手机检测到用户点击调光灯01控件52的操作,显示如图5中(c)所示界面503。在界面503上,显示弹窗53。在弹窗53中,手机显示调光灯1的可调状态参数。如弹窗53所示,响应于用户操作,手机确定当前创建的场景中包括打开调光灯01。可选的,用户可在界面502上完成智能家居设备的选择以及智能家居设备的状态参数设置。之后,如图5中(d)所示界面504,响应于用户点击保存控件54的操作,手机保存用户创建的场景,生成相应的场景配置文件。Exemplarily, in response to user operation, the mobile phone starts the configuration application and displays interface 501 as shown in (a) of Figure 5 . On the interface 501, the user can perform scene configuration, such as creating a new scene, adding devices in the newly created scene, adjusting device parameters in the scene, etc. The mobile phone detects the user's click on the selection control 51 and determines to add the four accent lighting devices in the living room to the scene. After that, the mobile phone can display the interface 502 as shown in Figure 5(b), and display the selected items on the interface 502. Devices, such as dimmer lamp 01, dimmer lamp 02, dimmer lamp 03, and dimmer lamp 04. On the interface 502, the mobile phone can also receive the user's parameter setting operation for the device that has been added to the scene. For example, the mobile phone detects the user's operation of clicking the dimming light 01 control 52, and displays the interface 503 as shown in (c) in Figure 5. . On the interface 503, a pop-up window 53 is displayed. In the pop-up window 53, the mobile phone displays the adjustable status parameters of the dimming lamp 1. As shown in the pop-up window 53, in response to the user operation, the mobile phone determines that the currently created scene includes turning on the dimming light 01. Optionally, the user can complete the selection of smart home devices and setting the status parameters of the smart home devices on the interface 502. After that, in the interface 504 shown in (d) of Figure 5, in response to the user clicking the save control 54, the mobile phone saves the scene created by the user and generates the corresponding scene configuration file.
又示例性的,如图2所示,手机通过配置应用创建的场景包括场景1和场景2,并且如下表1所示,手机可生成相应的配置文件。比如,如下表1所示,场景配置文件中包括场景1,场景1中包括的客厅灯的MAC地址、饮水机的MAC地址、客厅音箱的MAC地址,为实现场景1的客厅灯的场景配置信息、饮水机的场景配置信息、客厅音箱的场景配置信息;以及场景配置文件中包括场景2,场景2中包括的扫地机的MAC地址和空气净化器的MAC地址,为实现场景2的扫地机的场景配置信息和空气净化器的场景配置信息。As another example, as shown in Figure 2, the scenarios created by the mobile phone through the configuration application include scenario 1 and scenario 2, and as shown in Table 1 below, the mobile phone can generate the corresponding configuration file. For example, as shown in Table 1 below, the scene configuration file includes scene 1. The MAC address of the living room lamp, the MAC address of the water dispenser, and the MAC address of the living room speaker included in scene 1 are the scene configuration information of the living room lamp to implement scene 1. , the scene configuration information of the water dispenser, the scene configuration information of the living room speaker; and the scene configuration file includes scene 2. The MAC address of the sweeper and the MAC address of the air purifier included in scene 2 are used to implement the sweeping machine in scene 2. Scene configuration information and scene configuration information of the air purifier.
表1

Table 1

S42、手机向蓝牙网关发送场景配置文件。S42. The mobile phone sends the scene configuration file to the Bluetooth gateway.
在一些实施例中,手机在确定场景配置文件后,可向蓝牙网关发送该场景配置文件。相应的,蓝牙网关接收手机发送的场景配置文件。In some embodiments, after determining the scene configuration file, the mobile phone may send the scene configuration file to the Bluetooth gateway. Correspondingly, the Bluetooth gateway receives the scene configuration file sent by the mobile phone.
可选的,手机按照指定格式(如JASON格式等)将场景配置文件传输至蓝牙网关。Optionally, the mobile phone transmits the scene configuration file to the Bluetooth gateway in a specified format (such as JASON format, etc.).
示例性的,如图2所示,手机(即第二设备200)和蓝牙网关(即第一设备100)均接入智能家居系统中枢(即第四设备400),如手机和蓝牙网关均接入智能家居系统中枢提供的Wi-Fi网络。那么,手机可通过Wi-Fi网络向蓝牙网关发送场景配置文件。For example, as shown in Figure 2, both the mobile phone (ie, the second device 200) and the Bluetooth gateway (ie, the first device 100) are connected to the smart home system hub (ie, the fourth device 400). Connect to the Wi-Fi network provided by the smart home system hub. Then, the mobile phone can send the scene configuration file to the Bluetooth gateway through the Wi-Fi network.
S43、蓝牙网关保存场景配置文件。S43. The Bluetooth gateway saves the scene configuration file.
在一些实施例中,蓝牙网关接收到场景配置文件后,可保存该场景配置文件,以便于后续进行场景配置。In some embodiments, after receiving the scene configuration file, the Bluetooth gateway can save the scene configuration file to facilitate subsequent scene configuration.
在一些实施例中,蓝牙网关保存场景配置文件后,可确定场景配置文件中待配置的场景中的智能家居设备,设置这些待配置的智能家居设备的状态为未保存场景(scene)状态。In some embodiments, after the Bluetooth gateway saves the scene configuration file, it can determine the smart home devices in the scene to be configured in the scene configuration file, and set the status of these smart home devices to be configured to the unsaved scene state.
S44、蓝牙网关根据待配置的智能家居设备在线情况,自动完成场景配置。S44. The Bluetooth gateway automatically completes scene configuration according to the online status of the smart home device to be configured.
在一些实施例中,蓝牙网关根据场景配置文件,获取待配置场景中包括的智能家居设备的MAC地址,进而确定待配置场景所需的智能家居设备是否在线。若待配置的智能家居设备在线,可指示在线的待配置的智能家居设备完成场景的配置;若待配置的智能家居设备不在线,可在不在线的待配置的智能家居设备上线后,再指示该待配置的智能家居设备完成场景的配置。In some embodiments, the Bluetooth gateway obtains the MAC address of the smart home device included in the scene to be configured according to the scene configuration file, and then determines whether the smart home device required for the scene to be configured is online. If the smart home device to be configured is online, you can instruct the online smart home device to be configured to complete the scene configuration; if the smart home device to be configured is not online, you can instruct the offline smart home device to be configured after it comes online. The smart home device to be configured completes the configuration of the scene.
在一些实施例中,蓝牙网关在确定待配置场景中的智能家居设备已完成场景配置后,可设置这些完成场景配置的智能家居设备的状态为已保存场景状态。In some embodiments, after determining that the smart home devices in the scene to be configured have completed scene configuration, the Bluetooth gateway may set the status of these smart home devices that have completed scene configuration to the saved scene state.
这样,蓝牙网关根据智能家居设备的状态可确定哪些智能家居设备已完成场景配置,哪些智能家居设备还需要进行场景配置。In this way, the Bluetooth gateway can determine which smart home devices have completed scene configuration and which smart home devices still need scene configuration based on the status of the smart home devices.
如此,在前装过程中,手机向蓝牙网关发送场景配置文件后,可确定前装过程中的场景配置完成,从而有效降低场景配置时间,提高场景配置效率。In this way, during the pre-installation process, after the mobile phone sends the scene configuration file to the Bluetooth gateway, it can be determined that the scene configuration during the pre-installation process is completed, thereby effectively reducing the scene configuration time and improving scene configuration efficiency.
可选的,如图6所示,步骤S44包括步骤S441和/或步骤S442。Optionally, as shown in Figure 6, step S44 includes step S441 and/or step S442.
一些示例中,蓝牙网关确定智能家居设备在线,执行步骤S441,步骤S441包括步骤S4411-步骤S4413。In some examples, the Bluetooth gateway determines that the smart home device is online and executes step S441. Step S441 includes steps S4411 to S4413.
S4411、蓝牙网关确定场景配置文件对应的智能家居设备A在线。S4411. The Bluetooth gateway determines that the smart home device A corresponding to the scene configuration file is online.
其中,智能家居设备A用于表示待配置场景中在线的智能家居设备。可选的,智能家居设备在线例如表示智能家居设备已开机,且处于可通信状态。Among them, smart home device A is used to represent an online smart home device in the scene to be configured. Optionally, the smart home device is online, for example, indicating that the smart home device is powered on and is in a communicable state.
可选的,蓝牙网关用于管理和控制连接的智能家居设备。因此,蓝牙网关可获知智能家居设备的在线情况。Optionally, a Bluetooth gateway is used to manage and control connected smart home devices. Therefore, the Bluetooth gateway can learn the online status of smart home devices.
在一些实施例中,蓝牙网关在接收到场景配置文件中后,可确定场景配置文件中待配置的场景,以及待配置的场景中包括的智能家居设备。那么,蓝牙网关可确定待配置场景中的智能家居设备是否在线,如确定其中在线的智能家居设备A。In some embodiments, after receiving the scene configuration file, the Bluetooth gateway may determine the scene to be configured in the scene configuration file and the smart home devices included in the scene to be configured. Then, the Bluetooth gateway can determine whether the smart home device in the scene to be configured is online, for example, determine whether the smart home device A is online.
S4412、蓝牙网关向智能家居设备A发送场景创建指令,该场景创建指令中携带有场景配置信息。S4412. The Bluetooth gateway sends a scene creation instruction to smart home device A. The scene creation instruction carries scene configuration information.
在一些实施例中,蓝牙网关在确定待配置场景中的智能家居设备的在线情况后,向其中在线的智能家居设备A发送场景创建指令,用于指示智能家居设备A创建场景,并保存相应的场景配置信息,该场景配置信息用于智能家居设备A在创建的场景中使用,以设置相应的状态参数。相应的,智能家居设备A接收蓝牙网关发送的场景创建指令。In some embodiments, after determining the online status of the smart home device in the scene to be configured, the Bluetooth gateway sends a scene creation instruction to the online smart home device A to instruct the smart home device A to create a scene and save the corresponding Scene configuration information, which is used by smart home device A in the created scene to set corresponding status parameters. Correspondingly, smart home device A receives the scene creation instruction sent by the Bluetooth gateway.
示例性的,如上表1所示,蓝牙网关确定场景1中包括的客厅灯不在线、饮水机在线、客厅音箱不在线。那么,蓝牙网关可根据饮水机的MAC地址,向饮水机发送场景创建指令,并在该场景创建指令中携带用于设置场景1中的饮水机状态的场景配置信息,如包括开关状态参数。For example, as shown in Table 1 above, the Bluetooth gateway determines that the living room lights included in scenario 1 are not online, the water dispenser is online, and the living room speakers are not online. Then, the Bluetooth gateway can send a scene creation instruction to the water dispenser based on the MAC address of the water dispenser, and the scene creation instruction carries scene configuration information for setting the status of the water dispenser in scene 1, such as switch status parameters.
在一些实施例中,场景配置文件中可包括多个场景的场景配置文件,多个场景配置文件中可 包括用于配置相同智能家居设备的相同或不相同的场景配置信息。那么,蓝牙网关在向智能家居设备发送的场景创建指令中还携带有场景ID。这样,智能家居设备如接收到多个场景创建指令,能够其中携带的根据场景ID,确定对应的场景配置信息,便于后续执行相应场景ID的场景。In some embodiments, the scene configuration file may include scene configuration files for multiple scenes, and the multiple scene configuration files may Includes the same or different scene configuration information used to configure the same smart home device. Then, the Bluetooth gateway also carries the scene ID in the scene creation command sent to the smart home device. In this way, if a smart home device receives multiple scene creation instructions, it can determine the corresponding scene configuration information based on the scene ID carried therein, so as to facilitate the subsequent execution of the scene with the corresponding scene ID.
比如,场景配置文件中包括用于配置“回家场景”的场景配置文件1和用于配置“娱乐场景”的场景配置文件2。其中,场景配置文件1中包括用于配置客厅灯的场景配置信息为亮度状态参数为亮度1,场景配置文件2中包括用于配置客厅灯的场景配置信息为亮度状态参数为亮度2。那么,蓝牙网关在确定客厅灯在线的情况下,向客厅灯发送场景的创建指令1携带有“回家场景”的场景ID和对应的场景配置信息,以及向客厅灯发送场景的创建指令2携带有“娱乐场景”的场景ID和对应的场景配置信息。For example, the scene configuration file includes scene configuration file 1 for configuring the "go home scene" and scene configuration file 2 for configuring the "entertainment scene". Among them, scene configuration file 1 includes scene configuration information for configuring the living room lamp as the brightness status parameter is brightness 1, and scene configuration file 2 includes scene configuration information for configuring the living room lamp as the brightness status parameter is brightness 2. Then, when the Bluetooth gateway determines that the living room lamp is online, it sends scene creation instruction 1 carrying the scene ID of the "go home scene" and the corresponding scene configuration information to the living room lamp, and sends scene creation instruction 2 to the living room lamp carrying There is the scene ID of "entertainment scene" and the corresponding scene configuration information.
S4413、智能家居设备A保存场景配置信息。S4413. Smart home device A saves scene configuration information.
在一些实施例中,智能家居设备A在接收到蓝牙网关发送的场景创建指令后,保存其中携带的场景配置信息。这样后续智能家居设备A能够响应于蓝牙网关的指示,根据场景配置信息,实现相应的场景。In some embodiments, after receiving the scene creation instruction sent by the Bluetooth gateway, smart home device A saves the scene configuration information carried therein. In this way, the subsequent smart home device A can respond to the instructions of the Bluetooth gateway and implement the corresponding scene according to the scene configuration information.
另一些示例中,蓝牙网关确定智能家居设备不在线,执行步骤S442,步骤S442包括步骤S4421-步骤S4423。In other examples, the Bluetooth gateway determines that the smart home device is not online and executes step S442. Step S442 includes steps S4421 to S4423.
S4421、蓝牙网关确定场景配置文件对应的智能家居设备B上线。S4421. The Bluetooth gateway determines that the smart home device B corresponding to the scene configuration file is online.
其中,智能家居设备B用于表示待配置场景中不在线的智能家居设备。可选的,智能家居设备不在线例如表示智能家居设备未开机,或处于不可通信状态。Among them, smart home device B is used to represent an offline smart home device in the scenario to be configured. Optionally, if the smart home device is not online, for example, it means that the smart home device is not powered on, or is in a non-communicable state.
在一些实施例中,蓝牙网关在接收到场景配置文件中后,可确定场景配置文件中待配置的场景,以及待配置的场景中包括的智能家居设备。那么,蓝牙网关可确定待配置场景中的智能家居设备是否在线,如确定其中不在线的智能家居设备B。In some embodiments, after receiving the scene configuration file, the Bluetooth gateway may determine the scene to be configured in the scene configuration file and the smart home devices included in the scene to be configured. Then, the Bluetooth gateway can determine whether the smart home device in the scene to be configured is online, for example, determine whether the smart home device B is not online.
之后,蓝牙网关可监控智能家居设备B的在线情况,如确定智能家居设备B上线后,可再根据保存的场景配置文件,配置智能家居设备B。Afterwards, the Bluetooth gateway can monitor the online status of smart home device B. If it is determined that smart home device B is online, smart home device B can be configured according to the saved scene configuration file.
S4422、蓝牙网关向智能家居设备B发送场景创建指令,该场景创建指令中携带有场景配置信息。S4422. The Bluetooth gateway sends a scene creation instruction to smart home device B. The scene creation instruction carries scene configuration information.
在一些实施例中,蓝牙网关在确定待配置场景中的智能家居设备B上线后,可向智能家居设备B发送场景创建指令,用于指示智能家居设备B创建场景,并保存相应的场景配置信息,该场景配置信息用于智能家居设备B在创建的场景中使用,以设置相应的状态参数。相应的,智能家居设备B接收蓝牙网关发送的场景创建指令。In some embodiments, after determining that smart home device B in the scene to be configured is online, the Bluetooth gateway can send a scene creation instruction to smart home device B to instruct smart home device B to create a scene and save the corresponding scene configuration information. , this scene configuration information is used by smart home device B in the created scene to set corresponding status parameters. Correspondingly, smart home device B receives the scene creation instruction sent by the Bluetooth gateway.
示例性的,如上表1所示,蓝牙网关确定场景1中包括的客厅灯不在线、饮水机在线、客厅音箱不在线。蓝牙网关通过上述步骤S4412完成饮水机的场景配置,而由于客厅灯和客厅音箱不在线,无法配置场景1中的客厅灯和客厅音箱的状态参数。For example, as shown in Table 1 above, the Bluetooth gateway determines that the living room lights included in scenario 1 are not online, the water dispenser is online, and the living room speakers are not online. The Bluetooth gateway completes the scene configuration of the water dispenser through the above step S4412. However, because the living room lamp and living room speaker are not online, the status parameters of the living room lamp and living room speaker in scene 1 cannot be configured.
那么,后续如蓝牙网关监测到客厅灯上线,蓝牙网关可根据客厅灯的MAC地址,向客厅灯发送场景创建指令,并在该场景创建指令中携带用于设置场景1中的客厅灯状态参数的场景配置信息,如包括开关状态参数和亮度状态参数。Then, if the Bluetooth gateway detects that the living room lamp is online, the Bluetooth gateway can send a scene creation instruction to the living room lamp according to the MAC address of the living room lamp, and carry the scene creation instruction to set the living room lamp status parameters in scene 1. Scene configuration information, including switch status parameters and brightness status parameters.
可选的,场景创建指令中还携带有待创建场景的场景ID。Optionally, the scene creation instruction also carries the scene ID of the scene to be created.
可选的,步骤S4422的其余内容,可参考上述步骤S4412的相关内容,在此不再赘述。Optionally, for the remaining content of step S4422, reference may be made to the relevant content of step S4412 above, which will not be described again here.
S4423、智能家居设备B保存场景配置信息。S4423. Smart home device B saves scene configuration information.
在一些实施例中,智能家居设备B在接收到蓝牙网关发送的场景创建指令后,保存其中携带的场景配置信息。这样后续智能家居设备B能够响应于蓝牙网关的指示,根据场景配置信息,实现相应的场景。In some embodiments, after receiving the scene creation instruction sent by the Bluetooth gateway, smart home device B saves the scene configuration information carried therein. In this way, the subsequent smart home device B can respond to the instructions of the Bluetooth gateway and implement the corresponding scene according to the scene configuration information.
如此,手机响应于用户操作,将场景配置文件发送到蓝牙网关,由蓝牙网关完成场景的配置,这样无论待配置场景中的智能家居设备是否在线,均可完成前装过程中的场景配置流程,提高前装过程中的场景配置效率。In this way, the mobile phone responds to the user operation and sends the scene configuration file to the Bluetooth gateway, and the Bluetooth gateway completes the scene configuration. In this way, regardless of whether the smart home device in the scene to be configured is online or not, the scene configuration process in the pre-installation process can be completed. Improve scene configuration efficiency during pre-installation.
并且,后续蓝牙网关可根据待配置场景中的智能家居设备的在线情况,自动完成场景配置,保证场景配置的成功率。In addition, the subsequent Bluetooth gateway can automatically complete scene configuration based on the online status of the smart home devices in the scene to be configured, ensuring the success rate of scene configuration.
可选的,如图7所示,在步骤S44(如包括步骤S441和/或步骤S442)之后,还包括步骤S71- 步骤S73。Optionally, as shown in Figure 7, after step S44 (for example, including step S441 and/or step S442), steps S71- Step S73.
S71、蓝牙网关广播场景ID。S71. The Bluetooth gateway broadcasts the scene ID.
在一些实施例中,蓝牙网关可接收到控制设备(如手机、智能家居控制面板等)对场景的操作指示,如指示执行场景。比如,智能家居控制面板响应于用户操作,向蓝牙网关发送启动“回家场景”的命令,蓝牙网关可接收该命令,确定待执行的场景为“回家场景”。In some embodiments, the Bluetooth gateway can receive operation instructions for the scene from the control device (such as a mobile phone, a smart home control panel, etc.), such as an instruction to execute the scene. For example, the smart home control panel responds to the user's operation and sends a command to start the "go home scene" to the Bluetooth gateway. The Bluetooth gateway can receive the command and determine that the scene to be executed is the "go home scene".
或者,蓝牙网关可根据在上述步骤S43保存的场景配置文件,确定满足条件的待执行场景。如“回家场景”执行的条件为晚上18:00,那么蓝牙网关在确定当前时间为晚上18:00,可确定执行“回家场景”。Alternatively, the Bluetooth gateway may determine the scene to be executed that meets the conditions based on the scene configuration file saved in step S43. For example, if the execution condition of "Going Home Scenario" is 18:00 in the evening, then the Bluetooth gateway can determine to execute the "Going Home Scenario" after determining that the current time is 18:00 in the evening.
在一些实施例中,蓝牙网关在确定待执行场景后,可确定该待执行场景的场景ID。之后,蓝牙网关广播该场景ID,用于通知该场景ID对应的智能家居设备执行场景。In some embodiments, after determining the scene to be executed, the Bluetooth gateway may determine the scene ID of the scene to be executed. Afterwards, the Bluetooth gateway broadcasts the scene ID to notify the smart home device corresponding to the scene ID to execute the scene.
S72、智能家居设备A按照场景配置信息,执行相应的场景。S72. Smart home device A executes the corresponding scene according to the scene configuration information.
S73、智能家居设备B按照场景配置信息,执行相应的场景。S73. Smart home device B executes the corresponding scene according to the scene configuration information.
在一些实施例中,在步骤S72和步骤S73中,智能家居设备A和智能家居设备B监听到蓝牙网关广播消息后,确定广播消息中携带的场景ID为本地保存的场景配置信息对应的场景ID。那么,智能家居设备A和智能家居设备B可获取到该场景ID对应的场景配置信息,根据场景配置信息,设置相应的状态,以执行场景ID对应的场景。In some embodiments, in steps S72 and S73, after listening to the Bluetooth gateway broadcast message, smart home device A and smart home device B determine that the scene ID carried in the broadcast message is the scene ID corresponding to the locally saved scene configuration information. . Then, smart home device A and smart home device B can obtain the scene configuration information corresponding to the scene ID, and set the corresponding status according to the scene configuration information to execute the scene corresponding to the scene ID.
示例性的,如上表1所示,如蓝牙网关广播的场景ID为场景1,客厅灯、饮水机、以及客厅音箱监听到蓝牙网关广播的场景ID后,可获取到场景1对应的场景配置信息,设置相应的状态。比如,客厅灯根据场景1的场景配置信息中的开关状态参数设置状态为打开,根据亮度状态参数设置以亮度1打开;饮水机根据场景1的场景配置信息中的开关状态参数设置状态为打开;客厅音箱根据场景1的场景配置信息中的开关状态参数设置状态为打开,根据音量状态参数设置以音量50分贝打开。For example, as shown in Table 1 above, if the scene ID broadcast by the Bluetooth gateway is scene 1, the living room lights, water dispensers, and living room speakers can obtain the scene configuration information corresponding to scene 1 after listening to the scene ID broadcast by the Bluetooth gateway. , set the corresponding status. For example, the living room lamp is turned on according to the switch status parameter in the scene configuration information of scene 1, and is turned on with brightness 1 according to the brightness status parameter; the water dispenser is turned on according to the switch status parameter in the scene configuration information of scene 1; The speaker in the living room is turned on according to the switch status parameter setting in the scene configuration information of scene 1, and is turned on at a volume of 50 decibels according to the volume status parameter setting.
需要说明的是,本申请实施例不限制步骤S72和步骤S73的执行顺序。It should be noted that the embodiment of the present application does not limit the execution order of step S72 and step S73.
如此,智能家居设备根据蓝牙网关设置的场景配置信息,执行相应的场景,有效保证场景执行的成功率。In this way, the smart home device executes the corresponding scene according to the scene configuration information set by the Bluetooth gateway, effectively ensuring the success rate of scene execution.
可以理解的是,本申请实施例提供的场景配置方法,不仅适用于智能家居场景,还可以适用于其他使用蓝牙Mash网络的场景,如智能办公室的楼宇自动化场景等场景,其他场景中场景的配置过程可参考上述示例的各个实施例,对此本申请实施例不再赘述。It can be understood that the scene configuration method provided by the embodiment of the present application is not only applicable to smart home scenarios, but also applicable to other scenarios using Bluetooth Mash networks, such as building automation scenarios in smart offices, and the configuration of scenarios in other scenarios. For the process, reference may be made to the various embodiments of the above examples, which will not be described again in the embodiments of this application.
比如,在智能办公室的楼宇自动化场景中,蓝牙网关可获取到工程师通过手机发送的场景配置文件。之后,蓝牙网关可根据办公设备的在线情况,自动完成场景的配置。同样能够提高办公设备的场景配置效率和成功率。For example, in the building automation scenario of a smart office, the Bluetooth gateway can obtain the scenario configuration file sent by the engineer through the mobile phone. Afterwards, the Bluetooth gateway can automatically complete the scenario configuration based on the online status of the office equipment. It can also improve the scene configuration efficiency and success rate of office equipment.
示例性的,图8为本申请实施例提供的又一种场景配置方法的流程示意图。如图8所示,该方法包括如下步骤。Exemplarily, FIG. 8 is a schematic flowchart of yet another scene configuration method provided by an embodiment of the present application. As shown in Figure 8, the method includes the following steps.
S81、第一设备接收第二设备发送的场景配置文件。S81. The first device receives the scene configuration file sent by the second device.
其中,第一设备例如为蓝牙网关,第二设备例如为安装有配置应用的手机,第一设备和第二设备接入第四设备(如路由器)中,第二设备能够通过配置应用对第一设备所在的蓝牙Mesh网络中的场景进行配置。The first device is, for example, a Bluetooth gateway, the second device is, for example, a mobile phone with a configuration application installed, the first device and the second device are connected to a fourth device (such as a router), and the second device can configure the first device through the configuration application. Configure the scene in the Bluetooth Mesh network where the device is located.
在一些实施例中,响应于第一操作,第二设备启动配置应用后,响应于用户在配置应用中的第二操作,第二设备可生成场景配置文件。之后,第二设备向第一设备发送场景配置文件。相应的,第一设备接收第二设备发送的场景配置文件。In some embodiments, in response to the first operation, after the second device launches the configuration application, in response to the user's second operation in the configuration application, the second device may generate the scene configuration file. Afterwards, the second device sends the scene configuration file to the first device. Correspondingly, the first device receives the scene configuration file sent by the second device.
示例性的,如上述图5所示场景,第二设备启动配置应用,并在配置应用上接收用户的场景配置操作,如创建新的场景、添加新创建的场景中的设备、调整场景中的设备参数等。从而第二设备能够根据用户操作,创建场景,并生成相应的场景配置文件。For example, in the scenario shown in Figure 5 above, the second device starts the configuration application and receives the user's scene configuration operations on the configuration application, such as creating a new scene, adding devices in the newly created scene, and adjusting the settings in the scene. Equipment parameters, etc. Therefore, the second device can create a scene based on the user's operation and generate a corresponding scene configuration file.
可选的,场景配置文件包括如下一项或几项:场景标识,n个第三设备的标识,第一场景配置信息和/或第二场景配置信息。Optionally, the scene configuration file includes one or more of the following: scene identifiers, identifiers of n third devices, first scene configuration information and/or second scene configuration information.
可选的,第一设备在接收第二设备发送的场景配置文件后,可保存场景配置文件。Optionally, after receiving the scene configuration file sent by the second device, the first device may save the scene configuration file.
如此,在第三设备不在线的情况下,第一设备也能够在后续第三设备上线后,根据保存的场 景配置文件,完成该后上线的第三设备的场景配置,从而有效提高场景配置的成功率。In this way, when the third device is not online, the first device can also use the saved field after the third device comes online. scene configuration file to complete the scene configuration of the third device that will be online later, thus effectively improving the success rate of scene configuration.
S82、第一设备根据场景配置文件,确定待配置的n个第三设备。S82. The first device determines n third devices to be configured according to the scene configuration file.
在一些实施例中,第二设备根据用户在配置应用中的场景配置操作,生成场景配置文件。那么,场景配置文件中包括实现场景所需的n个第三设备(即智能家居设备)的信息,如MAC地址。因此,第一设备在接收到场景配置文件后,能够根据场景配置文件,确定待配置的n个第三设备。In some embodiments, the second device generates the scene configuration file according to the user's scene configuration operation in the configuration application. Then, the scene configuration file includes information, such as MAC addresses, of n third devices (ie, smart home devices) required to implement the scene. Therefore, after receiving the scene configuration file, the first device can determine n third devices to be configured according to the scene configuration file.
可选的,第一设备设置n个第三设备的状态为第一状态,第一状态用于表示未保存场景。Optionally, the first device sets the states of the n third devices to the first state, and the first state is used to indicate the unsaved scene.
S83、第一设备向n个第三设备中在线的第一目标设备发送第一场景创建指令,该第一场景创建指令中携带有第一场景配置信息。S83. The first device sends a first scene creation instruction to the online first target device among the n third devices. The first scene creation instruction carries the first scene configuration information.
S84、第一设备确定n个第三设备中不在线的第二目标设备上线后,向第二目标设备发送第二场景创建指令,该第二场景创建指令中携带有第二场景配置信息。S84. After determining that the second target device that is not online among the n third devices is online, the first device sends a second scene creation instruction to the second target device. The second scene creation instruction carries the second scene configuration information.
在一些实施例中,在步骤S83和步骤S84中,第一设备根据场景配置文件,获取待配置场景中包括的n个第三设备,进而确定待配置场景所需的n个第三设备是否在线。In some embodiments, in steps S83 and S84, the first device obtains n third devices included in the scene to be configured according to the scene configuration file, and then determines whether the n third devices required for the scene to be configured are online. .
若待配置的第三设备在线,可指示在线的待配置的第三设备完成场景的配置。如n个第三设备中在线的设备为第一目标设备,第一设备可向第一目标设备发送第一场景创建指令,并在第一场景创建指令中携带第一场景配置信息。从而第一目标设备响应于第一场景创建指令,根据第一场景配置信息创建场景。If the third device to be configured is online, the online third device to be configured can be instructed to complete the configuration of the scenario. If the online device among the n third devices is the first target device, the first device may send a first scene creation instruction to the first target device, and carry the first scene configuration information in the first scene creation instruction. Therefore, the first target device responds to the first scene creation instruction and creates a scene according to the first scene configuration information.
若待配置的第三设备不在线,可在不在线的待配置的第三设备上线后,再指示该待配置的第三设备完成场景的配置。如n个第三设备中不在线的设备为第二目标设备,第一设备可在确定n个第三设备中不在线的第二目标设备上线后,向第二目标设备发送第二场景创建指令,并在第二场景创建指令中携带第二场景配置信息。从而第二目标设备响应于第二场景创建指令,根据第二场景配置信息创建场景。If the third device to be configured is not online, after the third device to be configured that is not online comes online, the third device to be configured can be instructed to complete the configuration of the scenario. For example, the device that is not online among the n third devices is the second target device, and the first device can send a second scene creation instruction to the second target device after determining that the second target device that is not online among the n third devices is online. , and carry the second scene configuration information in the second scene creation instruction. Therefore, the second target device responds to the second scene creation instruction and creates a scene according to the second scene configuration information.
如此,第二设备响应于用户操作,将场景配置文件发送到第一设备,由第一设备完成场景的配置,这样无论待配置场景中的第三设备是否在线,均可完成前装过程中的场景配置流程,提高前装过程中的场景配置效率。In this way, the second device responds to the user operation by sending the scene configuration file to the first device, and the first device completes the configuration of the scene. In this way, regardless of whether the third device in the scene to be configured is online or not, the preloading process can be completed. The scene configuration process improves the efficiency of scene configuration in the pre-installation process.
并且,后续第一设备可根据待配置场景中的第三设备的在线情况,自动完成场景配置,保证场景配置的成功率。In addition, the first device can automatically complete the scene configuration according to the online status of the third device in the scene to be configured, ensuring the success rate of scene configuration.
可选的,第一设备向第一目标设备和/或第二目标设备发送第一场景创建指令和/或第二场景创建指令后,第三设备设置第一目标设备的状态为第二状态和/或,第三设备设置第二目标设备的状态为第二状态。其中,第二状态用于表示已保存场景。Optionally, after the first device sends the first scene creation instruction and/or the second scene creation instruction to the first target device and/or the second target device, the third device sets the state of the first target device to the second state and /Or, the third device sets the state of the second target device to the second state. Among them, the second state is used to represent the saved scene.
如此,第一设备根据第三设备的状态可确定哪些第三设备已完成场景配置,哪些第三设备还需要进行场景配置。In this way, the first device can determine which third devices have completed scene configuration and which third devices still need to perform scene configuration according to the status of the third device.
在一些实施例中,第一设备向n个第三设备发送广播消息,并在广播消息中携带场景标识。那么相应的,第三设备在接收所述广播消息后,可按照广播消息中携带的场景标识对应的第一场景配置信息或第二场景配置信息执行相应的场景。In some embodiments, the first device sends a broadcast message to n third devices, and carries the scene identifier in the broadcast message. Correspondingly, after receiving the broadcast message, the third device can execute the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier carried in the broadcast message.
如此,第三设备能够根据接收到的广播消息触发执行相应的场景。可选的,第三设备如接收到多个场景创建指令,能够其中携带的根据场景标识,确定对应的场景配置信息,便于后续执行相应场景标识对应的场景。In this way, the third device can trigger execution of the corresponding scene according to the received broadcast message. Optionally, if the third device receives multiple scene creation instructions, it can determine the corresponding scene configuration information based on the scene identifier carried therein, so as to facilitate subsequent execution of the scene corresponding to the corresponding scene identifier.
可选的,第一设备还可以执行以上实施例中蓝牙网关执行的步骤和功能,第二设备还可以执行以上实施例中手机执行的步骤和功能,第三设备还可以执行以上实施例中智能家居设备执行的步骤和功能,从而实现以上实施例提供的场景配置方法。Optionally, the first device can also perform the steps and functions performed by the Bluetooth gateway in the above embodiments, the second device can also perform the steps and functions performed by the mobile phone in the above embodiments, and the third device can also perform the smart devices in the above embodiments. The steps and functions performed by the home device are implemented to implement the scene configuration method provided in the above embodiments.
以上结合图4-图8详细说明了本申请实施例提供的场景配置方法。以下结合图9和图10详细说明本申请实施例提供的电子设备。The scene configuration method provided by the embodiment of the present application is described in detail above with reference to Figures 4-8. The electronic device provided by the embodiment of the present application will be described in detail below with reference to FIG. 9 and FIG. 10 .
在一种可能的设计中,图9为本申请实施例提供的第一设备的结构示意图。如图9所示,第一设备900可以包括:收发单元901和处理单元902。第一设备900可用于实现上述方法实施例中涉及的第一设备(如蓝牙网关)的功能。In a possible design, FIG. 9 is a schematic structural diagram of a first device provided by an embodiment of the present application. As shown in Figure 9, the first device 900 may include: a transceiver unit 901 and a processing unit 902. The first device 900 may be used to implement the functions of the first device (such as a Bluetooth gateway) involved in the above method embodiments.
可选地,收发单元901,用于支持第一设备900执行图4中的S42;和/或,用于支持第一设 备900执行图6中的S4412和/或S4422;和/或,用于支持第一设备900执行图7中的S71;和/或,用于支持第一设备900执行图8中的S83和/或S84。Optionally, the transceiver unit 901 is used to support the first device 900 to perform S42 in Figure 4; and/or is used to support the first device 900 to perform S42 in Figure 4; The device 900 performs S4412 and/or S4422 in Figure 6; and/or is used to support the first device 900 to perform S71 in Figure 7; and/or is used to support the first device 900 to perform S83 and/or in Figure 8 Or S84.
可选地,处理单元902,用于支持第一设备900执行图4中的S44;和/或,用于支持第一设备900执行图6中的S4411和/或S4421;和/或,用于支持第一设备900执行图8中的S82。Optionally, the processing unit 902 is used to support the first device 900 to perform S44 in Figure 4; and/or to support the first device 900 to perform S4411 and/or S4421 in Figure 6; and/or to The first device 900 is supported to execute S82 in FIG. 8 .
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。第一设备900中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的场景配置方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。The transceiver unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operation and/or function of each unit in the first device 900 is to implement the corresponding process of the scene configuration method described in the above method embodiment. All relevant content of each step involved in the above method embodiment can be quoted to the corresponding function. The functional description of the unit will not be repeated here for the sake of brevity.
可选地,图9所示的第一设备900还可以包括存储单元903,用于支持第一设备900执行图4中的S43。此外,该存储单元中存储有程序或指令。当收发单元901和处理单元902执行该程序或指令时,使得图9所示的第一设备900可以执行上述方法实施例中所述的场景配置方法。Optionally, the first device 900 shown in FIG. 9 may also include a storage unit 903 for supporting the first device 900 to perform S43 in FIG. 4 . In addition, programs or instructions are stored in the storage unit. When the transceiver unit 901 and the processing unit 902 execute the program or instruction, the first device 900 shown in FIG. 9 can execute the scene configuration method described in the above method embodiment.
图9所示的第一设备900的技术效果可以参考上述方法实施例中所述的场景配置方法的技术效果,此处不再赘述。For the technical effects of the first device 900 shown in Figure 9, reference can be made to the technical effects of the scene configuration method described in the above method embodiment, which will not be described again here.
除了以第一设备900的形式以外,本申请提供的技术方案也可以为第一设备中的功能单元或者芯片,或者与第一设备匹配使用的装置。In addition to being in the form of the first device 900, the technical solution provided by this application can also be a functional unit or chip in the first device, or a device used in conjunction with the first device.
在一种可能的设计中,图10为本申请实施例提供的第二设备的结构示意图。如图10所示,第二设备1000可以包括:收发单元1001和处理单元1002。第二设备1000可用于实现上述方法实施例中涉及的第二设备(如手机)的功能。In a possible design, FIG. 10 is a schematic structural diagram of a second device provided by an embodiment of the present application. As shown in Figure 10, the second device 1000 may include: a transceiver unit 1001 and a processing unit 1002. The second device 1000 may be used to implement the functions of the second device (such as a mobile phone) involved in the above method embodiments.
可选地,收发单元1001,用于支持第二设备1000执行图4中的S41和S42;和/或,用于支持第二设备1000执行图8中的S81。Optionally, the transceiver unit 1001 is used to support the second device 1000 to perform S41 and S42 in Figure 4; and/or to support the second device 1000 to perform S81 in Figure 8.
可选地,处理单元1002,用于支持第二设备1000响应于用户操作,生成场景配置文件。例如,第二设备1000中安装有如图3C所示的应用程序框架层中的配置应用,响应于第一操作,处理单元1002启动配置应用。之后,响应于用户在配置应用中的第二操作,处理单元1002生成场景配置文件。Optionally, the processing unit 1002 is configured to support the second device 1000 in generating a scene configuration file in response to user operations. For example, the configuration application in the application framework layer as shown in FIG. 3C is installed in the second device 1000. In response to the first operation, the processing unit 1002 starts the configuration application. Afterwards, in response to the user's second operation in the configuration application, the processing unit 1002 generates the scene configuration file.
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。第二设备1000中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的场景配置方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。The transceiver unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operation and/or function of each unit in the second device 1000 is to implement the corresponding process of the scene configuration method described in the above method embodiment. All relevant content of each step involved in the above method embodiment can be quoted to the corresponding function. The functional description of the unit will not be repeated here for the sake of brevity.
可选地,图10所示的第二设备1000还可以包括存储单元(图10中未示出),该存储单元中存储有程序或指令。当收发单元1001和处理单元1002执行该程序或指令时,使得图10所示的第二设备1000可以执行上述方法实施例中所述的场景配置方法。Optionally, the second device 1000 shown in Fig. 10 may also include a storage unit (not shown in Fig. 10), in which programs or instructions are stored. When the transceiver unit 1001 and the processing unit 1002 execute the program or instruction, the second device 1000 shown in FIG. 10 can execute the scene configuration method described in the above method embodiment.
图10所示的第二设备1000的技术效果可以参考上述方法实施例中所述的场景配置方法的技术效果,此处不再赘述。For the technical effects of the second device 1000 shown in FIG. 10 , reference can be made to the technical effects of the scene configuration method described in the above method embodiment, which will not be described again here.
除了以第二设备1000的形式以外,本申请提供的技术方案也可以为第二设备中的功能单元或者芯片,或者与第二设备匹配使用的装置。In addition to being in the form of the second device 1000, the technical solution provided by this application can also be a functional unit or chip in the second device, or a device used in conjunction with the second device.
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, and the memory is used to store programs or instructions. When the program or instructions are executed by the processor, the The chip system implements the method in any of the above method embodiments.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, there may be one or more processors in the chip system. The processor can be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, there may be one or more memories in the chip system. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited by the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be separately provided on different chips. The embodiments of this application vary on the type of memory, and The arrangement of the memory and processor is not specifically limited.
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(AP设备plication specific integrated circuit,ASIC),还可以是系统芯片 (system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system chip. (system on chip, SoC), it can also be a central processor unit (CPU), a network processor (NP), or a digital signal processor (DSP), It can also be a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The method steps disclosed in conjunction with the embodiments of this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的场景配置方法。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to perform the above related steps to implement the above embodiments. scene configuration method.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的场景配置方法。An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the scene configuration method in the above embodiment.
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的场景配置方法。In addition, the embodiment of the present application also provides a device. The device may specifically be a component or module, and the device may include one or more connected processors and memories. Among them, memory is used to store computer programs. When the computer program is executed by one or more processors, the device is caused to execute the scene configuration method in each of the above method embodiments.
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the devices, computer-readable storage media, computer program products or chips provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be described again here.
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(AP设备plication specific integrated circuit,ASIC)中。The steps of the methods or algorithms described in connection with the disclosure of the embodiments of this application can be implemented in hardware or by a processor executing software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (random access memory, RAM), flash memory, read only memory (read only memory, ROM), erasable programmable read only memory ( erasable programmable ROM (EPROM), electrically erasable programmable read-only memory (EPROM, EEPROM), register, hard disk, removable hard disk, compact disc (CD-ROM) or any other form of storage media well known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may be located in an application specific integrated circuit (ASIC).
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above function allocation can be completed by different functional modules according to needs; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the systems, devices and units described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored. or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of modules or units, and may be in electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
计算机可读存储介质包括但不限于以下的任意一种:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Computer-readable storage media includes but is not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. Various media that can store program code.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application. . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (14)

  1. 一种场景配置方法,其特征在于,所述方法包括:A scene configuration method, characterized in that the method includes:
    第一设备接收第二设备发送的场景配置文件;The first device receives the scene configuration file sent by the second device;
    所述第一设备根据所述场景配置文件,确定待配置的n个第三设备,n为不小于1的整数;The first device determines n third devices to be configured according to the scene configuration file, where n is an integer not less than 1;
    所述第一设备向所述n个第三设备中在线的第一目标设备发送第一场景创建指令,所述第一场景创建指令中携带有第一场景配置信息,所述第一场景创建指令用于指示所述第一目标设备根据所述第一场景配置信息创建场景;The first device sends a first scene creation instruction to an online first target device among the n third devices. The first scene creation instruction carries first scene configuration information. The first scene creation instruction For instructing the first target device to create a scene according to the first scene configuration information;
    和/或,and / or,
    所述第一设备确定所述n个第三设备中不在线的第二目标设备上线后,向所述第二目标设备发送第二场景创建指令,所述第二场景创建指令中携带有第二场景配置信息,所述第二场景创建指令用于指示所述第二目标设备根据所述第二场景配置信息创建场景。After the first device determines that the second target device that is not online among the n third devices is online, it sends a second scene creation instruction to the second target device, and the second scene creation instruction carries the second Scene configuration information, the second scene creation instruction is used to instruct the second target device to create a scene according to the second scene configuration information.
  2. 根据权利要求1所述的方法,其特征在于,所述场景配置文件包括如下一项或几项:场景标识,所述n个第三设备的标识,所述第一场景配置信息和/或所述第二场景配置信息。The method according to claim 1, characterized in that the scene configuration file includes one or more of the following: scene identifiers, identifiers of the n third devices, the first scene configuration information and/or the Describe the second scenario configuration information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that, the method further includes:
    所述第一设备向所述n个第三设备发送广播消息,所述广播消息携带有场景标识,所述广播消息用于指示所述n个第三设备按照所述场景标识对应的第一场景配置信息或第二场景配置信息执行相应的场景。The first device sends a broadcast message to the n third devices, the broadcast message carries a scene identifier, and the broadcast message is used to instruct the n third devices to the first scene corresponding to the scene identifier. The configuration information or the second scene configuration information executes the corresponding scene.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述第一设备根据所述场景配置文件,确定待配置的n个第三设备之前,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that, before the first device determines n third devices to be configured according to the scene configuration file, the method further includes:
    所述第一设备保存所述场景配置文件。The first device saves the scene configuration file.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,在所述第一设备根据所述场景配置文件,确定待配置的n个第三设备之后,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that, after the first device determines n third devices to be configured according to the scene configuration file, the method further includes:
    所述第一设备设置所述n个第三设备的状态为第一状态,所述第一状态用于表示未保存场景。The first device sets the status of the n third devices to a first status, and the first status is used to indicate an unsaved scene.
  6. 根据权利要求5所述的方法,其特征在于,在所述第一设备向所述n个第三设备中在线的第一目标设备发送第一场景创建指令之后,所述方法还包括:The method according to claim 5, characterized in that, after the first device sends a first scene creation instruction to an online first target device among the n third devices, the method further includes:
    所述第三设备设置所述第一目标设备的状态为第二状态,所述第二状态用于表示已保存场景;The third device sets the state of the first target device to a second state, and the second state is used to represent the saved scene;
    和/或,and / or,
    所述第三设备设置所述第二目标设备的状态为所述第二状态。The third device sets the state of the second target device to the second state.
  7. 一种场景配置方法,其特征在于,所述方法包括:A scene configuration method, characterized in that the method includes:
    响应于第一操作,第二设备启动配置应用;In response to the first operation, the second device launches the configuration application;
    响应于用户在所述配置应用中的第二操作,所述第二设备生成场景配置文件;In response to a second operation by the user in the configuration application, the second device generates a scene configuration file;
    所述第二设备向第一设备发送所述场景配置文件,所述场景配置文件用于指示所述第一设备配置n个第三设备的场景,n为不小于1的整数。The second device sends the scene configuration file to the first device, where the scene configuration file is used to instruct the first device to configure the scene of n third devices, where n is an integer not less than 1.
  8. 根据权利要求7所述的方法,其特征在于,所述场景配置文件包括如下一项或几项:场景标识,所述n个第三设备的标识,场景配置信息。The method according to claim 7, characterized in that the scene configuration file includes one or more of the following: scene identifiers, identifiers of the n third devices, and scene configuration information.
  9. 一种场景配置系统,其特征在于,包括:A scene configuration system, which is characterized by including:
    第二设备,用于响应于第一操作,启动配置应用,并响应于用户在所述配置应用中的第二操作,生成场景配置文件;a second device configured to launch a configuration application in response to the first operation, and generate a scene configuration file in response to a second operation by the user in the configuration application;
    所述第二设备,还用于向第一设备发送所述场景配置文件;The second device is also configured to send the scene configuration file to the first device;
    所述第一设备,用于接收所述第二设备发送的所述场景配置文件;The first device is configured to receive the scene configuration file sent by the second device;
    所述第一设备,还用于根据所述场景配置文件,确定待配置的n个第三设备,n为不小于1的整数;The first device is also configured to determine n third devices to be configured according to the scene configuration file, where n is an integer not less than 1;
    所述第一设备,还用于向所述n个第三设备中在线的第一目标设备发送第一场景创建指令,所述第一场景创建指令中携带有第一场景配置信息,和/或,确定所述n个第三设备中不在线的第二目标设备上线后,向所述第二目标设备发送第二场景创建指令,所述第二场景创建指令中携带有第二场景配置信息;The first device is further configured to send a first scene creation instruction to an online first target device among the n third devices, where the first scene creation instruction carries first scene configuration information, and/or , after determining that the second target device that is not online among the n third devices is online, send a second scene creation instruction to the second target device, where the second scene creation instruction carries the second scene configuration information;
    所述第三设备,用于根据所述第一场景配置信息和/或所述第二场景配置信息创建场景。 The third device is configured to create a scene according to the first scene configuration information and/or the second scene configuration information.
  10. 根据权利要求9所述的系统,其特征在于,所述场景配置文件包括如下一项或几项:场景标识,所述n个第三设备的标识,所述第一场景配置信息和/或所述第二场景配置信息。The system according to claim 9, wherein the scene configuration file includes one or more of the following: scene identifiers, identifiers of the n third devices, the first scene configuration information and/or the Describe the second scenario configuration information.
  11. 根据权利要求9或10所述的系统,其特征在于,The system according to claim 9 or 10, characterized in that,
    所述第一设备,还用于向所述n个第三设备发送广播消息,所述广播消息携带有场景标识;The first device is also configured to send a broadcast message to the n third devices, where the broadcast message carries a scene identifier;
    所述n个第三设备,还用于接收所述广播消息,按照所述广播消息中携带的所述场景标识对应的第一场景配置信息或第二场景配置信息执行相应的场景。The n third devices are further configured to receive the broadcast message and execute the corresponding scene according to the first scene configuration information or the second scene configuration information corresponding to the scene identifier carried in the broadcast message.
  12. 一种电子设备,其特征在于,包括:处理器和存储器,所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述电子设备执行如权利要求1-6中任意一项所述的方法;或者,使得所述电子设备执行如权利要求7或8所述的方法。An electronic device, characterized in that it includes: a processor and a memory, the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor The computer instructions are read from the memory, causing the electronic device to execute the method as claimed in any one of claims 1-6; or, causing the electronic device to execute the method as claimed in claim 7 or 8. method.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-6中任意一项所述的方法;或者,使得所述电子设备执行如权利要求7或8所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium includes a computer program. When the computer program is run on an electronic device, the electronic device causes the electronic device to execute any one of claims 1-6. The method described in claim 7 or 8; or, causing the electronic device to perform the method described in claim 7 or 8.
  14. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-6中任意一项所述的方法;或者,使得所述计算机执行如权利要求7或8所述的方法。 A computer program product, characterized in that, when the computer program product is run on a computer, it causes the computer to execute the method as described in any one of claims 1-6; or, causes the computer to execute as The method of claim 7 or 8.
PCT/CN2023/110568 2022-08-05 2023-08-01 Scenario configuration method, electronic device and system WO2024027713A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210938367.2A CN117555245A (en) 2022-08-05 2022-08-05 Scene configuration method, electronic equipment and system
CN202210938367.2 2022-08-05

Publications (1)

Publication Number Publication Date
WO2024027713A1 true WO2024027713A1 (en) 2024-02-08

Family

ID=89815328

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/110568 WO2024027713A1 (en) 2022-08-05 2023-08-01 Scenario configuration method, electronic device and system

Country Status (2)

Country Link
CN (1) CN117555245A (en)
WO (1) WO2024027713A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454898A (en) * 2016-10-20 2017-02-22 北京小米移动软件有限公司 Intelligent scene configuration method and device
CN109936489A (en) * 2019-03-25 2019-06-25 美的智慧家居科技有限公司 The control method and system, gateway and storage medium of scene linkage
US20190296934A1 (en) * 2016-05-30 2019-09-26 Beijing Baidu Netcom Science And Technology Co., Ltd. Implementation system and method for internet of things based on artificial intelligence
CN111240213A (en) * 2018-11-29 2020-06-05 青岛海尔洗衣机有限公司 Control method for intelligent household system
CN111901151A (en) * 2020-06-30 2020-11-06 杭州博联智能科技股份有限公司 Method, device, equipment and medium for gateway equipment to manage IOT equipment
CN113050508A (en) * 2021-03-26 2021-06-29 珠海泰芯半导体有限公司 Debugging method and device of control panel, storage medium and debugging equipment
CN113114778A (en) * 2021-04-22 2021-07-13 北京字节跳动网络技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN113311763A (en) * 2021-05-28 2021-08-27 宁波奥克斯电气股份有限公司 Intelligent equipment control method and device, computer device and intelligent equipment control system
CN114007235A (en) * 2021-10-29 2022-02-01 上海庆科信息技术有限公司 Scene rule writing method and device, storage medium, processor and electronic equipment
CN114637216A (en) * 2020-12-16 2022-06-17 深圳绿米联创科技有限公司 Scene configuration method and device, control method and device, intelligent equipment and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190296934A1 (en) * 2016-05-30 2019-09-26 Beijing Baidu Netcom Science And Technology Co., Ltd. Implementation system and method for internet of things based on artificial intelligence
CN106454898A (en) * 2016-10-20 2017-02-22 北京小米移动软件有限公司 Intelligent scene configuration method and device
CN111240213A (en) * 2018-11-29 2020-06-05 青岛海尔洗衣机有限公司 Control method for intelligent household system
CN109936489A (en) * 2019-03-25 2019-06-25 美的智慧家居科技有限公司 The control method and system, gateway and storage medium of scene linkage
CN111901151A (en) * 2020-06-30 2020-11-06 杭州博联智能科技股份有限公司 Method, device, equipment and medium for gateway equipment to manage IOT equipment
CN114637216A (en) * 2020-12-16 2022-06-17 深圳绿米联创科技有限公司 Scene configuration method and device, control method and device, intelligent equipment and medium
CN113050508A (en) * 2021-03-26 2021-06-29 珠海泰芯半导体有限公司 Debugging method and device of control panel, storage medium and debugging equipment
CN113114778A (en) * 2021-04-22 2021-07-13 北京字节跳动网络技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN113311763A (en) * 2021-05-28 2021-08-27 宁波奥克斯电气股份有限公司 Intelligent equipment control method and device, computer device and intelligent equipment control system
CN114007235A (en) * 2021-10-29 2022-02-01 上海庆科信息技术有限公司 Scene rule writing method and device, storage medium, processor and electronic equipment

Also Published As

Publication number Publication date
CN117555245A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
WO2020192714A1 (en) Device control page display method, related apparatus and system
WO2020244495A1 (en) Screen projection display method and electronic device
KR102277460B1 (en) Method for sharing a display and electronic device thereof
WO2023103454A1 (en) Connection method and apparatus
WO2022127661A1 (en) Application sharing method, and electronic device and storage medium
WO2022156535A1 (en) Distributed application processing method and apparatus
WO2023207761A1 (en) Peripheral control method, and electronic device and system
JP7234379B2 (en) Methods and associated devices for accessing networks by smart home devices
CN114741008B (en) Distributed cross-device cooperation method, electronic device and communication system
US20230259250A1 (en) Control method and apparatus, and electronic device
US20230367572A1 (en) Patch Package Installation Method and Apparatus
US20230216732A1 (en) Network Configuration Method and Device
WO2024027713A1 (en) Scenario configuration method, electronic device and system
WO2023088061A1 (en) Smart device control method and electronic device
WO2022247626A1 (en) Application identity-based access control method, related apparatus, and system
WO2022053062A1 (en) Method and terminal for managing iot device
WO2022161024A1 (en) Upgrade prompt method, terminal device, and computer readable storage medium
WO2023010907A9 (en) Network distribution method and apparatus
WO2022089216A1 (en) Interface display method and electronic device
CN114554463A (en) Bluetooth communication method, Bluetooth broadcasting method, Bluetooth device, and storage medium
WO2023071590A1 (en) Input control method and electronic device
WO2023216892A1 (en) Scenario setting method and electronic device
WO2022252805A1 (en) Display method and electronic device
WO2024099212A1 (en) Spatial position determination method and system, and device therefor
WO2023185593A1 (en) Device login method, electronic device and system

Legal Events

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

Ref document number: 23849419

Country of ref document: EP

Kind code of ref document: A1