WO2021136188A1 - Device linkage method and apparatus, electronic device, and storage medium - Google Patents

Device linkage method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2021136188A1
WO2021136188A1 PCT/CN2020/140207 CN2020140207W WO2021136188A1 WO 2021136188 A1 WO2021136188 A1 WO 2021136188A1 CN 2020140207 W CN2020140207 W CN 2020140207W WO 2021136188 A1 WO2021136188 A1 WO 2021136188A1
Authority
WO
WIPO (PCT)
Prior art keywords
linkage
devices
attribute data
time period
trigger
Prior art date
Application number
PCT/CN2020/140207
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 WO2021136188A1 publication Critical patent/WO2021136188A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • This application relates to the technical field of smart devices, and in particular to a device linkage method, device, electronic device, and storage medium.
  • the device linkage method in the related technology usually requires the user to manually set a large number of parameters of the linkage device to realize the device linkage.
  • this method has the problem that the linkage parameter configuration process is complicated and cumbersome and cannot adapt to different needs.
  • This application actually discloses a device linkage method, device, electronic device, and storage medium, so as to solve the problem that the device linkage method in the related technology has a complicated and cumbersome linkage parameter configuration process and cannot adapt to different requirements.
  • this application provides a device linkage method, including:
  • the performing correlation processing on the historical operation logs of each device to obtain the feature vector corresponding to the device set includes:
  • the vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
  • the device set includes a trigger device and a controlled device
  • the determining a linkage strategy between devices in the device set based on the feature vector includes:
  • a linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
  • the performing a linkage operation on the devices in the set of devices based on the linkage strategy between the devices in the set of devices includes:
  • a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
  • the trigger device includes a sensor
  • the controlled device includes a smart home device.
  • this application provides a device linkage device, including:
  • the obtaining unit is used to obtain historical operation logs of each device in the device set, where the historical operation log includes the running time of the device and corresponding attribute data;
  • An association processing unit configured to perform association processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, where the feature vector includes the association relationship of the devices in the device set in different time periods;
  • a determining unit configured to determine a linkage strategy between devices in the device set based on the feature vector
  • the operation unit is configured to perform linkage operations on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
  • association processing unit is specifically configured to:
  • the vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
  • the device set includes a trigger device and a controlled device, and the determining unit is specifically configured to:
  • a linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
  • the operating unit is specifically configured to:
  • a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
  • the trigger device includes a sensor
  • the controlled device includes a smart home device.
  • an electronic device including:
  • a memory for storing executable instructions of the processor
  • the processor is configured to execute the instruction to implement the device linkage method described in the first aspect.
  • an embodiment of the present application provides a storage medium, which enables the electronic device to execute the device linkage method described in the first aspect when the instructions in the storage medium are executed by the processor of the electronic device.
  • a feature vector containing the relationship between the devices in the device set in different time periods is obtained, and the relationship between the devices in the device set is determined based on the feature vector.
  • the linkage strategy can realize the automation and intelligent configuration of the linkage strategy. The whole process does not require user participation, which simplifies the configuration process of the linkage strategy and improves the configuration efficiency.
  • the linkage strategy is determined by associating the historical operation logs of each device in the device set. Further, the linkage operation of the devices in the device set based on the linkage strategy can dynamically adapt to different scene requirements. .
  • FIG. 1 is a flowchart of a device linkage method provided by an embodiment of the application.
  • FIG. 2 is a flowchart of another device linkage method provided by an embodiment of the application.
  • FIG. 3 is a block diagram of a device linkage device provided by an embodiment of the application.
  • FIG. 4 is a block diagram of an electronic device provided by an embodiment of this application.
  • FIG. 1 shows a flowchart of a device linkage method provided by an embodiment of the present application.
  • the method can be applied to electronic devices, where the electronic devices may include, but are not limited to, laptop computers, portable computers, and portable computers.
  • a computer, a server, etc. which can respectively communicate and connect with each device in the device set to obtain historical operation logs of each device in the device set and to control the devices in the device set.
  • the method may include the following steps:
  • the devices in the device set may include triggering devices and controlled devices.
  • the trigger device may include a sensor for sensing the ambient temperature, environmental humidity, light brightness, human body, door and window status, etc. of the smart scene. It may include, but is not limited to, detecting the environment of the smart scene. Temperature sensor for temperature, humidity sensor for detecting the environmental humidity of the smart scene, light sensor for detecting the light intensity of the smart scene, human body sensing for detecting whether there is a human body in the smart scene Sensor, environmental information image sensor used to detect the smart scene in which it is located, etc.
  • the trigger device can transmit its operation log to the above-mentioned electronic device in real time.
  • Controlled devices can include various smart devices deployed in smart scenarios (such as smart home scenarios), such as but not limited to lighting equipment, air conditioners, humidifiers, audio and video playback equipment, heating equipment, curtains, security equipment, etc.
  • the control device can have communication capabilities (such as wireless or wired communication capabilities) to interact with the above electronic device. For example, it can transmit its historical operation log to the above electronic device in real time and work based on the control signal output by the above electronic device.
  • the historical operation log of the device may include the operating time of the device and corresponding attribute data, where the attribute data of the device refers to the operating parameters of the device, and the attribute data of different devices are different.
  • the attribute data of the lighting device may include, but are not limited to, operating status (on or off), illuminance, color temperature, and other operating parameters
  • the attribute data of the temperature sensor may include, for example, temperature values. Table 1 shows a historical operation log of a device 1.
  • the feature vector includes the association relationship of the devices in the device set in different time periods.
  • the association relationship of the devices in the device set in different time periods records which devices in the device set can be linked in different time periods.
  • the feature vector includes the association relationship between the air conditioner and the TV in the time period A, then in the smart home scene, the air conditioner and the TV can be linked in the time period A.
  • S103 Determine a linkage strategy between devices in the device set based on the feature vector.
  • the linkage strategy may include linkage trigger conditions and corresponding linkage actions, and the linkage strategy is used to instruct to execute the corresponding linkage actions when the parameters in the smart environment meet the linkage trigger conditions.
  • the linkage action may be turning on the air conditioner and TV in the living room and pulling the curtains in the living room.
  • the triggering condition corresponding to the linkage action may be that the user is detected to be at home from 17:00 to 17:30 every night in summer, and the linkage strategy This includes turning on the air conditioner and TV in the living room and closing the curtains in the living room when the user is detected to go home from 17:00 to 17:30 every night in summer.
  • linkage strategy of the devices in the device set may include multiple linkage trigger conditions (such as linkage trigger conditions corresponding to different time periods) and corresponding linkage actions.
  • S104 Perform a linkage operation on the devices in the device set based on the linkage strategy between the devices in the device set.
  • the aforementioned determined linkage strategy can be preset in the aforementioned electronic device used to control the devices in the device set, and the electronic device generates a corresponding control instruction according to the aforementioned determined linkage strategy and sends it to the The devices in the device set are used to perform linkage operations on the devices in the device set.
  • the device linkage method described in the embodiment of the present application obtains the feature vector containing the association relationship of the devices in the device set in different time periods by obtaining the historical operation log of each device in the device set for association processing, based on the The feature vector determines the linkage strategy between the devices in the device set, which can realize the automation and intelligent configuration of the linkage strategy. The entire process does not require user involvement, which simplifies the configuration process of the linkage strategy and improves the configuration efficiency.
  • the linkage strategy is determined by associating the historical operation logs of each device in the device set. Further, the linkage operation of the devices in the device set based on the linkage strategy can dynamically adapt to different scene requirements. .
  • performing correlation processing on the historical operation logs of each device to obtain the feature vector corresponding to the device set specifically includes:
  • S121 Integrate historical operation logs of each device based on the running time to obtain attribute data of the device set in different time periods.
  • the historical operation logs of each device in the device set can be merged at a set time interval (such as 10 minutes) to obtain attribute data of each device in different time periods.
  • a set time interval such as 10 minutes
  • Table 2 shows the attribute data of a device set obtained after merging in different time periods.
  • S122 Convert the attribute data of the device set in different time periods into vectors.
  • S123 Solve the transformed vector based on the pre-configured recommendation algorithm to obtain the feature vector corresponding to the device set.
  • the recommendation algorithm may include an SVD (Singular Value Decomposition, singular value decomposition) algorithm.
  • the converted vector is solved based on the SVD algorithm to obtain the feature vector corresponding to the device set.
  • the specific implementation method is commonly used in the field. Ways, I won’t repeat them here.
  • the recommendation algorithm may also include other artificial intelligence recommendation algorithms.
  • the feature vector corresponding to the device set can be obtained, where the feature vector contains the association relationship of the devices in the device set in different time periods.
  • the device collection is constantly updated, and the history of each device in the device collection
  • the operation log keeps increasing, and the attribute data of the above-mentioned device set in different time periods can also be continuously updated according to actual conditions to form a more complete association relationship between the devices in the device set in different time periods, and finally get more Intelligent and adaptive linkage strategy.
  • the historical operation logs obtained by each device in the device set are integrated according to the running time to obtain the attribute data of the device set in different time periods, and the obtained attribute data is integrated
  • the vector is solved based on the pre-configured recommendation algorithm to obtain the feature vector corresponding to the device set, which can realize the dynamic and personalized construction of the linkage strategy, and make the final linkage strategy more accurate.
  • the determining the linkage strategy between the devices in the device set based on the feature vector corresponding to the device set includes:
  • the linkage trigger condition corresponding to time period A can be set as the human sensor output in the time period 17:30 ⁇ 17:40 for indicating detection To the human body indication signal; for another example, the trigger device in the device set may also include an image sensor, and the linkage trigger condition corresponding to the time period 23:00 to 23:10 may be set to be in the time period 23:00 to 23:10
  • the image sensor outputs an indication signal for indicating that the user is in a sleep state, and so on.
  • S132 Determine the linkage action corresponding to the time period based on the association relationship between the triggering device and the controlled device in the device set in the time period and the attribute data of the controlled device in the time period.
  • the trigger device in the device set includes a human body sensor and an image sensor
  • the controlled device includes various smart home devices such as air conditioners, TVs, curtains, and lighting devices, for example, in the time period 17:30-17:
  • the association relationship between the triggering device and the controlled device in the device set in 40 is that the human sensor is linked with the air conditioner, TV, and curtain, and the attribute data of the air conditioner in this time period includes the on state, the temperature of 22°, and the TV
  • the corresponding attribute data is open, and the corresponding attribute data of the curtain is closed, it can be determined that the corresponding linkage action for the time period from 17:30 to 17:40 is "turn on the air conditioner and adjust it to 22°, turn on the TV and draw the curtains" ;
  • the association between the triggering device and the controlled device in the device set in the time period 23:00 to 23:10 is that the image sensor is linked with the air conditioner, TV, and lighting equipment, and in this time period
  • the corresponding attribute data of the air conditioner, TV and lighting equipment are all
  • S133 Generate a linkage strategy between devices in the device set based on corresponding linkage trigger conditions and linkage actions in different time periods.
  • the linkage strategy between the devices in the device set can be obtained by associating the corresponding linkage trigger conditions and linkage actions in different time periods, and the linkage strategy is used to indicate the device set in different time periods.
  • the controlled device in the device set is controlled to perform the corresponding linkage action.
  • the corresponding linkage trigger condition is determined by the attribute data of the triggering device in the device set
  • the linkage trigger is determined by the attribute data of the controlled device in the device set and the linkage relationship with the triggering device.
  • the linkage strategy further improves the configuration efficiency and accuracy of the linkage strategy.
  • the performing linkage operations on the devices in the device set based on the linkage strategy between the devices in the device set includes:
  • the trigger device in the device set can upload its attribute data to the electronic device in real time; or, the electronic device and at a set time interval send an acquisition request to the trigger device in the device set to request Obtain attribute data from the trigger device.
  • S142 Determine whether the attribute data of the trigger device meets the linkage trigger condition corresponding to the current time period.
  • step S143 After acquiring the attribute data of the trigger device, the above electronic device judges whether the acquired attribute data meets the linkage trigger condition corresponding to the current time period. If it is satisfied, step S143 may be executed. Optionally, if it is not satisfied, step S144 may be performed, that is, the attribute data of the trigger device is discarded.
  • S143 Perform a linkage operation on the controlled device based on the linkage action corresponding to the current time period.
  • the linkage strategy includes "when the user is detected at 17:30 ⁇ 17:40 in summer, turn on the air conditioner and adjust it to 22°, turn on the TV and draw the curtains" as an example, when the above is used to control
  • the electronic equipment of the equipment set obtains the indication signal output by the human body sensor at 17:30 ⁇ 17:40 in summer.
  • the indication signal of the human body is detected, it can output corresponding control signals to the air conditioner, TV, and curtain to control the air conditioner.
  • Turn on and adjust to 22° control the TV to open and control the curtains to close.
  • the controlled devices in the device set execute corresponding linkage actions, and the device manipulation in the smart scene will be performed automatically, instead of relying on the user's manipulation, and the user experience is improved.
  • the apparatus 300 may include: an acquisition unit 301, an association processing unit 302, a determination unit 303, and an operation unit 304.
  • the obtaining unit 301 is configured to obtain historical operation logs of each device in the device set, the historical operation log including the running time of the device and corresponding attribute data.
  • the correlation processing unit 302 performs correlation processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, and the feature vector includes the correlation relationship of the devices in the device set in different time periods.
  • the determining unit 303 is configured to determine a linkage strategy between devices in the device set based on the feature vector.
  • the operating unit 304 is configured to perform linkage operations on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
  • the device linkage device described in the embodiment of the present application obtains the feature vector containing the association relationship of the devices in the device set in different time periods by obtaining the historical operation log of each device in the device set for association processing, based on the The feature vector determines the linkage strategy between the devices in the device set, which can realize the automation and intelligent configuration of the linkage strategy. The entire process does not require user involvement, which simplifies the configuration process of the linkage strategy and improves the configuration efficiency.
  • the linkage strategy is determined by associating the historical operation logs of each device in the device set. Further, the linkage operation of the devices in the device set based on the linkage strategy can dynamically adapt to different scene requirements. .
  • association processing unit 302 is specifically configured to:
  • the vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
  • the device set includes a trigger device and a controlled device
  • the determining unit 303 is specifically configured to:
  • a linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
  • the operating unit 304 is specifically configured to:
  • a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
  • the trigger device includes a sensor
  • the controlled device includes a smart home device.
  • Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory.
  • the memory may include memory, such as high-speed random access memory (Random-Access Memory, RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
  • RAM random access memory
  • non-volatile memory such as at least one disk storage.
  • the electronic device may also include hardware required by other services.
  • the processor, network interface, and memory can be connected to each other through an internal bus.
  • the internal bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus, or an EISA (Extended) bus. Industry Standard Architecture, extended industry standard structure) bus, etc.
  • the bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of presentation, only one bidirectional arrow is used to indicate in FIG. 4, but it does not mean that there is only one bus or one type of bus.
  • the program may include program code, and the program code includes computer operation instructions.
  • the memory may include memory and non-volatile memory, and provide instructions and data to the processor.
  • the processor reads the corresponding computer program from the non-volatile memory to the memory and then runs, forming an equipment linkage device at the logical level.
  • the processor executes the program stored in the memory, and is specifically used to perform the following operations:
  • the foregoing method performed by the device linkage apparatus disclosed in the embodiment shown in FIG. 1 or FIG. 2 of this application may be applied to a processor or implemented by a processor.
  • the processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the electronic device can also execute the method of FIG. 1 or FIG. 2 and realize the functions of the embodiments of the device linkage device shown in FIG. 1 and FIG. 2, which will not be repeated in the embodiments of the present application.
  • the electronic equipment of this application does not exclude other implementations, such as logic devices or a combination of software and hardware, etc. That is to say, the execution body of the following processing flow is not limited to each logic unit. It can also be a hardware or logic device.
  • the embodiment of the present application also proposes a computer-readable storage medium that stores one or more programs, and the one or more programs include instructions.
  • the instructions When the instructions are included in a portable electronic device that includes multiple application programs When executed, the portable electronic device can be made to execute the method of the embodiment shown in FIG. 1, and is specifically used to execute the following operations:
  • the historical operation log includes the running time of the device and the corresponding attribute data
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

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)
  • Selective Calling Equipment (AREA)

Abstract

Disclosed are a device linkage method and apparatus, an electronic device, and a storage medium, which are used for solving the problems of a device linkage method in the related art having a complex and tedious linkage parameter configuration process and being unable to self-adapt to different requirements. The device linkage method comprises: acquiring a historical operation log of each device in a device set, wherein the historical operation log comprises an operation time of the device and corresponding attribute data (S101); performing association processing on the historical operation log of each device to obtain a feature vector corresponding to the device set, wherein the feature vector comprises association relationships between the devices in the device set in different time periods (S102); on the basis of the feature vector, determining a linkage policy between the devices in the device set (S103); and on the basis of the linkage policy between the devices in the device set, performing an association operation on the devices in the device set (S104).

Description

设备联动方法、装置、电子设备及存储介质Equipment linkage method, device, electronic equipment and storage medium 技术领域Technical field
本申请涉及智能设备技术领域,尤其涉及一种设备联动方法、装置、电子设备及存储介质。This application relates to the technical field of smart devices, and in particular to a device linkage method, device, electronic device, and storage medium.
背景技术Background technique
随着智能硬件技术的迅速普及,设备联动控制成为影响智能家居发展的一个重要因素。With the rapid popularization of smart hardware technology, device linkage control has become an important factor affecting the development of smart homes.
相关技术中的设备联动方法,通常需要由用户手动设置联动设备的大量参数来实现设备联动。然而,该方式存在联动参数配置过程复杂繁琐且无法自适应不同需求的问题。The device linkage method in the related technology usually requires the user to manually set a large number of parameters of the linkage device to realize the device linkage. However, this method has the problem that the linkage parameter configuration process is complicated and cumbersome and cannot adapt to different needs.
发明内容Summary of the invention
本申请实公开一种设备联动方法、装置、电子设备及存储介质,以解决相关技术中的设备联动方法存在联动参数配置过程复杂繁琐且无法自适应不同需求的问题。This application actually discloses a device linkage method, device, electronic device, and storage medium, so as to solve the problem that the device linkage method in the related technology has a complicated and cumbersome linkage parameter configuration process and cannot adapt to different requirements.
为了解决上述技术问题,本申请采用以下技术方案:In order to solve the above technical problems, this application adopts the following technical solutions:
第一方面,本申请提供了一种设备联动方法,包括:In the first aspect, this application provides a device linkage method, including:
获取设备集合中各设备的历史操作日志,所述历史操作日志包括设备的运行时间及对应的属性数据;Acquiring a historical operation log of each device in the device set, where the historical operation log includes the running time of the device and corresponding attribute data;
对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系;Performing correlation processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, where the feature vector includes the association relationship of the devices in the device set in different time periods;
基于所述特征向量确定所述设备集合中的设备之间的联动策略;Determining a linkage strategy between devices in the device set based on the feature vector;
基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作。Perform a linkage operation on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
可选地,所述对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,包括:Optionally, the performing correlation processing on the historical operation logs of each device to obtain the feature vector corresponding to the device set includes:
基于运行时间对所述各设备的历史操作日志进行整合,得到所述设备集合在不同时间段内的属性数据;Integrating historical operation logs of each device based on the running time to obtain attribute data of the device set in different time periods;
将所述设备集合在不同时间段内的属性数据转化为向量;Converting the attribute data of the device collection in different time periods into vectors;
基于预先配置的推荐算法对所述向量进行求解,得到所述设备集合对应的特征向量。The vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
可选地,所述设备集合包括触发设备和受控设备;Optionally, the device set includes a trigger device and a controlled device;
所述基于所述特征向量确定所述设备集合中的设备之间的联动策略,包括:The determining a linkage strategy between devices in the device set based on the feature vector includes:
对于每一时间段,根据所述触发设备在该时间段内的属性数据设置该时间段对应的联动触发条件;For each time period, set the linkage trigger condition corresponding to the time period according to the attribute data of the trigger device in the time period;
基于该时间段内所述触发设备与所述受控设备之间的关联关系及所述受控设备在该时间段内的属性数据,确定该时间段对应的联动动作;Determine the linkage action corresponding to the time period based on the association relationship between the triggering device and the controlled device in the time period and the attribute data of the controlled device in the time period;
基于不同时间段内对应的联动触发条件及联动动作生成所述设备集合中的设备之间的联动策略。A linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
可选地,所述基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作,包括:Optionally, the performing a linkage operation on the devices in the set of devices based on the linkage strategy between the devices in the set of devices includes:
获取所述触发设备的属性数据;Acquiring attribute data of the trigger device;
判断所述触发设备的属性数据是否符合当前所处的时间段对应的联动触发条件;Determine whether the attribute data of the trigger device meets the linkage trigger condition corresponding to the current time period;
在确定所述触发设备的属性数据符合当前所处的时间段对应的联动触发条件时,基于当前所处时间段对应的联动动作对所述受控设备进行联动操作。When it is determined that the attribute data of the triggering device meets the linkage triggering condition corresponding to the current time period, a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
可选地,所述触发设备包括传感器,所述受控设备包括智能家居设备。Optionally, the trigger device includes a sensor, and the controlled device includes a smart home device.
第二方面,本申请提供了一种设备联动装置,包括:In the second aspect, this application provides a device linkage device, including:
获取单元,用于获取设备集合中各设备的历史操作日志,所述历史操作 日志包括设备的运行时间及对应的属性数据;The obtaining unit is used to obtain historical operation logs of each device in the device set, where the historical operation log includes the running time of the device and corresponding attribute data;
关联处理单元,用于对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系;An association processing unit, configured to perform association processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, where the feature vector includes the association relationship of the devices in the device set in different time periods;
确定单元,用于基于所述特征向量确定所述设备集合中的设备之间的联动策略;A determining unit, configured to determine a linkage strategy between devices in the device set based on the feature vector;
操作单元,用于基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作。The operation unit is configured to perform linkage operations on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
可选地,所述关联处理单元具体用于:Optionally, the association processing unit is specifically configured to:
基于运行时间对所述各设备的历史操作日志进行整合,得到所述设备集合在不同时间段内的属性数据;Integrating historical operation logs of each device based on the running time to obtain attribute data of the device set in different time periods;
将所述设备集合在不同时间段内的属性数据转化为向量;Converting the attribute data of the device collection in different time periods into vectors;
基于预先配置的推荐算法对所述向量进行求解,得到所述设备集合对应的特征向量。The vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
可选地,所述设备集合包括触发设备和受控设备,所述确定单元具体用于:Optionally, the device set includes a trigger device and a controlled device, and the determining unit is specifically configured to:
对于每一时间段,根据所述触发设备在该时间段内的属性数据设置该时间段对应的联动触发条件;For each time period, set the linkage trigger condition corresponding to the time period according to the attribute data of the trigger device in the time period;
基于该时间段内所述触发设备与所述受控设备之间的关联关系及所述受控设备在该时间段内的属性数据,确定该时间段对应的联动动作;Determine the linkage action corresponding to the time period based on the association relationship between the triggering device and the controlled device in the time period and the attribute data of the controlled device in the time period;
基于不同时间段内对应的联动触发条件及联动动作生成所述设备集合中的设备之间的联动策略。A linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
可选地,所述操作单元具体用于:Optionally, the operating unit is specifically configured to:
获取所述触发设备的属性数据;Acquiring attribute data of the trigger device;
判断所述触发设备的属性数据是否符合当前所处的时间段对应的联动触发条件;Determine whether the attribute data of the trigger device meets the linkage trigger condition corresponding to the current time period;
在确定所述触发设备的属性数据符合当前所处的时间段对应的联动触发条件时,基于当前所处时间段对应的联动动作对所述受控设备进行联动操作。When it is determined that the attribute data of the triggering device meets the linkage triggering condition corresponding to the current time period, a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
可选地,所述触发设备包括传感器,所述受控设备包括智能家居设备。Optionally, the trigger device includes a sensor, and the controlled device includes a smart home device.
第三方面,本申请实施例提了供一种电子设备,包括:In the third aspect, an embodiment of the present application provides an electronic device, including:
处理器;processor;
用于存储所述处理器可执行指令的存储器;A memory for storing executable instructions of the processor;
其中,所述处理器被配置为执行所述指令,以实现第一方面所述的设备联动方法。Wherein, the processor is configured to execute the instruction to implement the device linkage method described in the first aspect.
第四方面,本申请实施例了提供一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行的第一方面所述的设备联动方法。In a fourth aspect, an embodiment of the present application provides a storage medium, which enables the electronic device to execute the device linkage method described in the first aspect when the instructions in the storage medium are executed by the processor of the electronic device.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:The foregoing at least one technical solution adopted in the embodiments of the present application can achieve the following beneficial effects:
通过获取设备集合中各设备的历史操作日志进行关联处理,得到包含设备集合中的设备在不同时间段内的关联关系的特征向量,基于所述特征向量确定所述设备集合中的设备之间的联动策略,可以实现联动策略的自动化及智能化配置,整个过程无需用户参与,简化了联动策略的配置过程,提高了配置效率。并且,联动策略的确定是对设备集合中各设备的历史操作日志进行关联处理得到的,进一步地,基于所述联动策略对所述设备集合中的设备进行联动操作,可以动态适应不同的场景需求。By obtaining the historical operation logs of each device in the device set for association processing, a feature vector containing the relationship between the devices in the device set in different time periods is obtained, and the relationship between the devices in the device set is determined based on the feature vector. The linkage strategy can realize the automation and intelligent configuration of the linkage strategy. The whole process does not require user participation, which simplifies the configuration process of the linkage strategy and improves the configuration efficiency. In addition, the linkage strategy is determined by associating the historical operation logs of each device in the device set. Further, the linkage operation of the devices in the device set based on the linkage strategy can dynamically adapt to different scene requirements. .
附图说明Description of the drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The exemplary embodiments and descriptions of the application are used to explain the application, and do not constitute an improper limitation of the application. In the attached picture:
图1为本申请实施例提供的一种设备联动方法的流程图。FIG. 1 is a flowchart of a device linkage method provided by an embodiment of the application.
图2为本申请实施例提供的另一种设备联动方法的流程图。FIG. 2 is a flowchart of another device linkage method provided by an embodiment of the application.
图3为本申请实施例提供的一种设备联动装置的框图。FIG. 3 is a block diagram of a device linkage device provided by an embodiment of the application.
图4为本申请实施例提供的一种电子设备的框图。FIG. 4 is a block diagram of an electronic device provided by an embodiment of this application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
以下结合附图,详细说明本申请各实施例提供的技术方案。The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
请参考图1,图1示出了本申请实施例提供的一种设备联动方法的流程图,该方法可应用于电子设备,其中,所述电子设备可以包括但不限于膝上型电脑、便携式电脑、服务器等,其可以分别与所述设备集合中的各设备通信连接,以获取所述设备集合中的各设备的历史操作日志以及对所述设备集合中的设备进行控制。如图1所示,该方法可以包括以下步骤:Please refer to FIG. 1, which shows a flowchart of a device linkage method provided by an embodiment of the present application. The method can be applied to electronic devices, where the electronic devices may include, but are not limited to, laptop computers, portable computers, and portable computers. A computer, a server, etc., which can respectively communicate and connect with each device in the device set to obtain historical operation logs of each device in the device set and to control the devices in the device set. As shown in Figure 1, the method may include the following steps:
S101、获取设备集合中的各设备的历史操作日志。S101. Obtain historical operation logs of each device in the device set.
在本申请实施例中,设备集合中的设备可以包括触发设备和受控设备。其中,触发设备可以包括传感器,用于对所处的智能场景的环境温度、环境湿度、光照亮度、人体、门窗状态等进行感知,其可以包括但不限于用于检测所处的智能场景的环境温度的温度传感器、用于检测所处的智能场景的环境湿度的湿度传感器、用于检测所处的智能场景的光照强度的光线传感器、用于检测所处的智能场景是否有人体存在的人体感应器、用于检测所处的智能场景的环境信息图像传感器等。触发设备可以实时向上述电子设备传输其操作日志。In the embodiment of the present application, the devices in the device set may include triggering devices and controlled devices. Among them, the trigger device may include a sensor for sensing the ambient temperature, environmental humidity, light brightness, human body, door and window status, etc. of the smart scene. It may include, but is not limited to, detecting the environment of the smart scene. Temperature sensor for temperature, humidity sensor for detecting the environmental humidity of the smart scene, light sensor for detecting the light intensity of the smart scene, human body sensing for detecting whether there is a human body in the smart scene Sensor, environmental information image sensor used to detect the smart scene in which it is located, etc. The trigger device can transmit its operation log to the above-mentioned electronic device in real time.
受控设备可以包括部署于智能场景(如智能家居场景)中的各类智能设备,例如包括但不限于照明设备、空调、加湿器、音视频播放设备、供暖设 备、窗帘、安防设备等,受控设备可以具备通信能力(如无线或有线通信能力)而与上述电子设备进行数据交互,比如可以实时向上述电子设备传输其历史操作日志并基于上述电子设备输出的控制信号工作。Controlled devices can include various smart devices deployed in smart scenarios (such as smart home scenarios), such as but not limited to lighting equipment, air conditioners, humidifiers, audio and video playback equipment, heating equipment, curtains, security equipment, etc. The control device can have communication capabilities (such as wireless or wired communication capabilities) to interact with the above electronic device. For example, it can transmit its historical operation log to the above electronic device in real time and work based on the control signal output by the above electronic device.
另外,设备的历史操作日志可以包括设备的运行时间及对应的属性数据,其中,设备的属性数据是指设备的运行参数,不同设备的属性数据不同。示例性地,照明设备的属性数据可以例如包括但不限于运行状态(开启或关闭)、照度、色温等运行参数,温度传感器的属性数据可以例如包括温度值等。表1示出了一种设备1的历史操作日志。In addition, the historical operation log of the device may include the operating time of the device and corresponding attribute data, where the attribute data of the device refers to the operating parameters of the device, and the attribute data of different devices are different. Exemplarily, the attribute data of the lighting device may include, but are not limited to, operating status (on or off), illuminance, color temperature, and other operating parameters, and the attribute data of the temperature sensor may include, for example, temperature values. Table 1 shows a historical operation log of a device 1.
表1Table 1
设备1Equipment 1 运行时间operation hours
属性数据1Attribute data 1 2019-6-24,周一,15:302019-6-24, Monday, 15:30
属性数据2Attribute data 2 2019-6-24,周一,15:402019-6-24, Monday, 15:40
……... ……...
S102、对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量。S102. Perform correlation processing on historical operation logs of each device to obtain a feature vector corresponding to the device set.
其中,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系。所述设备集合中的设备在不同时间段内的关联关系记录了在不同时间段内所述设备集合中的哪些设备之间可以联动。示例性地,所述特征向量中包含在时间段A内空调与电视之间的关联关系,则在智能家居场景中,空调与电视在时间段A就可以联动。Wherein, the feature vector includes the association relationship of the devices in the device set in different time periods. The association relationship of the devices in the device set in different time periods records which devices in the device set can be linked in different time periods. Exemplarily, the feature vector includes the association relationship between the air conditioner and the TV in the time period A, then in the smart home scene, the air conditioner and the TV can be linked in the time period A.
S103、基于所述特征向量确定所述设备集合中的设备之间的联动策略。S103: Determine a linkage strategy between devices in the device set based on the feature vector.
可选地,联动策略可以包括联动触发条件和对应的联动动作,所述联动策略用于指示在智能环境中的参数满足联动触发条件时执行对应的联动动作。Optionally, the linkage strategy may include linkage trigger conditions and corresponding linkage actions, and the linkage strategy is used to instruct to execute the corresponding linkage actions when the parameters in the smart environment meet the linkage trigger conditions.
示例性地,联动动作可以为开启客厅的空调和电视且拉上客厅的窗帘, 该联动动作对应的触发条件可以为夏季每晚17:00~17:30检测到用户在家,相应地,联动策略包括在夏季每晚17:00~17:30检测到用户回家的情况下开启客厅的空调和电视且拉上客厅的窗帘。Exemplarily, the linkage action may be turning on the air conditioner and TV in the living room and pulling the curtains in the living room. The triggering condition corresponding to the linkage action may be that the user is detected to be at home from 17:00 to 17:30 every night in summer, and the linkage strategy This includes turning on the air conditioner and TV in the living room and closing the curtains in the living room when the user is detected to go home from 17:00 to 17:30 every night in summer.
需要说明的是,所述设备集合中的设备的联动策略可以包括多个联动触发条件(如不同时间段对应的联动触发条件)及其对应的联动动作。It should be noted that the linkage strategy of the devices in the device set may include multiple linkage trigger conditions (such as linkage trigger conditions corresponding to different time periods) and corresponding linkage actions.
S104、基于所述设备集合中的设备之间的联动策略对所述设备集合中的设备进行联动操作。S104: Perform a linkage operation on the devices in the device set based on the linkage strategy between the devices in the device set.
实际应用时,上述确定的联动策略可以预先设置在上述用于控制所述设备集合中的设备的电子设备中,由所述电子设备按照上述确定的联动策略生成相应的控制指令并发送至所述设备集合中的设备,以对所述设备集合中的设备进行联动操作。In actual application, the aforementioned determined linkage strategy can be preset in the aforementioned electronic device used to control the devices in the device set, and the electronic device generates a corresponding control instruction according to the aforementioned determined linkage strategy and sends it to the The devices in the device set are used to perform linkage operations on the devices in the device set.
可见,本申请实施例所述的设备联动方法,通过获取设备集合中各设备的历史操作日志进行关联处理,得到包含设备集合中的设备在不同时间段内的关联关系的特征向量,基于所述特征向量确定所述设备集合中的设备之间的联动策略,可以实现联动策略的自动化及智能化配置,整个过程无需用户参与,简化了联动策略的配置过程,提高了配置效率。并且,联动策略的确定是对设备集合中各设备的历史操作日志进行关联处理得到的,进一步地,基于所述联动策略对所述设备集合中的设备进行联动操作,可以动态适应不同的场景需求。It can be seen that the device linkage method described in the embodiment of the present application obtains the feature vector containing the association relationship of the devices in the device set in different time periods by obtaining the historical operation log of each device in the device set for association processing, based on the The feature vector determines the linkage strategy between the devices in the device set, which can realize the automation and intelligent configuration of the linkage strategy. The entire process does not require user involvement, which simplifies the configuration process of the linkage strategy and improves the configuration efficiency. In addition, the linkage strategy is determined by associating the historical operation logs of each device in the device set. Further, the linkage operation of the devices in the device set based on the linkage strategy can dynamically adapt to different scene requirements. .
为了使本领域技术人员更加理解本申请实施例提供的技术方案,下面对本申请实施例提供的设备联动方法进行详细说明。In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, the device linkage method provided in the embodiments of the present application will be described in detail below.
首先,针对上述步骤S102,如图2所示,在一种可选的实施方式中,对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,具体包括:First, for the above step S102, as shown in FIG. 2, in an optional implementation manner, performing correlation processing on the historical operation logs of each device to obtain the feature vector corresponding to the device set specifically includes:
S121、基于运行时间对所述各设备的历史操作日志进行整合,得到所述设备集合在不同时间段内的属性数据。S121: Integrate historical operation logs of each device based on the running time to obtain attribute data of the device set in different time periods.
具体实施时,可以按照设定的时间间隔(如10分钟)对设备集合中各设备的历史操作日志进行合并,得到各个设备在不同时间段内的属性数据。示例性地,表2示出了一种合并后得到的设备集合在不同时间段内的属性数据。During specific implementation, the historical operation logs of each device in the device set can be merged at a set time interval (such as 10 minutes) to obtain attribute data of each device in different time periods. Exemplarily, Table 2 shows the attribute data of a device set obtained after merging in different time periods.
表2Table 2
照明设备lighting device 空调air conditioning 电视TV 人体感应器Human body sensor 时间段period
开,50LxOpen, 50Lx 开,22°Open, 22° open 感应到用户Sense the user 17:30-17:4017:30-17:40
turn off 开,26°Open, 26° turn off 未感应到用户User not detected 23:00~23:1023:00~23:10
S122、将所述设备集合在不同时间段内的属性数据转化为向量。S122: Convert the attribute data of the device set in different time periods into vectors.
S123、基于预先配置的推荐算法对转化得到的向量进行求解,得到所述设备集合对应的特征向量。S123: Solve the transformed vector based on the pre-configured recommendation algorithm to obtain the feature vector corresponding to the device set.
可选地,所述推荐算法可以包括SVD(Singular Value Decomposition,奇异值分解)算法,基于SVD算法对转化得到的向量进行求解得到所述设备集合对应的特征向量的具体实现方式为本领域的常用方式,此处不再赘述。当然,可以理解,所述推荐算法还还可以包括其他的人工智能推荐算法。Optionally, the recommendation algorithm may include an SVD (Singular Value Decomposition, singular value decomposition) algorithm. The converted vector is solved based on the SVD algorithm to obtain the feature vector corresponding to the device set. The specific implementation method is commonly used in the field. Ways, I won’t repeat them here. Of course, it can be understood that the recommendation algorithm may also include other artificial intelligence recommendation algorithms.
通过预先配置的推荐算法对转化得到的向量进行求解,可以得到设备集合对应的特征向量,其中,特征向量包含了所述设备集合中的设备在不同时间段内的关联关系。By solving the converted vector through a pre-configured recommendation algorithm, the feature vector corresponding to the device set can be obtained, where the feature vector contains the association relationship of the devices in the device set in different time periods.
示例性地,以上述表2所示的设备集合在不同时间段内的属性数据为例,通过将所述不同时间段内的属性数据转化为向量并基于求解后可以得到在17:30-17:40这一时间段内,照明设备、空调以及电视之间具有联动关系。Exemplarily, taking the attribute data of the device set shown in Table 2 above in different time periods as an example, by converting the attribute data in the different time periods into a vector and solving it, it can be obtained at 17:30-17 : During this period of time, there is a linkage relationship among lighting equipment, air conditioners, and televisions.
需要说明的是,在实际应用时,以智能家居这一应用场景为例,随着智能家居设备及传感器等的不断增多,所述设备集合不断更新,且所述设备集合中的各设备的历史操作日志不断增多,上述设备集合在不同时间段内的属性数据也可以根据实际情况进行不断更新,以形成更加完整的所述设备集合 中的设备在不同时间段内的关联关系,进而最终得到更加智能化、自适应性的联动策略。It should be noted that in practical applications, taking the application scenario of smart home as an example, with the continuous increase of smart home devices and sensors, the device collection is constantly updated, and the history of each device in the device collection The operation log keeps increasing, and the attribute data of the above-mentioned device set in different time periods can also be continuously updated according to actual conditions to form a more complete association relationship between the devices in the device set in different time periods, and finally get more Intelligent and adaptive linkage strategy.
可以理解,在该实施方式中,通过对所述设备集合中的各设备得到历史操作日志按照运行时间进行整合以得到所述设备集合在不同时间段内的属性数据,并将整合得到的属性数据转化为向量后基于预先配置的推荐算法对向量进行求解以获得所述设备集合对应的特征向量,可以实现联动策略的动态化及个性化构建,且使得最终得到的联动策略更准确。It can be understood that, in this embodiment, the historical operation logs obtained by each device in the device set are integrated according to the running time to obtain the attribute data of the device set in different time periods, and the obtained attribute data is integrated After being converted into a vector, the vector is solved based on the pre-configured recommendation algorithm to obtain the feature vector corresponding to the device set, which can realize the dynamic and personalized construction of the linkage strategy, and make the final linkage strategy more accurate.
接着,针对上述步骤S103,在一种可选的实施方式中,所述基于所述设备集合对应的特征向量确定所述设备集合中的设备之间的联动策略,包括:Next, for the above step S103, in an optional implementation manner, the determining the linkage strategy between the devices in the device set based on the feature vector corresponding to the device set includes:
S131、对于每一时间段,根据所述触发设备在该时间段内的属性数据设置该时间段对应的联动触发条件。S131. For each time period, set a linkage trigger condition corresponding to the time period according to the attribute data of the trigger device in the time period.
示例性地,以所述设备集合中的触发设备包括人体感应器为例,时间段A对应的联动触发条件可以设置为在时间段17:30~17:40内人体感应器输出用于指示检测到人体指示信号;又如,所述设备集合中的触发设备还可以包括图像传感器,时间段23:00~23:10对应的联动触发条件可以设置为在时间段23:00~23:10内图像传感器输出用于指示用户处于睡眠状态的指示信号,等等。Exemplarily, taking the triggering device in the device set including a human sensor as an example, the linkage trigger condition corresponding to time period A can be set as the human sensor output in the time period 17:30~17:40 for indicating detection To the human body indication signal; for another example, the trigger device in the device set may also include an image sensor, and the linkage trigger condition corresponding to the time period 23:00 to 23:10 may be set to be in the time period 23:00 to 23:10 The image sensor outputs an indication signal for indicating that the user is in a sleep state, and so on.
S132、基于该时间段内所述设备集合中的触发设备与受控设备之间的关联关系及所述受控设备在该时间段内的属性数据,确定该时间段对应的联动动作。S132: Determine the linkage action corresponding to the time period based on the association relationship between the triggering device and the controlled device in the device set in the time period and the attribute data of the controlled device in the time period.
示例性地,所述设备集合中的触发设备包括人体感应器和图像传感器且受控设备包括空调、电视、窗帘、照明设备等各种智能家居设备为例,在时间段17:30~17:40内所述设备集合中的触发设备与受控设备之间的关联关系为人体感应器与空调、电视、窗帘联动,且在该时间段内空调的属性数据包括开启状态、温度22°,电视对应的属性数据为开启,而窗帘对应的属性数据为关闭,则可确定时间段17:30~17:40的对应的联动动作为“开启空调并调 至22°、开启电视并拉上窗帘”;又如,在时间段23:00~23:10内所述设备集合中的触发设备与受控设备之间的关联关系为图像传感器与空调、电视及照明设备联动,且在该时间段内空调、电视和照明设备的对应的属性数据均为关闭,则可确定时间段23:00~23:10对应的联动动作为“关闭空调、电视和照明设备”。Exemplarily, the trigger device in the device set includes a human body sensor and an image sensor, and the controlled device includes various smart home devices such as air conditioners, TVs, curtains, and lighting devices, for example, in the time period 17:30-17: The association relationship between the triggering device and the controlled device in the device set in 40 is that the human sensor is linked with the air conditioner, TV, and curtain, and the attribute data of the air conditioner in this time period includes the on state, the temperature of 22°, and the TV The corresponding attribute data is open, and the corresponding attribute data of the curtain is closed, it can be determined that the corresponding linkage action for the time period from 17:30 to 17:40 is "turn on the air conditioner and adjust it to 22°, turn on the TV and draw the curtains" ; For another example, the association between the triggering device and the controlled device in the device set in the time period 23:00 to 23:10 is that the image sensor is linked with the air conditioner, TV, and lighting equipment, and in this time period The corresponding attribute data of the air conditioner, TV and lighting equipment are all turned off, and the linkage action corresponding to the time period of 23:00 to 23:10 can be determined as "turn off the air conditioner, TV and lighting equipment".
S133、基于不同时间段内对应的联动触发条件及联动动作生成所述设备集合中的设备之间的联动策略。S133: Generate a linkage strategy between devices in the device set based on corresponding linkage trigger conditions and linkage actions in different time periods.
具体地,可通过将不同时间段内对应的联动触发条件及联动动作关联,得到所述设备集合中的设备之间的联动策略,所述联动策略用于指示在不同时间段内所述设备集合中的触发设备的属性数据满足对应的联动触发条件时控制所述设备集合中的受控设备执行对应的联动动作。Specifically, the linkage strategy between the devices in the device set can be obtained by associating the corresponding linkage trigger conditions and linkage actions in different time periods, and the linkage strategy is used to indicate the device set in different time periods. When the attribute data of the trigger device in the device meets the corresponding linkage trigger condition, the controlled device in the device set is controlled to perform the corresponding linkage action.
可以理解,通过所述设备集合中的触发设备的属性数据来确定相应的联动触发条件并通过所述设备集合中的受控设备的属性数据及与触发设备之间的联动关系来确定与联动触发条件对应的联动动作,以得到所述设备集合中的设备之间的联动策略,将触发设备与受控设备之间关联,以通过触发设备触发联动受控设备,而不再依赖于用户手动配置联动策略,从而进一步提高了联动策略的配置效率和准确性。It can be understood that the corresponding linkage trigger condition is determined by the attribute data of the triggering device in the device set, and the linkage trigger is determined by the attribute data of the controlled device in the device set and the linkage relationship with the triggering device. The linkage action corresponding to the condition to obtain the linkage strategy between the devices in the device set, and associate the triggering device with the controlled device to trigger the linkage controlled device through the triggering device, instead of relying on manual configuration by the user The linkage strategy further improves the configuration efficiency and accuracy of the linkage strategy.
最后,针对上述步骤S104,如图2所示,所述基于所述设备集合中的设备之间的联动策略对所述设备集合中的设备进行联动操作,包括:Finally, with regard to the above step S104, as shown in FIG. 2, the performing linkage operations on the devices in the device set based on the linkage strategy between the devices in the device set includes:
S141、获取所述触发设备的属性数据。S141. Acquire attribute data of the trigger device.
可选地,所述设备集合中的触发设备可以实时向上述电子设备上传其属性数据;或者,上述电子设备以及按照设定的时间间隔向所述设备集合中的触发设备发送获取请求,以请求向所述触发设备获取属性数据。Optionally, the trigger device in the device set can upload its attribute data to the electronic device in real time; or, the electronic device and at a set time interval send an acquisition request to the trigger device in the device set to request Obtain attribute data from the trigger device.
S142、判断所述触发设备的属性数据是否符合当前所处的时间段对应的联动触发条件。S142: Determine whether the attribute data of the trigger device meets the linkage trigger condition corresponding to the current time period.
上述电子设备在获取到所述触发设备的属性数据后,判断获取到的属性 数据是否符合当前所处的时间段对应的联动触发条件,若满足,则可执行步骤S143。可选地,若不满足,则可执行步骤S144,即丢弃所述触发设备的属性数据。After acquiring the attribute data of the trigger device, the above electronic device judges whether the acquired attribute data meets the linkage trigger condition corresponding to the current time period. If it is satisfied, step S143 may be executed. Optionally, if it is not satisfied, step S144 may be performed, that is, the attribute data of the trigger device is discarded.
S143、基于当前所处时间段对应的联动动作对所述受控设备进行联动操作。S143: Perform a linkage operation on the controlled device based on the linkage action corresponding to the current time period.
示例性地,以所述的联动策略包括“在夏季17:30~17:40检测到用户在家时,开启空调并调至22°,开启电视且拉上窗帘”为例,当上述用于控制所述设备集合的电子设备在夏季17:30~17:40获取到人体感应器输出的指示检测到人体的指示信号时,则可分别向空调、电视以及窗帘输出相应的控制信号,以控制空调开启并调节至22°、控制电视开启以及控制窗帘关闭。Exemplarily, the linkage strategy includes "when the user is detected at 17:30~17:40 in summer, turn on the air conditioner and adjust it to 22°, turn on the TV and draw the curtains" as an example, when the above is used to control The electronic equipment of the equipment set obtains the indication signal output by the human body sensor at 17:30~17:40 in summer. When the indication signal of the human body is detected, it can output corresponding control signals to the air conditioner, TV, and curtain to control the air conditioner. Turn on and adjust to 22°, control the TV to open and control the curtains to close.
可以理解,在该实施方式中,通过判断设备集合中的触发设备的属性数据是否满足所处时间段对应的联动触发条件,并在确定所述触发设备的属性数据满足所述联动触发条件时触发所述设备集合中的受控设备执行相应的联动动作,智能场景下的设备操控将自动进行,而不再依赖于用户的操控,提升了用户体验。It can be understood that, in this embodiment, it is determined whether the attribute data of the trigger device in the device set meets the linkage trigger condition corresponding to the time period, and triggers when it is determined that the attribute data of the trigger device meets the linkage trigger condition. The controlled devices in the device set execute corresponding linkage actions, and the device manipulation in the smart scene will be performed automatically, instead of relying on the user's manipulation, and the user experience is improved.
需要说明的是,上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。It should be noted that the specific embodiments of this specification are described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
请参考图3,图3示出了本申请实施例提供的一种设备联动装置的框图。如图3所示,该装置300可以包括:获取单元301、关联处理单元302、确定单元303以及操作单元304。Please refer to FIG. 3, which shows a block diagram of a device linkage device provided by an embodiment of the present application. As shown in FIG. 3, the apparatus 300 may include: an acquisition unit 301, an association processing unit 302, a determination unit 303, and an operation unit 304.
该获取单元301用于获取设备集合中各设备的历史操作日志,所述历史操作日志包括设备的运行时间及对应的属性数据。The obtaining unit 301 is configured to obtain historical operation logs of each device in the device set, the historical operation log including the running time of the device and corresponding attribute data.
该关联处理单元302对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系。The correlation processing unit 302 performs correlation processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, and the feature vector includes the correlation relationship of the devices in the device set in different time periods.
该确定单元303用于基于所述特征向量确定所述设备集合中的设备之间的联动策略。The determining unit 303 is configured to determine a linkage strategy between devices in the device set based on the feature vector.
该操作单元304用于基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作。The operating unit 304 is configured to perform linkage operations on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
可见,本申请实施例所述的设备联动装置,通过获取设备集合中各设备的历史操作日志进行关联处理,得到包含设备集合中的设备在不同时间段内的关联关系的特征向量,基于所述特征向量确定所述设备集合中的设备之间的联动策略,可以实现联动策略的自动化及智能化配置,整个过程无需用户参与,简化了联动策略的配置过程,提高了配置效率。并且,联动策略的确定是对设备集合中各设备的历史操作日志进行关联处理得到的,进一步地,基于所述联动策略对所述设备集合中的设备进行联动操作,可以动态适应不同的场景需求。It can be seen that the device linkage device described in the embodiment of the present application obtains the feature vector containing the association relationship of the devices in the device set in different time periods by obtaining the historical operation log of each device in the device set for association processing, based on the The feature vector determines the linkage strategy between the devices in the device set, which can realize the automation and intelligent configuration of the linkage strategy. The entire process does not require user involvement, which simplifies the configuration process of the linkage strategy and improves the configuration efficiency. In addition, the linkage strategy is determined by associating the historical operation logs of each device in the device set. Further, the linkage operation of the devices in the device set based on the linkage strategy can dynamically adapt to different scene requirements. .
可选地,所述关联处理单元302具体用于:Optionally, the association processing unit 302 is specifically configured to:
基于运行时间对所述各设备的历史操作日志进行整合,得到所述设备集合在不同时间段内的属性数据;Integrating historical operation logs of each device based on the running time to obtain attribute data of the device set in different time periods;
将所述设备集合在不同时间段内的属性数据转化为向量;Converting the attribute data of the device collection in different time periods into vectors;
基于预先配置的推荐算法对所述向量进行求解,得到所述设备集合对应的特征向量。The vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
可选地,所述设备集合包括触发设备和受控设备;Optionally, the device set includes a trigger device and a controlled device;
所述确定单元303具体用于:The determining unit 303 is specifically configured to:
对于每一时间段,根据所述触发设备在该时间段内的属性数据设置该时间段对应的联动触发条件;For each time period, set the linkage trigger condition corresponding to the time period according to the attribute data of the trigger device in the time period;
基于该时间段内所述触发设备与所述受控设备之间的关联关系及所述受 控设备在该时间段内的属性数据,确定该时间段对应的联动动作;Determine the linkage action corresponding to the time period based on the association relationship between the triggering device and the controlled device in the time period and the attribute data of the controlled device in the time period;
基于不同时间段内对应的联动触发条件及联动动作生成所述设备集合中的设备之间的联动策略。A linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
可选地,所述操作单元304具体用于:Optionally, the operating unit 304 is specifically configured to:
获取所述触发设备的属性数据;Acquiring attribute data of the trigger device;
判断所述触发设备的属性数据是否符合当前所处的时间段对应的联动触发条件;Determine whether the attribute data of the trigger device meets the linkage trigger condition corresponding to the current time period;
在确定所述触发设备的属性数据符合当前所处的时间段对应的联动触发条件时,基于当前所处时间段对应的联动动作对所述受控设备进行联动操作。When it is determined that the attribute data of the triggering device meets the linkage triggering condition corresponding to the current time period, a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
可选地,所述触发设备包括传感器,所述受控设备包括智能家居设备。Optionally, the trigger device includes a sensor, and the controlled device includes a smart home device.
关于上述实施例中的装置,其各个单元执行操作的具体方式已经在该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the foregoing embodiment, the specific manners for performing operations of each unit thereof have been described in detail in the embodiment of the method, and detailed description will not be given here.
图4是本申请的一个实施例的电子设备的结构示意图。请参考图4,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Please refer to FIG. 4, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. Among them, the memory may include memory, such as high-speed random access memory (Random-Access Memory, RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required by other services.
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The processor, network interface, and memory can be connected to each other through an internal bus. The internal bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus, or an EISA (Extended) bus. Industry Standard Architecture, extended industry standard structure) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of presentation, only one bidirectional arrow is used to indicate in FIG. 4, but it does not mean that there is only one bus or one type of bus.
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理 器提供指令和数据。Memory, used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include memory and non-volatile memory, and provide instructions and data to the processor.
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成设备联动装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:The processor reads the corresponding computer program from the non-volatile memory to the memory and then runs, forming an equipment linkage device at the logical level. The processor executes the program stored in the memory, and is specifically used to perform the following operations:
获取设备集合中各设备的历史操作日志,所述历史操作日志包括设备的运行时间及对应的属性数据;Acquiring a historical operation log of each device in the device set, where the historical operation log includes the running time of the device and corresponding attribute data;
对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系;Performing correlation processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, where the feature vector includes the association relationship of the devices in the device set in different time periods;
基于所述特征向量确定所述设备集合中的设备之间的联动策略;Determining a linkage strategy between devices in the device set based on the feature vector;
基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作。Perform a linkage operation on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
上述如本申请图1或图2所示实施例揭示的设备联动装置执行的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储 介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The foregoing method performed by the device linkage apparatus disclosed in the embodiment shown in FIG. 1 or FIG. 2 of this application may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
该电子设备还可执行图1或图2的方法,并实现设备联动装置在图1、图2所示实施例的功能,本申请实施例在此不再赘述。The electronic device can also execute the method of FIG. 1 or FIG. 2 and realize the functions of the embodiments of the device linkage device shown in FIG. 1 and FIG. 2, which will not be repeated in the embodiments of the present application.
当然,除了软件实现方式之外,本申请的电子设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Of course, in addition to the software implementation, the electronic equipment of this application does not exclude other implementations, such as logic devices or a combination of software and hardware, etc. That is to say, the execution body of the following processing flow is not limited to each logic unit. It can also be a hardware or logic device.
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的便携式电子设备执行时,能够使该便携式电子设备执行图1所示实施例的方法,并具体用于执行以下操作:The embodiment of the present application also proposes a computer-readable storage medium that stores one or more programs, and the one or more programs include instructions. When the instructions are included in a portable electronic device that includes multiple application programs When executed, the portable electronic device can be made to execute the method of the embodiment shown in FIG. 1, and is specifically used to execute the following operations:
获取设备集合中各设备的历史操作日志,所述历史操作日志包括设备的运行时间及对应的属性数据Obtain the historical operation log of each device in the device set, the historical operation log includes the running time of the device and the corresponding attribute data
对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系;Performing correlation processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, where the feature vector includes the association relationship of the devices in the device set in different time periods;
基于所述特征向量确定所述设备集合中的设备之间的联动策略;Determining a linkage strategy between devices in the device set based on the feature vector;
基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作。Perform a linkage operation on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
总之,以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。In short, the above descriptions are only preferred embodiments of the present application, and are not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.
上述实施例阐明的***、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、 游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units illustrated in the above embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于***实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

Claims (12)

  1. 一种设备联动方法,其中,包括:A device linkage method, which includes:
    获取设备集合中各设备的历史操作日志,所述历史操作日志包括设备的运行时间及对应的属性数据;Acquiring a historical operation log of each device in the device set, where the historical operation log includes the running time of the device and corresponding attribute data;
    对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系;Performing correlation processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, where the feature vector includes the association relationship of the devices in the device set in different time periods;
    基于所述特征向量确定所述设备集合中的设备之间的联动策略;Determining a linkage strategy between devices in the device set based on the feature vector;
    基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作。Perform a linkage operation on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
  2. 根据权利要求1所述的方法,其中,所述对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,包括:The method according to claim 1, wherein said performing correlation processing on the historical operation logs of each device to obtain the feature vector corresponding to the device set comprises:
    基于运行时间对所述各设备的历史操作日志进行整合,得到所述设备集合在不同时间段内的属性数据;Integrating historical operation logs of each device based on the running time to obtain attribute data of the device set in different time periods;
    将所述设备集合在不同时间段内的属性数据转化为向量;Converting the attribute data of the device collection in different time periods into vectors;
    基于预先配置的推荐算法对所述向量进行求解,得到所述设备集合对应的特征向量。The vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
  3. 根据权利要求1所述的方法,其中,所述设备集合包括触发设备和受控设备;The method according to claim 1, wherein the device set includes a trigger device and a controlled device;
    所述基于所述特征向量确定所述设备集合中的设备之间的联动策略,包括:The determining a linkage strategy between devices in the device set based on the feature vector includes:
    对于每一时间段,根据所述触发设备在该时间段内的属性数据设置该时间段对应的联动触发条件;For each time period, set the linkage trigger condition corresponding to the time period according to the attribute data of the trigger device in the time period;
    基于该时间段内所述触发设备与所述受控设备之间的关联关系及所述受控设备在该时间段内的属性数据,确定该时间段对应的联动动作;Determine the linkage action corresponding to the time period based on the association relationship between the triggering device and the controlled device in the time period and the attribute data of the controlled device in the time period;
    基于不同时间段内对应的联动触发条件及联动动作生成所述设备集合中的设备之间的联动策略。A linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
  4. 根据权利要求3所述的方法,其中,所述基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作,包括:The method according to claim 3, wherein said performing a linkage operation on the devices in the set of devices based on the linkage strategy between the devices in the set of devices comprises:
    获取所述触发设备的属性数据;Acquiring attribute data of the trigger device;
    判断所述触发设备的属性数据是否符合当前所处的时间段对应的联动触发条件;Determine whether the attribute data of the trigger device meets the linkage trigger condition corresponding to the current time period;
    在确定所述触发设备的属性数据符合当前所处的时间段对应的联动触发条件时,基于当前所处时间段对应的联动动作对所述受控设备进行联动操作。When it is determined that the attribute data of the triggering device meets the linkage triggering condition corresponding to the current time period, a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
  5. 根据权利要求3或4所述的方法,其中,所述触发设备包括传感器,所述受控设备包括智能家居设备。The method according to claim 3 or 4, wherein the trigger device includes a sensor, and the controlled device includes a smart home device.
  6. 一种设备联动装置,其中,包括:A device linkage device, which includes:
    获取单元,用于获取设备集合中各设备的历史操作日志,所述历史操作日志包括设备的运行时间及对应的属性数据;The obtaining unit is configured to obtain historical operation logs of each device in the device set, where the historical operation log includes the running time of the device and corresponding attribute data;
    关联处理单元,用于对所述各设备的历史操作日志进行关联处理,得到所述设备集合对应的特征向量,所述特征向量包括所述设备集合中的设备在不同时间段内的关联关系;An association processing unit, configured to perform association processing on the historical operation logs of each device to obtain a feature vector corresponding to the device set, where the feature vector includes the association relationship of the devices in the device set in different time periods;
    确定单元,用于基于所述特征向量确定所述设备集合中的设备之间的联动策略;A determining unit, configured to determine a linkage strategy between devices in the device set based on the feature vector;
    操作单元,用于基于所述设备集合中的设备之间的联动策略对所述集合设备中的设备进行联动操作。The operation unit is configured to perform linkage operations on the devices in the set of devices based on the linkage strategy between the devices in the set of devices.
  7. 根据权利要求6所述的装置,其中,所述关联处理单元具体用于:The device according to claim 6, wherein the association processing unit is specifically configured to:
    基于运行时间对所述各设备的历史操作日志进行整合,得到所述设备集合在不同时间段内的属性数据;Integrating historical operation logs of each device based on the running time to obtain attribute data of the device set in different time periods;
    将所述设备集合在不同时间段内的属性数据转化为向量;Converting the attribute data of the device collection in different time periods into vectors;
    基于预先配置的推荐算法对所述向量进行求解,得到所述设备集合对应的特征向量。The vector is solved based on a pre-configured recommendation algorithm to obtain a feature vector corresponding to the device set.
  8. 根据权利要求6所述的装置,其中,所述设备集合包括触发设备和受控设备,所述确定单元具体用于:The apparatus according to claim 6, wherein the device set includes a trigger device and a controlled device, and the determining unit is specifically configured to:
    对于每一时间段,根据所述触发设备在该时间段内的属性数据设置该时间段对应的联动触发条件;For each time period, set the linkage trigger condition corresponding to the time period according to the attribute data of the trigger device in the time period;
    基于该时间段内所述触发设备与所述受控设备之间的关联关系及所述受控设备在该时间段内的属性数据,确定该时间段对应的联动动作;Determine the linkage action corresponding to the time period based on the association relationship between the triggering device and the controlled device in the time period and the attribute data of the controlled device in the time period;
    基于不同时间段内对应的联动触发条件及联动动作生成所述设备集合中的设备之间的联动策略。A linkage strategy between the devices in the device set is generated based on the corresponding linkage trigger conditions and linkage actions in different time periods.
  9. 根据权利要求8所述的装置,其中,所述操作单元具体用于:The device according to claim 8, wherein the operating unit is specifically configured to:
    获取所述触发设备的属性数据;Acquiring attribute data of the trigger device;
    判断所述触发设备的属性数据是否符合当前所处的时间段对应的联动触发条件;Determine whether the attribute data of the trigger device meets the linkage trigger condition corresponding to the current time period;
    在确定所述触发设备的属性数据符合当前所处的时间段对应的联动触发条件时,基于当前所处时间段对应的联动动作对所述受控设备进行联动操作。When it is determined that the attribute data of the triggering device meets the linkage triggering condition corresponding to the current time period, a linkage operation is performed on the controlled device based on the linkage action corresponding to the current time period.
  10. 根据权利要求8或9所述的装置,其中,所述触发设备包括传感器,所述受控设备包括智能家居设备。The apparatus according to claim 8 or 9, wherein the trigger device includes a sensor, and the controlled device includes a smart home device.
  11. 一种电子设备,其中,包括:An electronic device, including:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;A memory for storing executable instructions of the processor;
    其中,所述处理器被配置为执行所述指令,以实现如权利要求1至5中任一项所述的设备联动方法。Wherein, the processor is configured to execute the instruction to implement the device linkage method according to any one of claims 1 to 5.
  12. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1至5中任一项所述的设备联动方法。A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the device linkage method according to any one of claims 1 to 5.
PCT/CN2020/140207 2019-12-30 2020-12-28 Device linkage method and apparatus, electronic device, and storage medium WO2021136188A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911403062.6A CN111142398A (en) 2019-12-30 2019-12-30 Equipment linkage method and device, electronic equipment and storage medium
CN201911403062.6 2019-12-30

Publications (1)

Publication Number Publication Date
WO2021136188A1 true WO2021136188A1 (en) 2021-07-08

Family

ID=70522274

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140207 WO2021136188A1 (en) 2019-12-30 2020-12-28 Device linkage method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN111142398A (en)
WO (1) WO2021136188A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142398A (en) * 2019-12-30 2020-05-12 欧普照明股份有限公司 Equipment linkage method and device, electronic equipment and storage medium
CN111880501B (en) 2020-07-29 2021-09-14 珠海格力电器股份有限公司 Interaction method for establishing equipment linkage scene, storage medium and electronic equipment
CN112087492B (en) * 2020-08-12 2023-05-12 北京首钢自动化信息技术有限公司 Device management method and device, electronic device and storage medium
CN112327648B (en) * 2020-11-09 2024-04-09 广东睿住智能科技有限公司 Control method, apparatus and computer-readable storage medium for home appliances
CN115202221A (en) * 2021-04-13 2022-10-18 云米互联科技(广东)有限公司 Controlled equipment control method and device based on master control equipment
CN116300512B (en) * 2023-05-17 2023-08-01 绵阳师范学院 Intelligent home control method, system, terminal and medium based on Internet of things

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100106322A1 (en) * 2008-10-27 2010-04-29 Lennox Industries Inc. Communication protocol system and method for a distributed-architecture heating, ventilation and air conditioning network
CN105446143A (en) * 2014-08-14 2016-03-30 联想(北京)有限公司 Information processing method and electronic equipment
CN108668418A (en) * 2018-05-11 2018-10-16 星络科技有限公司 Intelligent lamp controls method, apparatus and electronic equipment
CN109240105A (en) * 2018-09-28 2019-01-18 广州建翎电子技术有限公司 A kind of household electrical appliances and headlamp intelligent linkage control system
CN109752960A (en) * 2017-11-08 2019-05-14 中兴通讯股份有限公司 A kind of smart home inter-linked controlling method and device
CN110531628A (en) * 2019-08-12 2019-12-03 南京理工大学 Fully-automatic intelligent household management control system based on Internet of Things
CN111142398A (en) * 2019-12-30 2020-05-12 欧普照明股份有限公司 Equipment linkage method and device, electronic equipment and storage medium

Family Cites Families (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009055947A1 (en) * 2009-11-30 2011-06-01 Christoph Busch Authenticated transmission of data
CN104540270A (en) * 2014-12-15 2015-04-22 欧普照明股份有限公司 Intelligent lighting system and intelligent lighting lamp with same
CN104898592B (en) * 2015-03-31 2017-11-28 联想(北京)有限公司 A kind of generation method and electronic equipment of the rule that links
CN105137765A (en) * 2015-05-15 2015-12-09 丰唐物联技术(深圳)有限公司 Smart device linkage setting method and terminal
US10579546B2 (en) * 2015-11-09 2020-03-03 Resonest Corporation Electronic device controller, electronic device control method, and electronic device control program
CN105700370A (en) * 2016-02-18 2016-06-22 江西洪都航空工业集团有限责任公司 Intelligent household gateway
CN105549415A (en) * 2016-03-04 2016-05-04 橙朴(上海)智能科技有限公司 Decentralized intelligent home control system
CN105785777A (en) * 2016-03-04 2016-07-20 橙朴(上海)智能科技有限公司 Intelligent home control system based on learning
US10127400B2 (en) * 2016-09-26 2018-11-13 Bank Of America Corporation Control device for aggregation and distribution of machine-initiated resource distribution
CN108234408A (en) * 2016-12-15 2018-06-29 中兴通讯股份有限公司 A kind of things-internet gateway inter-linked controlling method and things-internet gateway
CN106603350B (en) * 2016-12-15 2020-06-02 北京小米移动软件有限公司 Information display method and device
CN106527168A (en) * 2016-12-27 2017-03-22 海尔优家智能科技(北京)有限公司 AllJoyn linkage control conflict resolution method, trigger and server
CN106773763B (en) * 2016-12-28 2019-09-06 重庆金鑫科技产业发展有限公司 A kind of information linkage processing method and device
CN107085417A (en) * 2017-04-14 2017-08-22 南宁市麦格尼安防科技有限公司 A kind of automatic mode of intelligent domestic system
CN108733005B (en) * 2017-04-21 2021-05-25 北京京东尚科信息技术有限公司 Method and device for controlling linkage of intelligent equipment
CN107490977A (en) * 2017-09-25 2017-12-19 深圳市斑点猫信息技术有限公司 Controlling model training method, the control method and device of smart home
CN108181819B (en) * 2017-11-28 2020-08-11 珠海格力电器股份有限公司 Linkage control method, device and system for household electrical appliance and household electrical appliance
CN108092861B (en) * 2017-12-13 2021-10-08 深圳绿米联创科技有限公司 Configuration method for realizing equipment linkage, equipment linkage control method and device
CN108073079A (en) * 2017-12-14 2018-05-25 上海斐讯数据通信技术有限公司 A kind of intelligent home furnishing control method and system based on linkage strategy
CN108010527B (en) * 2017-12-19 2020-06-12 深圳市欧瑞博科技有限公司 Speech recognition method, computer device, and storage medium
JP7044415B2 (en) * 2017-12-31 2022-03-30 美的集団股▲フン▼有限公司 Methods and systems for controlling home assistant appliances
US10732624B2 (en) * 2018-05-22 2020-08-04 Bank Of America Corporation User data digestion for autonomous car implementation
CN108768724B (en) * 2018-05-30 2021-11-16 上海顺舟智能科技股份有限公司 Gateway control method and intelligent gateway
CN109407537A (en) * 2018-12-18 2019-03-01 深圳国美云智科技有限公司 A kind of control device, method and the smart home system of air class smart machine
CN109828475A (en) * 2019-01-31 2019-05-31 珠海格力电器股份有限公司 The inter-linked controlling method of treadmill and air-conditioning, device, storage medium and server
CN109976172B (en) * 2019-03-11 2022-07-12 深圳绿米联创科技有限公司 Method and device for generating set conditions, electronic equipment and storage medium
CN110071855B (en) * 2019-03-18 2021-10-22 深圳绿米联创科技有限公司 Equipment linkage control method, device, system, gateway and storage medium
CN110347547A (en) * 2019-05-27 2019-10-18 中国平安人寿保险股份有限公司 Log method for detecting abnormality, device, terminal and medium based on deep learning
CN110535824A (en) * 2019-07-08 2019-12-03 湖南优创智能科技有限公司 Smart home interlock method, system, terminal device and storage medium
CN110618627B (en) * 2019-09-02 2021-06-25 深圳绿米联创科技有限公司 Household equipment control method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100106322A1 (en) * 2008-10-27 2010-04-29 Lennox Industries Inc. Communication protocol system and method for a distributed-architecture heating, ventilation and air conditioning network
CN105446143A (en) * 2014-08-14 2016-03-30 联想(北京)有限公司 Information processing method and electronic equipment
CN109752960A (en) * 2017-11-08 2019-05-14 中兴通讯股份有限公司 A kind of smart home inter-linked controlling method and device
CN108668418A (en) * 2018-05-11 2018-10-16 星络科技有限公司 Intelligent lamp controls method, apparatus and electronic equipment
CN109240105A (en) * 2018-09-28 2019-01-18 广州建翎电子技术有限公司 A kind of household electrical appliances and headlamp intelligent linkage control system
CN110531628A (en) * 2019-08-12 2019-12-03 南京理工大学 Fully-automatic intelligent household management control system based on Internet of Things
CN111142398A (en) * 2019-12-30 2020-05-12 欧普照明股份有限公司 Equipment linkage method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111142398A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
WO2021136188A1 (en) Device linkage method and apparatus, electronic device, and storage medium
US12013134B2 (en) Data learning server and method for generating and using learning model thereof
US11513586B2 (en) Control device, method and equipment for processor
WO2019052241A1 (en) Refrigerant leak detection method and device for air conditioner
WO2022121298A1 (en) Air conditioner alarm control method and apparatus, and electronic device and storage medium
US10523460B2 (en) Electronic apparatus and external apparatus controlling method thereof
TW201719333A (en) A voice controlling system and method
CN110659770A (en) Temperature prediction method and device based on LSTM model
CN112333898B (en) Lamp brightness adjusting method and device, lamp and storage medium
US20200193982A1 (en) Terminal device and method for controlling thereof
CN111475384A (en) Shell temperature calculation method and device, storage medium and electronic equipment
US10105631B2 (en) Air purification method and apparatus
CN111240217B (en) State detection method and device, electronic equipment and storage medium
CN113819636A (en) Control method and device of radiation air conditioning system and storage medium
KR102099287B1 (en) Apparatus and method for managing sensory data based on cloud
US20240086951A1 (en) Satisfaction level calculation device, satisfaction level calculation method, and computer readable medium
CN113935402A (en) Training method and device for time difference positioning model and electronic equipment
CN112001300B (en) Building monitoring method and device based on cross entropy according to position and electronic equipment
CN110017584B (en) Method and device for setting air damper of air conditioner and air conditioner
US20170126951A1 (en) Updating an exposure table of an image sensor
CN110443746B (en) Picture processing method and device based on generation countermeasure network and electronic equipment
CN112904437A (en) Detection method and detection device of hidden component based on privacy protection
US20210319791A1 (en) Electronic apparatus and controlling method thereof
TWI819179B (en) Method, device for smart shutdown, and electronic device
CN111124862A (en) Intelligent equipment performance testing method and device and intelligent equipment

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: 20908982

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20908982

Country of ref document: EP

Kind code of ref document: A1