[go: up one dir, main page]

CN112153137B - Multi-device linkage method and system - Google Patents

Multi-device linkage method and system Download PDF

Info

Publication number
CN112153137B
CN112153137B CN202010993364.XA CN202010993364A CN112153137B CN 112153137 B CN112153137 B CN 112153137B CN 202010993364 A CN202010993364 A CN 202010993364A CN 112153137 B CN112153137 B CN 112153137B
Authority
CN
China
Prior art keywords
internet
things
equipment
operation instruction
linkage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010993364.XA
Other languages
Chinese (zh)
Other versions
CN112153137A (en
Inventor
于士鹏
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN202010993364.XA priority Critical patent/CN112153137B/en
Publication of CN112153137A publication Critical patent/CN112153137A/en
Application granted granted Critical
Publication of CN112153137B publication Critical patent/CN112153137B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a multi-device linkage method and system, wherein the method comprises the following steps: when a preset event occurs in the Internet of things, the main equipment in the Internet of things triggers corresponding equipment in the Internet of things to collect and report current environmental characteristics according to a scene recommendation condition in a scene recommendation model corresponding to the event, which is locally stored; judging whether the scene recommendation condition is met currently or not according to the environmental characteristics; the scene recommendation model comprises a scene trigger event, a scene recommendation condition and a linkage operation instruction set of a scene; if yes, the main device triggers the user to select whether to execute a device linkage operation instruction in the scene recommendation model; when a user selects to execute the equipment linkage operation instruction, the main equipment triggers corresponding equipment in the Internet of things to execute the equipment linkage operation instruction according to the locally stored equipment capacity information of each piece of equipment in the Internet of things. By the method and the device, the real-time performance of multi-device linkage can be improved, and the user information safety risk is reduced.

Description

一种多设备联动方法和系统A multi-device linkage method and system

技术领域technical field

本申请涉及物联网技术领域,特别涉及一种多设备联动方法和系统。The present application relates to the technical field of the Internet of Things, and in particular to a multi-device linkage method and system.

背景技术Background technique

随着物联网技术的应用日益广泛,物联网云平台可以实现设备的接入、控制和管理。通过将设备接入物联网云平台,实现对设备的远程控制和数据采集,以及实现设备联动。设备联动是指当一个或多个设备状态满足一定条件时,触发对另外一个或多个设备的操作。With the increasingly widespread application of Internet of Things technology, the Internet of Things cloud platform can realize the access, control and management of devices. By connecting the device to the IoT cloud platform, remote control and data collection of the device can be realized, as well as device linkage. Device linkage refers to triggering operations on one or more devices when the status of one or more devices meets certain conditions.

发明人在实现本发明的过程中发现:现有的设备联动方案存在实时性差和用户信息安全风险高等问题,具体原因分析如下:In the process of realizing the present invention, the inventor found that the existing equipment linkage scheme has problems such as poor real-time performance and high risk of user information security. The specific reasons are analyzed as follows:

现有的设备联动方案中,通常是统一由云平台收集智能设备的数据和用户信息,并根据收集的数据信息,按照预设的场景,做出设备联动决策。由于这种方案需要由云平台进行集中控制、决策,使得当云平台管理的设备数量较多时,云平台的处理压力会很大,相应地,联动处理时延也会较大,从而影响联动实时性。并且,由于云平台需要收集用户的信息,以完成联动决策,因此用户的隐私也无法得到充分的保证。In the existing device linkage scheme, the data and user information of smart devices are usually collected by the cloud platform uniformly, and according to the collected data information, a device linkage decision is made according to the preset scenario. Because this solution requires centralized control and decision-making by the cloud platform, when the number of devices managed by the cloud platform is large, the processing pressure on the cloud platform will be great. Correspondingly, the linkage processing delay will also be large, which affects the real-time linkage sex. Moreover, since the cloud platform needs to collect user information to complete linkage decisions, user privacy cannot be fully guaranteed.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种多设备联动方法和系统,能够提升多设备联动的实时性并降低用户信息安全风险。In view of this, the main purpose of the present invention is to provide a multi-device linkage method and system, which can improve the real-time performance of multi-device linkage and reduce user information security risks.

为了达到上述目的,本发明实施例提出的技术方案为:。In order to achieve the above object, the technical solution proposed by the embodiment of the present invention is as follows:.

一种多设备联动方法,包括:A multi-device linkage method, comprising:

当物联网中发生预设事件时,所述物联网中的主设备根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的相应设备采集并上报当前的环境特征;根据所述环境特征,判断当前是否满足所述场景推荐条件;所述场景推荐模型包括场景触发事件、场景推荐条件和场景的设备联动操作指令;When a preset event occurs in the Internet of Things, the main device in the Internet of Things triggers the corresponding device in the Internet of Things to collect and report the current Environmental characteristics; according to the environmental characteristics, it is judged whether the scene recommendation condition is currently satisfied; the scene recommendation model includes scene trigger events, scene recommendation conditions and scene device linkage operation instructions;

如果当前满足所述场景推荐条件,则所述主设备触发用户选择是否执行所述场景推荐模型的设备联动操作指令;If the scene recommendation condition is currently satisfied, the main device triggers the user to select whether to execute the device linkage operation instruction of the scene recommendation model;

当用户选择执行所述设备联动操作指令时,所述主设备根据本地保存的所述物联网中每个设备的设备能力信息,触发所述物联网中的相应设备执行所述设备联动操作指令。When the user chooses to execute the device linkage operation instruction, the master device triggers the corresponding device in the Internet of Things to execute the device linkage operation instruction according to the device capability information of each device in the Internet of Things stored locally.

较佳地,所述物联网中的主设备根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的设备采集并上报相应的环境特征包括:Preferably, the master device in the Internet of Things triggers the devices in the Internet of Things to collect and report corresponding environmental characteristics according to the scene recommendation conditions in the scene recommendation model corresponding to the event stored locally, including:

所述主设备根据所述场景推荐条件中的条件参数,通知所述物联网中的相应设备感知环境信息;The master device notifies corresponding devices in the Internet of Things to perceive environment information according to the condition parameters in the scene recommendation conditions;

所述相应设备根据所述通知,对当前的环境进行感知,并将感知结果转化成环境特征向量后发送给所述主设备。The corresponding device senses the current environment according to the notification, and converts the sensing result into an environment feature vector and sends it to the master device.

较佳地,所述触发所述物联网中的相应设备执行所述设备联动操作指令包括:Preferably, the triggering corresponding devices in the Internet of Things to execute the device linkage operation instructions includes:

对于所述设备联动操作指令中的每个操作指令,所述主设备根据本地保存的所述设备能力信息,判断执行该操作指令的设备是否能够解析该操作指令,如果是,则将该操作指令直接发送给相应的指令执行设备执行;否则,触发能够解析该操作指令的设备对该操作指令进行解析,并将解析结果发送给相应的指令执行设备执行。For each operation instruction in the device linkage operation instructions, the master device judges whether the device that executes the operation instruction can parse the operation instruction according to the device capability information stored locally, and if so, the operation instruction directly send to the corresponding instruction execution device for execution; otherwise, trigger the device capable of parsing the operation instruction to analyze the operation instruction, and send the analysis result to the corresponding instruction execution device for execution.

较佳地,所述方法进一步包括:Preferably, the method further comprises:

所述物联网中除所述主设备之外的其他设备预先将自身的设备能力信息发送给所述主设备。Other devices in the IoT except the main device send their own device capability information to the main device in advance.

较佳地,所述方法进一步包括:Preferably, the method further comprises:

所述物联网中的每个设备根据自身具有的每种设备能力和预设的相应能力权重,计算本设备的设备综合能力;Each device in the Internet of Things calculates the comprehensive device capability of the device according to its own device capabilities and preset corresponding capability weights;

所述物联网中的所有设备之间互相交换各自的设备综合能力;All devices in the Internet of Things exchange their respective device comprehensive capabilities;

每个所述设备根据所述物联网中每个设备的设备综合能力,确定所述物联网中的主设备。Each of the devices determines the master device in the Internet of Things according to the device comprehensive capability of each device in the Internet of Things.

较佳地,所述确定所述物联网中的主设备包括:Preferably, the determination of the master device in the Internet of Things includes:

选择所述物联网中所述设备综合能力的最大值对应的设备,作为所述物联网的主设备。Selecting the device corresponding to the maximum comprehensive capability of the device in the Internet of Things as the master device of the Internet of Things.

较佳地,所述方法进一步包括:Preferably, the method further comprises:

每个所述设备预先根据所述物联网中每个设备的所述设备综合能力,选择所述物联网中所述设备综合能力的次大值对应的设备,作为所述物联网的副主设备。Each of the devices pre-selects the device corresponding to the next largest value of the device comprehensive capability in the Internet of Things according to the device comprehensive capability of each device in the Internet of Things, as the sub-master device of the Internet of Things .

较佳地,所述方法进一步包括:Preferably, the method further comprises:

所述主设备在本地初始化联动配置信息或者所述联动配置信息发生变更时,将本地保存的所述联动配置信息同步给所述副主设备;所述联动配置信息包括:所述场景推荐模式和所述物联网中每个设备的设备能力信息;When the master device initializes the linkage configuration information locally or when the linkage configuration information changes, it synchronizes the locally saved linkage configuration information to the secondary master device; the linkage configuration information includes: the scene recommendation mode and Device capability information of each device in the Internet of Things;

所述副主设备实时地检测所述主设备的状态,并在所述主设备处于异常状态时,将自身设置为主设备并通知所述物联网中的其他设备,根据当前的所述联动配置信息执行主设备的功能。The sub-master device detects the state of the master device in real time, and when the master device is in an abnormal state, sets itself as the master device and notifies other devices in the Internet of Things, according to the current linkage configuration The information performs the function of the master device.

较佳地,所述方法进一步包括:Preferably, the method further comprises:

所述物联网中除所述主设备之外的其他设备预先将各自的设备能力信息上报给所述主设备。Other devices in the Internet of Things other than the main device report their respective device capability information to the main device in advance.

较佳地,所述方法进一步包括:Preferably, the method further comprises:

所述场景推荐模型由云端服务器预先训练并发送给所述主设备。The scene recommendation model is pre-trained by a cloud server and sent to the main device.

较佳地,在所述设备联动操作指令执行完成后,所述方法进一步包括:Preferably, after the execution of the device linkage operation instruction is completed, the method further includes:

如果所述用户选择执行所述设备联动操作指令,则所述主设备将所述用户在所述事件发生时选择执行所述设备联动操作指令,反馈给所述云端服务器;If the user chooses to execute the device linkage operation instruction, the main device feeds back the user's choice to execute the device linkage operation instruction when the event occurs to the cloud server;

如果所述用户选择不执行所述设备联动操作指令,则所述主设备将所述用户在所述事件发生时未选择执行所述设备联动操作指令以及所述用户的相应后续操作,反馈给所述云端服务器;If the user chooses not to execute the device linkage operation instruction, the master device feeds back the user's failure to execute the device linkage operation instruction and the corresponding subsequent operations of the user when the event occurs to the all cloud server;

所述云端服务器根据所述反馈,对所述事件对应的场景推荐模型中的设备联动操作指令进行优化。The cloud server optimizes the device linkage operation instructions in the scene recommendation model corresponding to the event according to the feedback.

一种多设备联动系统,包括云端服务器和物联网中的设备,其中:A multi-device linkage system, including cloud servers and devices in the Internet of Things, wherein:

所述设备,用于当作为主设备时,在物联网中发生预设事件时,根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的相应设备采集并上报当前的环境特征;根据所述环境特征,判断当前是否满足所述场景推荐条件;所述场景推荐模型包括场景触发事件、场景推荐条件和场景的设备联动操作指令;如果当前满足所述场景推荐条件,则触发用户选择是否执行所述场景推荐模型的设备联动操作指令;当用户选择执行所述设备联动操作指令时,根据本地保存的所述物联网中每个设备的设备能力信息,触发所述物联网中的相应设备执行所述设备联动操作指令。The device is configured to, when acting as the master device, trigger the acquisition of corresponding devices in the Internet of Things according to the scene recommendation conditions in the scene recommendation model corresponding to the event stored locally when a preset event occurs in the Internet of Things And report the current environmental characteristics; according to the environmental characteristics, judge whether the current scene recommendation condition is satisfied; the scene recommendation model includes scene trigger events, scene recommendation conditions and scene device linkage operation instructions; if the current scene meets the recommended conditions, trigger the user to choose whether to execute the device linkage operation instruction of the scenario recommendation model; when the user chooses to execute the device linkage operation instruction, according to the device capability information of each device in the Internet of Things saved locally, A corresponding device in the Internet of Things executes the device linkage operation instruction.

较佳地,所述设备,具体用于当作为所述主设备时,根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的设备采集并上报相应的环境特征,包括:Preferably, the device is specifically configured to, when acting as the master device, trigger devices in the Internet of Things to collect and report corresponding Environmental characteristics, including:

根据所述场景推荐条件中的条件参数,通知所述物联网中的相应设备感知环境信息,并接收所述相应设备上报的环境特征向量,所述环境特征向量由所述相应设备根据所述通知对当前的环境进行感知,并对感知结果进行向量转化后得到。According to the condition parameter in the scene recommendation condition, notify the corresponding device in the Internet of Things to perceive the environment information, and receive the environment feature vector reported by the corresponding device, and the environment feature vector is determined by the corresponding device according to the notification Perceive the current environment and convert the perception results into vectors.

较佳地,所述设备,具体用于当作为所述主设备时,触发所述物联网中的相应设备执行所述设备联动操作指令,包括:Preferably, the device is specifically configured to, when serving as the master device, trigger corresponding devices in the Internet of Things to execute the device linkage operation instruction, including:

对于所述设备联动操作指令中的每个操作指令,根据本地保存的所述设备能力信息,判断执行该操作指令的设备是否能够解析该操作指令,如果是,则将该操作指令直接发送给相应的指令执行设备执行;否则,触发能够解析该操作指令的设备对该操作指令进行解析,并将解析结果发送给相应的指令执行设备执行。For each operation instruction in the device linkage operation instruction, according to the device capability information stored locally, it is judged whether the device executing the operation instruction can parse the operation instruction, and if so, directly send the operation instruction to the corresponding Otherwise, trigger the device capable of parsing the operation instruction to analyze the operation instruction, and send the analysis result to the corresponding instruction execution device for execution.

较佳地,所述设备,进一步用于当作为物联网中除所述主设备之外的其他设备时,预先将自身的设备能力信息发送给所述物联网中的主设备。Preferably, the device is further configured to send its own device capability information to the master device in the Internet of Things in advance when serving as a device other than the master device in the Internet of Things.

较佳地,所述设备,进一步用于预先根据自身具有的每种设备能力和预设的相应能力权重,计算本设备的设备综合能力;与所述物联网中的其他设备交换各自的设备综合能力;根据所述物联网中每个设备的设备综合能力,确定所述物联网中的主设备。Preferably, the device is further used to calculate the device comprehensive capability of the device in advance according to each device capability it has and the corresponding preset capability weight; exchange respective device comprehensive capabilities with other devices in the Internet of Things Capability: determining the master device in the Internet of Things according to the comprehensive device capability of each device in the Internet of Things.

较佳地,所述设备,具体用于确定所述物联网中的主设备,包括:选择所述物联网中所述设备综合能力的最大值对应的设备,作为所述物联网的主设备。Preferably, the device is specifically used to determine the master device in the Internet of Things, comprising: selecting a device corresponding to the maximum comprehensive capability of the device in the Internet of Things as the master device in the Internet of Things.

较佳地,所述设备,进一步用于预先根据所述物联网中每个设备的所述设备综合能力,选择所述物联网中所述设备综合能力的次大值对应的设备,作为所述物联网的副主设备。Preferably, the device is further configured to pre-select the device corresponding to the next largest value of the device comprehensive capability in the Internet of Things according to the device comprehensive capability of each device in the Internet of Things, as the The sub-master device of the Internet of Things.

较佳地,所述设备,进一步用于当作为所述主设备时,在本地初始化联动配置信息时或者本地的所述联动配置信息发生变更时,将本地保存的所述联动配置信息同步给所述副主设备;所述联动配置信息包括:所述场景推荐模式和所述物联网中每个设备的设备能力信息;当作为所述副主设备时,实时地检测所述主设备的状态,并在所述主设备处于异常状态时,将自身设置为主设备并通知所述物联网中的其他设备,根据当前的所述联动配置信息执行主设备的功能。Preferably, the device is further configured to, when acting as the master device, synchronize the locally saved linkage configuration information to the The sub-master device; the linkage configuration information includes: the scenario recommendation mode and the device capability information of each device in the Internet of Things; when serving as the sub-master device, detect the state of the master device in real time, And when the master device is in an abnormal state, set itself as the master device and notify other devices in the Internet of Things, and execute the function of the master device according to the current linkage configuration information.

较佳地,所述设备,进一步用于当作为所述物联网中除所述主设备之外的其他设备时,预先将各自的设备能力信息上报给所述主设备。Preferably, the device is further configured to, when serving as other devices in the Internet of Things except the main device, report respective device capability information to the main device in advance.

较佳地,所述场景推荐模型由云端服务器预先训练并发送给所述主设备。Preferably, the scene recommendation model is pre-trained by a cloud server and sent to the main device.

较佳地,所述设备,进一步用于当作为所述主设备时,在所述设备联动操作指令执行完成后,如果所述用户选择执行所述设备联动操作指令,则将所述用户在所述事件发生时选择执行所述设备联动操作指令,反馈给所述云端服务器;如果所述用户选择不执行所述设备联动操作指令,则将所述用户在所述事件发生时未选择执行所述设备联动操作指令以及所述用户的相应后续操作,反馈给所述云端服务器;Preferably, the device is further configured to, when serving as the master device, after the execution of the device linkage operation instruction is completed, if the user chooses to execute the device linkage operation instruction, the user will When the event occurs, choose to execute the device linkage operation instruction, and feed it back to the cloud server; if the user chooses not to execute the device linkage operation instruction, the user does not choose to execute the device linkage operation instruction when the event occurs The device linkage operation instruction and the corresponding follow-up operation of the user are fed back to the cloud server;

所述云端服务器,进一步用于根据所述反馈,对所述事件对应的场景推荐模型中的设备联动操作指令进行优化。The cloud server is further configured to optimize the device linkage operation instructions in the scene recommendation model corresponding to the event according to the feedback.

由上述技术方案可见,本申请提出的多设备联动方法和系统,在场景中发生了预设事件时,通过由主设备基于预设的场景推荐模型以及物联网中各设备采集的环境特征,确定当前的设备联动操作并执行,如此,通过由主设备在本地做出设备联动操作决策并控制操作的执行,一方面可以有效提升多设备联动的实时性,另一方面,由于不需要将设备采集的用户信息上传至云平台,因此,可以有效避免信息传输以及集中存储至云平台所致的用户信息安全风险问题,从而降低了用户信息安全风险。It can be seen from the above technical solutions that the multi-device linkage method and system proposed in this application, when a preset event occurs in a scene, determines the The current equipment linkage operation and execution, in this way, by making the equipment linkage operation decision locally and controlling the execution of the operation by the master equipment, on the one hand, the real-time performance of multi-device linkage can be effectively improved; User information uploaded to the cloud platform, therefore, can effectively avoid user information security risks caused by information transmission and centralized storage to the cloud platform, thereby reducing user information security risks.

附图说明Description of drawings

图1为本发明实施例的多设备联动方法流程示意图;FIG. 1 is a schematic flow chart of a multi-device linkage method according to an embodiment of the present invention;

图2为本发明实施例的多设备联动系统结构示意图。FIG. 2 is a schematic structural diagram of a multi-device linkage system according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

图1为本发明实施例的方法流程示意图,如图1所示,该实施例实现的多设备联动方法主要包括:Fig. 1 is a schematic flow diagram of a method according to an embodiment of the present invention. As shown in Fig. 1 , the multi-device linkage method implemented in this embodiment mainly includes:

步骤101、当物联网中发生预设事件时,所述物联网中的主设备根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的相应设备采集并上报当前的环境特征;根据所述环境特征,判断当前是否满足所述场景推荐条件,所述场景推荐模型包括场景触发事件、场景推荐条件和场景的设备联动操作指令。Step 101. When a preset event occurs in the Internet of Things, the main device in the Internet of Things triggers the corresponding device in the Internet of Things to collect and Reporting the current environment features; judging whether the scene recommendation conditions are currently met according to the environment features, the scene recommendation model including scene trigger events, scene recommendation conditions and scene device linkage operation instructions.

本步骤中,当预设的事件发生时,由主设备根据本地保存的场景推荐模型,从中找到与该事件所匹配的场景推荐模型,即查找出以该事件为场景触发事件的场景推荐模型,并根据该场景推荐模型中的场景推荐条件,触发物联网中的相应设备采集当前的环境特征,以确定当前是否满足该场景推荐模型的场景推荐条件,从而可以在当前环境满足该场景推荐条件时及时执行该场景推荐模型中的设备联动操作指令。如此,通过由物联网中的主设备在本地做出设备联动操作决策并触发设备联动操作指令的执行,一方面可以有效提升多设备联动的实时性,减少了联动时延,另一方面,由于各设备不需要将其采集的用户信息上传至云平台,因此,可以有效避免信息传输以及集中存储至云端服务器所致的用户信息安全风险问题,从而能够有效保障用户信息安全。In this step, when a preset event occurs, the master device finds the scene recommendation model that matches the event based on the locally saved scene recommendation model, that is, finds out the scene recommendation model that uses the event as the scene trigger event, And according to the scene recommendation conditions in the scene recommendation model, trigger the corresponding equipment in the Internet of Things to collect the current environmental characteristics to determine whether the scene recommendation conditions of the scene recommendation model are currently met, so that when the current environment meets the scene recommendation conditions Execute the equipment linkage operation instructions in the scenario recommendation model in a timely manner. In this way, by making the device linkage operation decision locally and triggering the execution of the equipment linkage operation command by the master device in the Internet of Things, on the one hand, the real-time performance of multi-device linkage can be effectively improved, and the linkage delay can be reduced. On the other hand, due to Each device does not need to upload the collected user information to the cloud platform. Therefore, it can effectively avoid user information security risks caused by information transmission and centralized storage to the cloud server, thereby effectively ensuring user information security.

较佳地,本步骤中,物联网中的主设备可以采用下述方法,根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的设备采集并上报相应的环境特征:Preferably, in this step, the master device in the Internet of Things can use the following method to trigger the device in the Internet of Things to collect and report corresponding environment features:

所述主设备根据所述场景推荐条件中的条件参数,通知所述物联网中的相应设备感知环境信息;所述相应设备根据所述通知,对当前的环境进行感知,并将感知结果转化成环境特征向量后发送给所述主设备。The master device notifies the corresponding device in the Internet of Things to perceive the environment information according to the condition parameters in the scenario recommendation condition; the corresponding device senses the current environment according to the notification, and converts the perception result into After the environmental feature vector is sent to the master device.

上述方法中,各设备将感知到的环境信息转化成环境特征向量的具体方法为本领域技术人员所掌握,在此不再赘述。In the above method, the specific method for each device to convert the perceived environment information into the environment feature vector is mastered by those skilled in the art, and will not be repeated here.

在实际应用中,不同的设备具有的感知能力与设备的实际功能相关联。具体的感知能力可以涉及下述几种:In practical applications, the perception capabilities of different devices are associated with the actual functions of the devices. Specific perceptual abilities may involve the following:

听觉感知:通过麦克风获取用户语音指令,完成语义理解。Auditory perception: Obtain the user's voice instructions through the microphone to complete semantic understanding.

视觉感知:通过摄像头获取图像信息,完成视觉相关的数据处理。Visual perception: Obtain image information through the camera to complete visual-related data processing.

设备感知:获取周边设备信息,可通过BLE、Wi-Fi、UWB等技术实现,但不限于此。Device awareness: Obtaining peripheral device information can be realized through BLE, Wi-Fi, UWB and other technologies, but is not limited to this.

动作感知:通过设备传感器,获取用户的动作、手势等相关的信息。Action perception: Obtain information about user actions, gestures, etc. through device sensors.

位置感知:获取设备的室内和室外的位置信息,可通过GNSS、Wi-Fi、UWB采集得到,但不限于此。Location awareness: Obtain the indoor and outdoor location information of the device, which can be collected through GNSS, Wi-Fi, UWB, but not limited to this.

较佳地,为了进一步提高多设备联动的效率,可以采用下述方法从互联网中选择出一个综合能力最强的设备作为物联网中的主设备:Preferably, in order to further improve the efficiency of multi-device linkage, the following method can be used to select a device with the strongest comprehensive capability from the Internet as the master device in the Internet of Things:

步骤x1、所述物联网中的每个设备根据自身具有的每种设备能力和预设的相应能力权重,计算本设备的设备综合能力。Step x1. Each device in the Internet of Things calculates its comprehensive device capability according to its own device capabilities and preset corresponding capability weights.

较佳地,所述设备能力的类型可以具体包括设备的业务能力、运算能力和设备的供电方式等能力。Preferably, the types of device capabilities may specifically include capabilities such as device service capabilities, computing capabilities, and device power supply modes.

步骤x2、所述物联网中的所有设备之间互相交换各自的设备综合能力。Step x2, all devices in the Internet of Things exchange their comprehensive device capabilities with each other.

步骤x3、每个所述设备根据所述物联网中每个设备的设备综合能力,确定所述物联网中的主设备。Step x3, each of the devices determines the master device in the Internet of Things according to the comprehensive device capability of each device in the Internet of Things.

较佳地,所述步骤x3可以选择最大设备综合能力的设备作为主设备,即选择所述物联网中所述设备综合能力的最大值对应的设备,作为所述物联网的主设备。Preferably, the step x3 may select the device with the largest device comprehensive capability as the master device, that is, select the device corresponding to the maximum value of the device comprehensive capability in the Internet of Things as the master device of the Internet of Things.

较佳地,为了减少主设备的运算开销,所述场景推荐模型可以由云端服务器预先训练并发送给所述主设备。具体训练方法为本领域技术人员所掌握在此不再赘述。进一步地,所述场景推荐模型还可以进一步包括场景的抽象定义,以便基于该抽象定义对不同场景进行有效区分。Preferably, in order to reduce the computing overhead of the main device, the scene recommendation model may be pre-trained by a cloud server and sent to the main device. The specific training method is mastered by those skilled in the art and will not be repeated here. Furthermore, the scene recommendation model may further include an abstract definition of a scene, so as to effectively distinguish different scenes based on the abstract definition.

步骤102、如果当前满足所述场景推荐条件,则所述主设备触发用户选择是否执行所述场景推荐模型的设备联动操作指令。Step 102: If the scene recommendation condition is currently satisfied, the main device triggers a device linkage operation instruction for the user to select whether to execute the scene recommendation model.

这里,当在步骤101中判断出当前满足所述事件对应场景的场景推荐条件时,会在本步骤中提示用户对是否执行相应设备联动操作指令进行选择,以便在用户选择执行时,及时触发执行设备联动操作指令,以响应步骤101中检测到的事件。Here, when it is judged in step 101 that the scene recommendation condition of the scene corresponding to the event is currently satisfied, the user will be prompted in this step to choose whether to execute the corresponding device linkage operation command, so that when the user chooses to execute it, the execution will be triggered in time The device linkage operation instruction is used to respond to the event detected in step 101.

步骤103、当用户选择执行所述设备联动操作指令时,所述主设备根据本地保存的所述物联网中每个设备的设备能力信息,触发所述物联网中的相应设备执行所述设备联动操作指令。Step 103: When the user chooses to execute the device linkage operation instruction, the master device triggers the corresponding device in the Internet of Things to execute the device linkage according to the device capability information of each device in the Internet of Things stored locally Operating instructions.

较佳地,为了最大程度地降低联动控制时延,可以采用下述方法触发物联网中的相应设备执行所述设备联动操作指令:Preferably, in order to minimize the linkage control delay, the following method can be used to trigger the corresponding equipment in the Internet of Things to execute the equipment linkage operation instruction:

对于所述设备联动操作指令中的每个操作指令,所述主设备根据本地保存的所述设备能力信息,判断执行该操作指令的设备是否能够解析该操作指令,如果是,则将该操作指令直接发送给相应的指令执行设备执行;否则,触发能够解析该操作指令的设备对该操作指令进行解析,并将解析结果发送给相应的指令执行设备执行。For each operation instruction in the device linkage operation instructions, the master device judges whether the device that executes the operation instruction can parse the operation instruction according to the device capability information stored locally, and if so, the operation instruction directly send to the corresponding instruction execution device for execution; otherwise, trigger the device capable of parsing the operation instruction to analyze the operation instruction, and send the analysis result to the corresponding instruction execution device for execution.

上述方法中,主设备根据本地保存的每个设备的设备能力信息中的业务能力,获知设备联动操作指令对应的各指令执行设备是否具有相应的指令解析能力,当设备没有解析能力时,不会将相应的联动操作指令发送给该设备执行,而是通过具有解析能力的设备将指令解析后再发送给相应的执行设备执行,从而可以确保各设备联动操作指令的顺利执行,避免由于执行设备无法执行指令而导致的联动指令执行失败的问题。In the above method, the master device knows whether each instruction execution device corresponding to the device linkage operation instruction has the corresponding instruction parsing capability according to the service capability in the device capability information of each device saved locally. When the device has no parsing capability, it will not The corresponding linkage operation instructions are sent to the device for execution, but the instructions are analyzed by a device with the ability to analyze and then sent to the corresponding execution device for execution, so as to ensure the smooth execution of the linkage operation instructions of each device and avoid failure of the execution device. The problem that the execution of the linked command fails due to the execution of the command.

较佳地,为了便于主设备准确地做出设备联动操作决策,物联网中除所述主设备之外的其他设备可以预先将自身的设备能力信息发送给主设备。主设备收到各设备的设备能力信息时,可以通过生成能力树的方式,建立设备能力与设备之间的映射关系,以对所有设备的设备能力信息进行保存。Preferably, in order to facilitate the master device to accurately make a device linkage operation decision, other devices in the Internet of Things other than the master device may send their own device capability information to the master device in advance. When the master device receives the device capability information of each device, it may establish a mapping relationship between device capabilities and devices by generating a capability tree, so as to save the device capability information of all devices.

较佳地,为了提高本联动控制的鲁棒性,可以从物联网中选择出一个副主设备,在主设备运行异常时,由该副主设备担负起主设备的功能,以确保联动控制的正常进行,具体地可以采用下述方法实现这一目的:Preferably, in order to improve the robustness of the linkage control, a sub-master device can be selected from the Internet of Things, and when the master device operates abnormally, the sub-master device will assume the function of the master device to ensure the linkage control. To proceed normally, specifically, the following methods can be used to achieve this goal:

所述主设备在本地初始化联动配置信息或者所述联动配置信息发生变更时,将本地保存的所述联动配置信息同步给所述副主设备;所述联动配置信息包括:所述场景推荐模式和所述物联网中每个设备的设备能力信息;When the master device initializes the linkage configuration information locally or when the linkage configuration information changes, it synchronizes the locally saved linkage configuration information to the secondary master device; the linkage configuration information includes: the scene recommendation mode and Device capability information of each device in the Internet of Things;

所述副主设备实时地检测所述主设备的状态,并在所述主设备处于异常状态时,将自身设置为主设备并通知所述物联网中的其他设备,根据当前的所述联动配置信息执行主设备的功能。The sub-master device detects the state of the master device in real time, and when the master device is in an abnormal state, sets itself as the master device and notifies other devices in the Internet of Things, according to the current linkage configuration The information performs the function of the master device.

较佳地,为了提高副主设备的异常处理能力,可以采用下述方法从物联网中选择出一个副主设备:Preferably, in order to improve the exception handling capability of the sub-master device, the following method can be used to select a sub-master device from the Internet of Things:

物联网中的每个设备预先根据网中每个设备的所述设备综合能力,选择所述物联网中所述设备综合能力的次大值对应的设备,作为所述物联网的副主设备。Each device in the Internet of Things selects the device corresponding to the next largest value of the device comprehensive capability in the Internet of Things according to the device comprehensive capability of each device in the network in advance, as the sub-master device of the Internet of Things.

较佳地,在所述设备联动操作指令执行完成后,可以将用户的针对当前设备联动操作指令是否执行的选择和后续操作反馈给云端服务器,以供云端服务器可以根据用户的实际操作对场景推荐模型进行智能优化,使得场景推荐模型与用户的实际需求更匹配,具体地,可以采用下述方法实现这一目的:Preferably, after the execution of the device linkage operation instruction is completed, the user's selection of whether to execute the current device linkage operation instruction and subsequent operations can be fed back to the cloud server, so that the cloud server can recommend scenes according to the actual operation of the user. The model is intelligently optimized to make the scenario recommendation model better match the actual needs of users. Specifically, the following methods can be used to achieve this goal:

如果所述用户选择执行所述设备联动操作指令,则所述主设备将所述用户在所述事件发生时选择执行所述设备联动操作指令,反馈给所述云端服务器;If the user chooses to execute the device linkage operation instruction, the main device feeds back the user's choice to execute the device linkage operation instruction when the event occurs to the cloud server;

如果所述用户选择不执行所述设备联动操作指令,则所述主设备将所述用户在所述事件发生时未选择执行所述设备联动操作指令以及所述用户的相应后续操作,反馈给所述云端服务器;If the user chooses not to execute the device linkage operation instruction, the master device feeds back the user's failure to execute the device linkage operation instruction and the corresponding subsequent operations of the user when the event occurs to the all cloud server;

所述云端服务器根据所述反馈,对所述事件对应的场景推荐模型中的设备联动操作指令进行优化。The cloud server optimizes the device linkage operation instructions in the scene recommendation model corresponding to the event according to the feedback.

这里的优化即是根据用户的实际操作,对相应场景推荐模型中的设备联动操作指令进行修订,如果用户选择执行场景推荐模型中的设备联动操作指令,则可以给这些设备联动操作指令进行奖励,以对它们进行强化,而如果用户没有选择执行场景推荐模型中的设备联动操作指令,则可以给这些设备联动操作指令进行惩罚,并记录用户对此事件实际选择执行的操作,在累积到一定程度时,将场景推荐模型中的设备联动操作指令修订为用户当前实际选择的联动操作。具体地,在实际应用中,可由本领域技术人员根据实际需要选择合适的优化策略。The optimization here is to revise the device linkage operation instructions in the corresponding scenario recommendation model according to the user's actual operation. If the user chooses to execute the device linkage operation instructions in the scenario recommendation model, these device linkage operation instructions can be rewarded. In order to strengthen them, and if the user does not choose to execute the device linkage operation instructions in the scenario recommendation model, these device linkage operation instructions can be punished, and the operations actually selected by the user for this event can be recorded, and accumulated to a certain extent , revise the device linkage operation instruction in the scene recommendation model to the linkage operation currently selected by the user. Specifically, in practical applications, those skilled in the art can select an appropriate optimization strategy according to actual needs.

通过上述技术方案可以看出,本发明方法实施例通过利用边缘设备的运算能力,由物联网中的主设备在本地做出设备联动操作决策并控制操作的执行,既可以有效提升多设备联动的实时性,又可以有效降低用户信息安全风险。下面通过一具体应用场景对上述方法实施例的具体实现做进一步的示例性说明。It can be seen from the above technical solution that the method embodiment of the present invention utilizes the computing power of the edge device, and the main device in the Internet of Things makes a device linkage operation decision locally and controls the execution of the operation, which can effectively improve the efficiency of multi-device linkage. Real-time, and can effectively reduce user information security risks. The specific implementation of the above-mentioned method embodiment will be further exemplified below through a specific application scenario.

1、智能设备(手机、电视、智能音箱、平板、冰箱、空调、手表、无线耳机等)经本地路由器互联,通过用户手动注册或者自动发现匹配,完成组网过程。1. Smart devices (mobile phones, TVs, smart speakers, tablets, refrigerators, air conditioners, watches, wireless earphones, etc.) are interconnected through local routers, and the networking process is completed through manual registration by users or automatic discovery and matching.

2、智能设备之间彼此交换设备能力,根据设备能力和能力权重,选举出主设备、副主设备和从设备,如手机作为主设备,音箱作为副主设备,其余为从设备。2. Smart devices exchange device capabilities with each other. According to the device capabilities and capability weights, the master device, sub-master device and slave device are elected. For example, the mobile phone is the master device, the speaker is the sub-master device, and the rest are slave devices.

3、从设备将设备能力发送给主设备,主设备以能力树的形式建立能力与设备间的映射关系。副主设备负责同步主设备信息,实时检测主设备状态,在主设备异常时,担负起主设备责任。3. The slave device sends the device capability to the master device, and the master device establishes a mapping relationship between the capability and the device in the form of a capability tree. The sub-master device is responsible for synchronizing the information of the master device, detecting the status of the master device in real time, and taking the responsibility of the master device when the master device is abnormal.

4、主设备从云端服务器同步场景推荐模型。4. The main device synchronizes the scene recommendation model from the cloud server.

场景推荐模型在云端服务器中进行定义和训练,原始模型由Trigger、Concept和Action组成,Trigger为触发场景推荐模型的事件,Concept可理解为Action执行的先决条件,Action为执行的一个操作,State为环境的抽象表达及转换成的特征信息。The scene recommendation model is defined and trained in the cloud server. The original model is composed of Trigger, Concept and Action. Trigger is the event that triggers the scene recommendation model. Concept can be understood as a prerequisite for the execution of Action. Action is an operation to be executed. State is The abstract expression of the environment and the converted feature information.

5、当系统中某设备(可为主设备、副主设备或从设备)接收到一个Trigger事件,如手机端收到一个来电,来电就可作为一个Trigger事件。5. When a device in the system (which can be the master device, sub-master device or slave device) receives a Trigger event, such as a mobile phone receiving an incoming call, the incoming call can be regarded as a Trigger event.

6、手机可以判断其位置信息(客厅),蓝牙耳机是否接入(无),用户动作(准备接听),位置信息、蓝牙耳机的状态、重力传感器的返回值都可以作为Concept,当达成模型预设条件时,触发手机开始获取客厅中其他智能设备的状态。这个扫描的操作就是一个Action。6. The mobile phone can judge its location information (living room), whether the Bluetooth headset is connected (no), user action (ready to answer), location information, status of the Bluetooth headset, and the return value of the gravity sensor can all be used as Concept. When the condition is set, the mobile phone is triggered to obtain the status of other smart devices in the living room. The scanning operation is an Action.

7、如目前客厅中还有智能电视和音箱,如电视目前已开机,正在播放直播节目;智能音箱目前已开机,正在播放广播。电视和音箱通过自己的环境感知单元将自己的信息经特征处理单元处理成特征向量,传给手机。7. For example, there are smart TVs and speakers in the living room. For example, the TV is turned on and is playing live programs; the smart speaker is turned on and broadcasting. TVs and speakers process their own information into feature vectors through their own environmental perception units through feature processing units, and then transmit them to mobile phones.

8、手机根据周边设备传回的特征向量,提示用户是否需要将电视和音箱静音,这就是系统推荐的一个多设备协同的场景。8. The mobile phone prompts the user whether to mute the TV and speakers according to the feature vectors sent back by the peripheral devices. This is a multi-device collaboration scenario recommended by the system.

9、用户选择,选择结果结合周边设备返回的环境特征向量上传至云端服务器,进一步优化模型。用户确认,结果为正;用户取消,结果为负。9. The user selects, and the selection result is uploaded to the cloud server in combination with the environmental feature vector returned by the peripheral equipment to further optimize the model. If the user confirms, the result is positive; if the user cancels, the result is negative.

10、如用户确认,该场景事先定义的一系列Action,如电视静音,音箱静音,这些Action查找设备能力树,如手机端具备IoT Control功能,因此可以将电视静音和音箱静音这两个Action交由手机端处理;较佳的,当电视和音箱具备解析Action的功能时,可以将Action分发给他们,由其自行处理。10. If the user confirms, a series of actions defined in advance in this scene, such as mute the TV and mute the speaker, these Actions search the device capability tree, such as the mobile phone has the IoT Control function, so the two actions of mute the TV and mute the speaker can be switched It is processed by the mobile phone; preferably, when the TV and speakers have the function of analyzing the Action, the Action can be distributed to them for processing by themselves.

11、电视和音箱收到手机分发的Action,通过行为执行单元,执行静音操作11. The TV and speakers receive the Action distributed by the mobile phone, and execute the mute operation through the behavior execution unit

与上述方法实施例相对应,本申请还提出了一种多设备联动系统,如图2所示,该系统包括云端服务器和物联网中的设备,其中:Corresponding to the above method embodiments, this application also proposes a multi-device linkage system, as shown in Figure 2, the system includes a cloud server and devices in the Internet of Things, wherein:

所述设备,用于当作为主设备时,在物联网中发生预设事件时,根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的相应设备采集并上报当前的环境特征;根据所述环境特征,判断当前是否满足所述场景推荐条件;所述场景推荐模型包括场景触发事件、场景推荐条件和场景的设备联动操作指令;如果当前满足所述场景推荐条件,则触发用户选择是否执行所述场景推荐模型的设备联动操作指令;当用户选择执行所述设备联动操作指令时,根据本地保存的所述物联网中每个设备的设备能力信息,触发所述物联网中的相应设备执行所述设备联动操作指令。The device is configured to, when acting as the master device, trigger the acquisition of corresponding devices in the Internet of Things according to the scene recommendation conditions in the scene recommendation model corresponding to the event stored locally when a preset event occurs in the Internet of Things And report the current environmental characteristics; according to the environmental characteristics, judge whether the current scene recommendation condition is satisfied; the scene recommendation model includes scene trigger events, scene recommendation conditions and scene device linkage operation instructions; if the current scene meets the recommended conditions, trigger the user to choose whether to execute the device linkage operation instruction of the scenario recommendation model; when the user chooses to execute the device linkage operation instruction, according to the device capability information of each device in the Internet of Things saved locally, A corresponding device in the Internet of Things executes the device linkage operation instruction.

较佳地,所述设备,具体用于当作为所述主设备时,根据本地保存的所述事件对应的场景推荐模型中的场景推荐条件,触发所述物联网中的设备采集并上报相应的环境特征,包括:Preferably, the device is specifically configured to, when acting as the master device, trigger devices in the Internet of Things to collect and report corresponding Environmental characteristics, including:

根据所述场景推荐条件中的条件参数,通知所述物联网中的相应设备感知环境信息,并接收所述相应设备上报的环境特征向量,所述环境特征向量由所述相应设备根据所述通知对当前的环境进行感知,并对感知结果进行向量转化后得到。According to the condition parameter in the scene recommendation condition, notify the corresponding device in the Internet of Things to perceive the environment information, and receive the environment feature vector reported by the corresponding device, and the environment feature vector is determined by the corresponding device according to the notification Perceive the current environment and convert the perception results into vectors.

较佳地,所述设备,具体用于当作为所述主设备时,触发所述物联网中的相应设备执行所述设备联动操作指令,包括:Preferably, the device is specifically configured to, when serving as the master device, trigger corresponding devices in the Internet of Things to execute the device linkage operation instruction, including:

对于所述设备联动操作指令中的每个操作指令,根据本地保存的所述设备能力信息,判断执行该操作指令的设备是否能够解析该操作指令,如果是,则将该操作指令直接发送给相应的指令执行设备执行;否则,触发能够解析该操作指令的设备对该操作指令进行解析,并将解析结果发送给相应的指令执行设备执行。For each operation instruction in the device linkage operation instruction, according to the device capability information stored locally, it is judged whether the device executing the operation instruction can parse the operation instruction, and if so, directly send the operation instruction to the corresponding Otherwise, trigger the device capable of parsing the operation instruction to analyze the operation instruction, and send the analysis result to the corresponding instruction execution device for execution.

较佳地,所述设备,进一步用于当作为物联网中除所述主设备之外的其他设备时,预先将自身的设备能力信息发送给所述物联网中的主设备。Preferably, the device is further configured to send its own device capability information to the master device in the Internet of Things in advance when serving as a device other than the master device in the Internet of Things.

较佳地,所述设备,进一步用于预先根据自身具有的每种设备能力和预设的相应能力权重,计算本设备的设备综合能力;与所述物联网中的其他设备交换各自的设备综合能力;根据所述物联网中每个设备的设备综合能力,确定所述物联网中的主设备。Preferably, the device is further used to calculate the device comprehensive capability of the device in advance according to each device capability it has and the corresponding preset capability weight; exchange respective device comprehensive capabilities with other devices in the Internet of Things Capability: determining the master device in the Internet of Things according to the comprehensive device capability of each device in the Internet of Things.

较佳地,所述设备,具体用于确定所述物联网中的主设备,包括:选择所述物联网中所述设备综合能力的最大值对应的设备,作为所述物联网的主设备。Preferably, the device is specifically used to determine the master device in the Internet of Things, comprising: selecting a device corresponding to the maximum comprehensive capability of the device in the Internet of Things as the master device in the Internet of Things.

较佳地,所述设备,进一步用于预先根据所述物联网中每个设备的所述设备综合能力,选择所述物联网中所述设备综合能力的次大值对应的设备,作为所述物联网的副主设备。Preferably, the device is further configured to pre-select the device corresponding to the next largest value of the device comprehensive capability in the Internet of Things according to the device comprehensive capability of each device in the Internet of Things, as the The sub-master device of the Internet of Things.

较佳地,所述设备,进一步用于当作为所述主设备时,在本地初始化联动配置信息时或者本地的所述联动配置信息发生变更时,将本地保存的所述联动配置信息同步给所述副主设备;所述联动配置信息包括:所述场景推荐模式和所述物联网中每个设备的设备能力信息;当作为所述副主设备时,实时地检测所述主设备的状态,并在所述主设备处于异常状态时,将自身设置为主设备并通知所述物联网中的其他设备,根据当前的所述联动配置信息执行主设备的功能。Preferably, the device is further configured to, when acting as the master device, synchronize the locally saved linkage configuration information to the The sub-master device; the linkage configuration information includes: the scenario recommendation mode and the device capability information of each device in the Internet of Things; when serving as the sub-master device, detect the state of the master device in real time, And when the master device is in an abnormal state, set itself as the master device and notify other devices in the Internet of Things, and execute the function of the master device according to the current linkage configuration information.

较佳地,所述设备,进一步用于当作为所述物联网中除所述主设备之外的其他设备时,预先将各自的设备能力信息上报给所述主设备。Preferably, the device is further configured to, when serving as other devices in the Internet of Things except the main device, report respective device capability information to the main device in advance.

较佳地,所述场景推荐模型由云端服务器预先训练并发送给所述主设备。Preferably, the scene recommendation model is pre-trained by a cloud server and sent to the main device.

较佳地,所述设备,进一步用于当作为所述主设备时,在所述设备联动操作指令执行完成后,如果所述用户选择执行所述设备联动操作指令,则将所述用户在所述事件发生时选择执行所述设备联动操作指令,反馈给所述云端服务器;如果所述用户选择不执行所述设备联动操作指令,则将所述用户在所述事件发生时未选择执行所述设备联动操作指令以及所述用户的相应后续操作,反馈给所述云端服务器;Preferably, the device is further configured to, when serving as the master device, after the execution of the device linkage operation instruction is completed, if the user chooses to execute the device linkage operation instruction, the user will When the event occurs, choose to execute the device linkage operation instruction, and feed it back to the cloud server; if the user chooses not to execute the device linkage operation instruction, the user does not choose to execute the device linkage operation instruction when the event occurs The device linkage operation instruction and the corresponding follow-up operation of the user are fed back to the cloud server;

所述云端服务器,进一步用于根据所述反馈,对所述事件对应的场景推荐模型中的设备联动操作指令进行优化。The cloud server is further configured to optimize the device linkage operation instructions in the scene recommendation model corresponding to the event according to the feedback.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only a preferred embodiment of the application, and is not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application should be included in the application. within the scope of protection.

Claims (10)

1. A multi-device linkage method, comprising:
when a preset event occurs in the Internet of things, the main equipment in the Internet of things triggers corresponding equipment in the Internet of things to collect and report the current environmental characteristics according to a scene recommendation condition in a scene recommendation model corresponding to the event which is locally stored; judging whether the scene recommendation condition is met currently or not according to the environmental characteristics; the scene recommendation model comprises a scene trigger event, a scene recommendation condition and a device linkage operation instruction of a scene;
if the scene recommendation condition is met currently, the main equipment triggers a user to select whether to execute an equipment linkage operation instruction of the scene recommendation model;
when a user selects to execute the equipment linkage operation instruction, the main equipment triggers corresponding equipment in the Internet of things to execute the equipment linkage operation instruction according to locally stored equipment capability information of each piece of equipment in the Internet of things;
the method for determining the master device comprises the following steps:
each device in the Internet of things calculates the comprehensive device capacity of the device according to each device capacity of the device and a preset corresponding capacity weight;
all the devices in the Internet of things exchange respective device comprehensive capabilities with each other;
and each device determines the main device in the Internet of things according to the comprehensive device capacity of each device in the Internet of things.
2. The method of claim 1, wherein the triggering, by the master device in the internet of things, the device in the internet of things to collect and report the corresponding environmental features according to the locally stored scene recommendation conditions in the scene recommendation model corresponding to the event comprises:
the main equipment informs corresponding equipment in the Internet of things of sensing environment information according to condition parameters in the scene recommendation conditions;
and the corresponding equipment senses the current environment according to the notification, converts a sensing result into an environment characteristic vector and then sends the environment characteristic vector to the main equipment.
3. The method of claim 1, wherein the triggering the respective device in the internet of things to execute the device linkage operation instruction comprises:
for each operation instruction in the equipment linkage operation instruction, the main equipment judges whether the equipment executing the operation instruction can analyze the operation instruction according to the locally stored equipment capacity information, and if so, the operation instruction is directly sent to corresponding instruction execution equipment for execution; otherwise, triggering equipment capable of analyzing the operation instruction to analyze the operation instruction, and sending an analysis result to corresponding instruction execution equipment to execute the operation instruction.
4. The method of claim 1, wherein the method further comprises:
and other devices except the main device in the Internet of things send own device capability information to the main device in advance.
5. The method of claim 1, wherein the determining the master device in the internet of things comprises:
and selecting the equipment corresponding to the maximum value of the comprehensive capacity of the equipment in the Internet of things as the main equipment of the Internet of things.
6. The method of claim 1, wherein the method further comprises:
and each device selects a device corresponding to the second largest value of the comprehensive capability of the device in the Internet of things as a secondary main device of the Internet of things in advance according to the comprehensive capability of the device of each device in the Internet of things.
7. The method of claim 6, wherein the method further comprises:
the main equipment synchronizes the linkage configuration information stored locally to the auxiliary main equipment when the linkage configuration information is initialized locally or changed; the linkage configuration information includes: the scene recommendation model and the equipment capability information of each equipment in the Internet of things;
and the auxiliary main equipment detects the state of the main equipment in real time, sets the auxiliary main equipment as the main equipment and informs other equipment in the Internet of things when the main equipment is in an abnormal state, and executes the function of the main equipment according to the current linkage configuration information.
8. The method of claim 1, wherein the method further comprises:
the scene recommendation model is trained in advance by a cloud server and is sent to the main device.
9. The method of claim 8, wherein after the device linkage operation instruction execution is complete, the method further comprises:
if the user selects to execute the equipment linkage operation instruction, the main equipment feeds the equipment linkage operation instruction selected to be executed by the user when the event occurs back to the cloud server;
if the user selects not to execute the equipment linkage operation instruction, the main equipment feeds the equipment linkage operation instruction which is not selected by the user to be executed when the event occurs and corresponding subsequent operation of the user back to the cloud server;
and the cloud server optimizes the equipment linkage operation instruction in the scene recommendation model corresponding to the event according to the feedback.
10. The utility model provides a multi-device linkage system, its characterized in that, includes the equipment in high in the clouds server and the thing networking, wherein:
the device is used for triggering the corresponding device in the Internet of things to collect and report the current environmental characteristics according to the scene recommendation conditions in the scene recommendation model corresponding to the locally stored events when the device is used as the main device and the preset events occur in the Internet of things; judging whether the scene recommendation condition is met currently or not according to the environmental characteristics; the scene recommendation model comprises a scene trigger event, a scene recommendation condition and a device linkage operation instruction of a scene; if the scene recommendation condition is met currently, triggering a user to select whether to execute an equipment linkage operation instruction of the scene recommendation model; when a user selects to execute the equipment linkage operation instruction, triggering corresponding equipment in the Internet of things to execute the equipment linkage operation instruction according to locally stored equipment capacity information of each equipment in the Internet of things; the method for determining the master device comprises the following steps: each device in the Internet of things calculates the comprehensive capability of the device according to the capability of each device and the preset corresponding capability weight; all the devices in the Internet of things exchange respective device comprehensive capabilities with each other; and each device determines the main device in the Internet of things according to the comprehensive device capacity of each device in the Internet of things.
CN202010993364.XA 2020-09-21 2020-09-21 Multi-device linkage method and system Active CN112153137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010993364.XA CN112153137B (en) 2020-09-21 2020-09-21 Multi-device linkage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010993364.XA CN112153137B (en) 2020-09-21 2020-09-21 Multi-device linkage method and system

Publications (2)

Publication Number Publication Date
CN112153137A CN112153137A (en) 2020-12-29
CN112153137B true CN112153137B (en) 2023-04-07

Family

ID=73893408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010993364.XA Active CN112153137B (en) 2020-09-21 2020-09-21 Multi-device linkage method and system

Country Status (1)

Country Link
CN (1) CN112153137B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309478A (en) * 2021-04-20 2022-11-08 华为技术有限公司 Method and device for multi-device cooperation
CN113114779B (en) * 2021-04-23 2022-09-02 杭州萤石软件有限公司 Configuration method, terminal and system for linkage of Internet of things equipment
CN113507443B (en) * 2021-06-10 2022-03-25 广州大学 Internet of things access control method and device based on time capability tree and storage medium
CN113485206A (en) * 2021-08-06 2021-10-08 时代云英(重庆)科技有限公司 Extensible Internet of things system and method
CN115314529B (en) * 2022-10-11 2023-03-21 之江实验室 Universal equipment linkage method and system
CN116017630A (en) * 2022-12-30 2023-04-25 联想(北京)有限公司 Dynamic networking method and device and electronic equipment
CN117812113B (en) * 2024-01-09 2024-08-23 中科物栖(南京)科技有限公司 Recommending method, recommending device, recommending equipment and recommending storage medium for Internet of things equipment
CN119415265B (en) * 2025-01-03 2025-05-09 杭州海康威视系统技术有限公司 Linkage pairing method, device and equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394045B (en) * 2014-10-29 2018-02-02 小米科技有限责任公司 Recommend method and apparatus for the scene mode of smart machine
CN105182777A (en) * 2015-09-18 2015-12-23 小米科技有限责任公司 Equipment controlling method and apparatus
CN105785777A (en) * 2016-03-04 2016-07-20 橙朴(上海)智能科技有限公司 Intelligent home control system based on learning
CN106773772A (en) * 2017-02-10 2017-05-31 杭州极智科技有限公司 A kind of ZigBee intelligent domestic gateways scene inter-linked controlling method
CN108092862A (en) * 2017-12-15 2018-05-29 四川爱联科技有限公司 WiFi ad hoc network control systems based on Internet of Things
CN109936489A (en) * 2019-03-25 2019-06-25 美的智慧家居科技有限公司 The control method and system, gateway and storage medium of scene linkage
CN110825973A (en) * 2019-11-15 2020-02-21 珠海格力电器股份有限公司 Scene and linkage recommendation method and system, storage medium and network side equipment

Also Published As

Publication number Publication date
CN112153137A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN112153137B (en) Multi-device linkage method and system
US20180182392A1 (en) Method for performing voice control on device with microphone array, and device thereof
CN104285428B (en) Method and system for operating communication services
CN107231473B (en) Audio output regulation and control method, equipment and computer readable storage medium
US20200245051A1 (en) Bluetooth headset control method, bluetooth headset, and computer readable storage medium
CN107135128B (en) Call chain data acquisition method, mobile terminal and computer-readable storage medium
KR20210089867A (en) Internet of things interlocking system of ir control device
CN103634168A (en) A volume adjusting method for a household electrical appliance in an intelligent household and a system
CN109168013A (en) A kind of method, apparatus, equipment and computer readable storage medium for taking out frame
CN103576569B (en) A kind of Automatic adjustment method, equipment and system
US20180192208A1 (en) Listening experiences for smart environments using hearing devices
CN108521874A (en) MDT measurement methods and device
CN107395873B (en) Volume adjusting method and device, storage medium and terminal
CN112492340B (en) Live broadcast audio acquisition method, mobile terminal and computer readable storage medium
CN112867141B (en) A positioning control method, bluetooth service node and electronic equipment
CN116600359A (en) Data transmission method, device, system and readable storage medium
CN107733508B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN113365337B (en) PHR reporting method, PHR receiving method, terminal and network equipment
CN109783337A (en) Model service method, system, device and computer readable storage medium
CN118984368A (en) A method and system for multi-modal fusion intelligent visual intercom communication scheduling
CN105407445A (en) Connection method and first electronic device
CN107580124B (en) Method for switching antenna, communication terminal and computer readable storage medium
CN116137728A (en) Communication method, storage medium and electronic device
CN113472614A (en) Voice interaction equipment and voice interaction method
CN105227436B (en) Network account based reminding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant