CN109788009B - Interaction method for Internet of things equipment and Internet of things equipment - Google Patents

Interaction method for Internet of things equipment and Internet of things equipment Download PDF

Info

Publication number
CN109788009B
CN109788009B CN201711113144.8A CN201711113144A CN109788009B CN 109788009 B CN109788009 B CN 109788009B CN 201711113144 A CN201711113144 A CN 201711113144A CN 109788009 B CN109788009 B CN 109788009B
Authority
CN
China
Prior art keywords
task
module
equipment
internet
slave module
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
CN201711113144.8A
Other languages
Chinese (zh)
Other versions
CN109788009A (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.)
Qingdao Haier Smart Technology R&D Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Smart Technology R&D 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 Qingdao Haier Smart Technology R&D Co Ltd filed Critical Qingdao Haier Smart Technology R&D Co Ltd
Priority to CN201711113144.8A priority Critical patent/CN109788009B/en
Publication of CN109788009A publication Critical patent/CN109788009A/en
Application granted granted Critical
Publication of CN109788009B publication Critical patent/CN109788009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses an interaction method for equipment of the Internet of things, and belongs to the technical field of the Internet of things. The method comprises the following steps: after receiving a task, the equipment broadcasts a task identifier of the task and receives task identifiers broadcast by other equipment; and when the task identification broadcast by other equipment is the same as the task identification of the task, negotiating with the other equipment and determining a strategy for executing the task. According to the invention, through the concept of the Internet of things, the same task instruction is completed by a single device or is completed by a plurality of devices cooperatively, so that the repeated operation in the task execution process is ensured to be avoided. The invention also discloses the Internet of things equipment.

Description

Interaction method for Internet of things equipment and Internet of things equipment
Technical Field
The invention relates to the technical field of Internet of things, in particular to an interaction method for Internet of things equipment and the Internet of things equipment.
Background
Along with the development of science and technology, electronic equipment in the family is more and more at present, for example washing machine, refrigerator, TV, air conditioner etc. and every equipment all has corresponding remote controller moreover, and prior art discloses an intelligent house controlgear, can be connected with a plurality of equipment in the family and carry out integrated control to a plurality of equipment of connecting, has avoided the inconvenience that single control brought between corresponding remote controller and the electronic equipment. Because the convenience brought by the intelligent household control equipment is increasingly remarkable, a user can select to adopt a plurality of intelligent household control equipment according to different partitions such as a kitchen, a bedroom, a living room and the like in a family. At present, communication cannot be realized among a plurality of intelligent household control devices, when the plurality of intelligent household control devices receive the same instruction signal (such as a voice signal), the plurality of intelligent household control devices can respectively execute related operations, and certain intelligent household control devices are inevitably subjected to misoperation.
Disclosure of Invention
The embodiment of the invention provides an interaction method for Internet of things equipment and the Internet of things equipment, and aims to solve the problem of repeated execution caused by the fact that a plurality of intelligent equipment cannot cooperatively complete tasks. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to a first aspect of the embodiments of the present invention, an interaction method for internet of things devices is provided, including: after receiving a task, the equipment broadcasts a task identifier of the task and receives task identifiers broadcast by other equipment; and when the task identification broadcast by other equipment is the same as the task identification of the task, negotiating with the other equipment and determining a strategy for executing the task.
Optionally, the policy for executing the task includes: when the device has the functional attribute corresponding to the task, the device or the other device executes the task, or the device and the other device cooperatively execute the task; and when the device does not have the functional attribute corresponding to the task, executing the task by the other device.
Optionally, before the negotiating with the other device and determining the policy for executing the task, the method further includes: and broadcasting the functional attribute of the equipment, and receiving the functional attribute broadcast by the other equipment.
Optionally, the task performed by the present device includes: the task is executed by a master module or a slave module of the device, or the master module and the slave module cooperatively execute the task; the slave module is used for collecting voice and communicating with the outside through the master module; the main module is used for communicating with the outside to transmit information.
Optionally, the task executed by the master module or the slave module of the present apparatus, or executed by the master module and the slave module in cooperation, includes: when the main module of the device has the functional attribute corresponding to the task, the main module or the slave module executes the task, or the main module and the slave module cooperatively execute the task; executing the task by the slave module when the master module does not have a functional attribute corresponding to the task.
Optionally, the method further comprises: and acquiring the functional attributes of the master module and the slave module.
Optionally, when the master module and the slave module cooperatively perform the task, the method further includes: and allocating the task amount of the master module and the slave module according to the resource use conditions of the master module and the slave module so as to balance the operation load of the master module and the slave module.
Optionally, when the device is powered on, it is determined that one of the two identical sub-modules of the device is a master module and the other is a slave module.
Optionally, it is determined that one of the two sub-modules is a master module and the other is a slave module according to a time when the two sub-modules acquire an Internet Protocol (IP) IP interconnected between networks.
Optionally, the sub-module that first obtains the IP is a master module, and the other is a slave module.
Optionally, the Time for each sub-module to acquire the IP is determined based on Network Time Protocol (NTP) Time.
According to a second aspect of the embodiments of the present invention, there is provided an internet of things device, including: a main module and a central control unit, wherein the main module comprises: the first communication unit is used for communicating with the outside and broadcasting the task identifier of the task after receiving the task; the central control unit is configured to receive, through the first communication unit, a task identifier broadcast by another device, negotiate with the other device when the task identifier broadcast by the other device is the same as the task identifier of the task, and determine a policy for executing the task.
Optionally, the policy for executing the task includes: when the device has the functional attribute corresponding to the task, the device or the other device executes the task, or the device and the other device cooperatively execute the task; and when the device does not have the functional attribute corresponding to the task, executing the task by the other device.
Optionally, the central control unit is further configured to determine whether the device has a functional attribute corresponding to the task; the main module further includes a first execution unit for executing the task alone or in cooperation with other modules.
Optionally, the first execution unit is configured to execute the task alone or in cooperation with other modules when the main module has a functional attribute corresponding to the task.
Optionally, the first communication unit is further configured to broadcast the functional attribute of the main module before the central control unit negotiates with the other devices, and receive the functional attribute broadcast by the other devices.
Optionally, the device further comprises a slave module; the slave module comprises a second communication unit for broadcasting the functional attributes of the slave module before the central control unit negotiates with the other devices.
Optionally, the slave module further includes a second execution unit, configured to execute the task alone or in cooperation with the first execution unit.
Optionally, the second execution unit is configured to execute the task alone or in cooperation with the first execution unit when the slave module has a functional attribute corresponding to the task.
Optionally, the central control unit is further configured to determine that one of two identical sub-modules of the device is a master module and the other is a slave module when the device is powered on.
Optionally, the central control unit is further configured to determine that one of the two sub-modules is a master module and the other of the two sub-modules is a slave module according to the time when the two sub-modules acquire the IP.
Optionally, the central control unit determines that the sub-module that acquires the IP first is a master module, and the other is a slave module.
Optionally, the central control unit determines the time for each sub-module to acquire the IP based on the NTP time.
Optionally, the central control unit is further configured to allocate the task volumes of the master module and the slave module according to the resource usage of the master module and the slave module, so as to balance the operation loads of the master module and the slave module.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the task identification of the task instruction received by the equipment is broadcasted, the task identification broadcasted by other equipment is obtained, whether the equipment receiving the same task exists or not is confirmed, when the equipment obtaining the same task identification exists, the equipment negotiates to execute the task corresponding to the task instruction, the same task instruction is completed by a single equipment or completed by a plurality of pieces of equipment cooperatively through the idea of the Internet of things, and repeated operation is guaranteed not to occur in the task execution process.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow diagram illustrating an interaction method for internet of things devices in accordance with an exemplary embodiment;
fig. 2 is a flowchart illustrating an interaction method for internet of things devices according to an example embodiment;
fig. 3 is a block diagram illustrating the structure of an internet of things device according to an exemplary embodiment;
fig. 4 is a block diagram illustrating a structure of an internet of things device according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a structure of an internet of things device according to an exemplary embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. As for the methods, products and the like disclosed by the embodiments, the description is simple because the methods correspond to the method parts disclosed by the embodiments, and the related parts can be referred to the method parts for description.
The Internet of things is an expanded application and network extension of a communication network and the Internet, and the Internet of things utilizes a sensing technology and an intelligent device to sense and identify the physical world, is interconnected through network transmission, performs calculation, processing and knowledge mining, realizes information interaction and seamless link between people and objects and between objects and achieves the purposes of real-time control, accurate management and scientific decision making of the physical world. Nowadays, the internet of things has penetrated into the aspects of human life, and the application in the human society is also diversified.
With the development of science and technology, the functions of the sound box are continuously upgraded, and the existing intelligent sound box becomes a tool for a consumer to surf the internet by voice, such as song ordering, online shopping or weather forecast knowing, and meanwhile, the intelligent household equipment can be controlled, such as opening a curtain, setting the temperature of a refrigerator, heating a water heater in advance and the like.
The internet of things equipment in the embodiment of the invention can be an intelligent sound box, but not limited to the intelligent sound box, and can be other intelligent control equipment which can realize voice internet surfing or control on various intelligent household equipment. In the embodiment of the present invention, two or more intelligent control devices are involved, and in the specific embodiment, an intelligent sound box is taken as an example for description. The intelligent control devices can be interconnected, and each intelligent control device can control one or more intelligent household devices, so that the application of the Internet of things is fully embodied.
In the embodiment of the invention, the functional attributes of the Internet of things equipment are not necessarily the same, wherein the functional attributes can realize functions. The basic function modules included in each piece of internet-of-things equipment are the same, but the functions that can be realized specifically may be the same or may be different.
Fig. 1 is a flowchart illustrating an interaction method for devices in the internet of things according to an exemplary embodiment of the present invention. In this embodiment, the interaction method for the internet of things device includes:
step S101: after receiving the task, the device broadcasts the task identifier of the task and receives the task identifiers broadcast by other devices.
Step S102: and when the task identification broadcast by other equipment is the same as the task identification of the task, negotiating with the other equipment and determining a strategy for executing the task.
The device is communicated with other devices, the device is any one of the internet of things devices which are communicated with each other, and the other devices are other devices in the internet of things devices which are communicated with each other.
The influence of the service environment of each thing networking device is limited, and there is the condition that a plurality of equipment received same task simultaneously, and this moment, if two smart sound boxes carry out same task simultaneously, may bring inconvenience for the user.
For example: a family user issues a voice command 'play song ″' in the kitchen, the smart sound boxes in the kitchen and the living room receive the task and play the song simultaneously, and if a guest in the living room talks or a person watches television in the living room, the trouble is brought to the user in the living room at the moment.
Therefore, after a certain device receives a task, the task identifier of the task received by the device is broadcasted, meanwhile, the task identifier broadcasted by other devices is also received, when the same task identifier exists, the same task identifier is negotiated with other one or more other devices which send the same task identifier, and the policy of the task is determined.
In this embodiment, the task identifier of the task instruction received by the device is broadcasted, the task identifiers broadcasted by other devices are acquired, whether devices receiving the same task exist or not is determined, when devices acquiring the same task identifier exist, the devices negotiate to execute the task corresponding to the task instruction, and the same task instruction is completed by a single device or completed by multiple devices in a coordinated manner through the concept of the internet of things, so that the task execution process is guaranteed to be free from repeated operation.
In some embodiments, in order to facilitate the identification and negotiation of the same task between the internet of things devices to determine a policy for executing the task, each internet of things device stores the same task attribute table, which includes: a task instruction and a task identifier. For example: the task attribute table includes an item "0005, pause playing", that is, the instruction corresponding to the task identifier is "pause playing". In step S101, when the internet of things device receives the task, the task identifier is broadcast. And determining that the task to be executed in a negotiation manner is 'pause playing' among the Internet of things devices according to the task identifier 0005. "
In any of the foregoing embodiments, in order to facilitate negotiation with the internet of things devices that receive the same task and determine a policy for executing the task in step S102, in step S101, after receiving the task, the internet of things devices broadcast a device identifier of the devices, and a negotiation object is determined between the internet of things devices according to the device identifier. Wherein the device identification is a Media Access Control (MAC) address unique to the device.
Fig. 2 is a flowchart illustrating an interaction method for devices in the internet of things according to an exemplary embodiment of the present invention. The method comprises the following steps:
step S201: after receiving the task, the device broadcasts the task identifier of the task and receives the task identifiers broadcast by other devices.
Step S202: when the task identifier broadcast by other equipment is the same as the task identifier of the task, the equipment negotiates with the other equipment, and determines that the equipment executes the task when the equipment has the functional attribute corresponding to the task, or the equipment and the other equipment cooperatively execute the task, and when the equipment does not have the functional attribute corresponding to the task, the other equipment executes the task.
In some embodiments, in order to facilitate negotiation between devices receiving the same task to determine a policy for executing the task, the interaction method for devices of the internet of things further includes, before determining the policy for executing the task: and broadcasting the functional attribute of the equipment, and receiving the functional attribute broadcast by the other equipment. There are many specific implementation manners, and in some embodiments, the functional attribute of the device is broadcasted at the beginning of establishing the interconnection relationship between the devices, and the functional attribute broadcasted by other devices is received. In some embodiments, after the device receives the task, the functional attribute of the device is broadcasted and the functional attribute broadcasted by other devices is received.
The broadcasting function attributes of the internet equipment are in various forms, but the current state of the equipment can be reflected no matter which broadcasting form is adopted, and which function can be realized. In some embodiments, the internet device broadcasts a function attribute table, which includes all function attributes of the internet device, and the current occupation status of each function attribute, i.e. which functions are currently implemented and which functions can also be implemented, is labeled. In some embodiments, the internet appliance only broadcasts functional attributes that the appliance is not currently occupied. The function attribute table is a list of all functions that can be realized by the device.
In some embodiments, each internet appliance includes a master module and a slave module. The problem that a single module cannot respond to user requirements in time due to system overload or system jamming in the process of simultaneously executing a plurality of tasks is avoided, and user experience is reduced. Each internet device comprises a central control unit, and the task amount of the master module and the task amount of the slave module are allocated according to the resource use condition of the master module and the slave module so as to balance the operation load of the master module and the slave module. As in the foregoing embodiments, when the device performs a task or when the device and another device perform a task cooperatively, the master module or the slave module of the device performs a task, or the master module and the slave module perform the task cooperatively. The slave module is used for collecting voice and communicating with the outside through the master module, and the master module is used for communicating with the outside and transmitting information.
The following description is given with reference to specific examples: the user sends a voice command 'playing song sweet honey', a slave module of the Internet of things equipment collects voice of the user and sends the voice to the cloud server through the master module, and the server performs semantic analysis on the voice collected by the slave module, generates task information and sends the task information to the Internet of things equipment. When the main module of the internet of things equipment receives the task 'playing the song sweet', the task identifier or the task content is broadcasted, the task identifier or the task content sent by other internet of things equipment is received, the central control unit judges whether other equipment receiving the same task exists or not, when the other equipment receiving the same task does not exist, the main module or the slave module executes the task, if the other equipment receiving the same task exists, the central control unit negotiates with other internet of things equipment, when the equipment executes the task, the central control unit determines that the main module plays the task or the slave module plays the task, or the main module plays the left channel and the slave module plays the right channel.
In some embodiments, the task is executed by a master module or a slave module of the present apparatus, or the task is executed by the master module and the slave module in cooperation, which specifically includes: when the master module of the present apparatus has a functional attribute corresponding to the task, the task is executed by the master module or the slave module, or the master module and the slave module cooperatively execute the task, and when the master module does not have a functional attribute corresponding to the task, the task is executed by the slave module. And the central control unit in the internet equipment distributes the tasks to be executed by the master module or the slave module according to the current functional attributes of the master module and the slave module, or the master module and the slave module cooperatively execute the tasks.
In some embodiments, the task is executed by a master module or a slave module of the apparatus, or the task is executed by the master module and the slave module in cooperation, specifically including executing the task by the master module when the master module of the apparatus has a functional attribute corresponding to the task and the slave module does not have the functional attribute corresponding to the task; when the master module and the slave module both have the functional attributes corresponding to the tasks, determining that the tasks are executed by the master module or the slave module or cooperatively executed by the master module and the slave module according to the current resource use conditions of the master module and the slave module; executing the task by the slave module when the master module does not have a functional attribute corresponding to the task. When the task is cooperatively executed by the master module and the slave module, the method further includes: and allocating the task amount of the master module and the slave module according to the resource use conditions of the master module and the slave module so as to balance the operation load of the master module and the slave module. When the master module and the slave module both have the functional attributes corresponding to the tasks, if a large amount of resources of the master module are occupied currently, the slave module executes the latest acquired tasks, or the master module executes a smaller part of the latest acquired tasks, and the rest of the latest acquired tasks are executed by the slave module. Specifically, the task amount is allocated according to the proportion of the resource usage of the master module and the slave module, and the allocated task amount is inversely proportional to the proportion of the resource usage.
In some embodiments, the central control unit is configured to obtain the functional attributes of the master module and the slave module before distributing the tasks shared by the master module and the slave module according to the current functional attributes of the master module and the slave module. There are many ways to obtain the information, and the function attribute tables of the master module and the slave module can be directly read, or the function attribute tables broadcasted by the master module and the slave module can be received. In some embodiments, each module broadcasts a function attribute table of the module, where the function attribute table includes all function attributes of the module, and a current occupation state of each function attribute, that is, which functions are currently implemented and which functions can also be implemented, is labeled. In some embodiments, each module broadcasts only the functional attributes that the module is currently unoccupied. No matter which broadcasting form is adopted, the current state of the equipment can be reflected, and which function can be realized.
In some embodiments, when the master module and the slave module cooperatively execute the task, the unit in the internet device for coordinating the allocation of the computing resources between the two modules allocates the computing resources to the master module and the slave module according to the amount of the computing capacity of the master module and the slave module for executing the task.
In some embodiments, the master module and the slave module of each internet device are two identical modules, that is, the two modules are identical in the type, number and layout of components, and there is a difference only when the functions are executed. The master module and the slave module are determined at the beginning of the startup of the internet equipment.
And determining that one of the two sub-modules is a master module and the other is a slave module according to the time for the two sub-modules to acquire the IP. In some embodiments, the sub-module that determines to obtain the IP first is the master module and the other is the slave module. In some embodiments, the sub-module that determines to obtain the IP first is the slave module, and the other is the master module. And in order to ensure the synchronism of the time for acquiring the IP by the two sub-modules, the time for acquiring the IP by each sub-module is determined based on the NTP time.
The following is an internet device provided by an embodiment of the present invention, configured to execute the method described in the above embodiment.
As shown in fig. 3, a block diagram of an internet of things device according to an exemplary embodiment of the present invention is shown, and includes: a main module 31 for communicating with the outside and a central control unit 32, wherein the main module 31 includes a first communication unit 311.
In this embodiment, the first communication unit 311 is configured to communicate with the outside, and broadcast the task identifier of the task after receiving the task. The first communication unit 311 may receive a message from another device or a cloud server.
The central control unit 32 is configured to receive the task identifier broadcast by the other device through the first communication unit 311, and when the task identifier broadcast by the other device is the same as the task identifier of the task, negotiate with the other device to determine a policy for executing the task.
The internet of things device provided by the embodiment can realize mutual communication between two or more devices, and in a specific application process, the device can realize mutual negotiation and complete a task under the condition that a plurality of devices receive the same task at the same time, so that the task can be repeatedly executed due to the fact that a plurality of devices respond.
In this embodiment, the task identifier of the task instruction received by the device is broadcasted, the task identifiers broadcasted by other devices are acquired, whether devices receiving the same task exist or not is determined, when devices acquiring the same task identifier exist, the devices negotiate to execute the task corresponding to the task instruction, and the same task instruction is completed by a single device or completed by multiple devices in a coordinated manner through the concept of the internet of things, so that the task execution process is guaranteed to be free from repeated operation.
In some embodiments, in order to facilitate the identification and negotiation of the same task between the internet of things devices to determine a policy for executing the task, each internet of things device stores a task attribute table, which includes: a task instruction and a task identifier. After receiving the task, the central control unit 32 obtains the task identifier corresponding to the task and broadcasts the task identifier by the first communication unit 311. For example: "0005, pause playing", when receiving a task instruction of "pause playing", i.e. broadcasting the task identifier 0005. In some embodiments, in order to reduce the occupied storage space, after receiving the task, each piece of internet of things equipment directly broadcasts the task instruction of the task, and does not allocate a task identifier to the task instruction. In some embodiments, in step S101, the internet of things device directly receives the task identifier sent by the cloud server, and directly broadcasts the task identifier.
In any of the foregoing embodiments, in order to facilitate negotiation between the central control unit 32 and the internet of things devices that receive the same task and determine a policy for executing the task, after receiving the task, the internet of things devices broadcast the device identifier of the devices through the first communication unit 311, and each internet of things device determines a negotiation object according to the device identifier. Wherein the device identification is a physical address unique to the device.
In some embodiments, the policy for performing the task comprises: when the device has the functional attribute corresponding to the task, the device or the other device executes the task, or the device and the other device cooperatively execute the task; and when the device does not have the functional attribute corresponding to the task, executing the task by the other device.
In some embodiments, the first communication unit 311 is further configured to broadcast the function attribute of the device and receive the function attribute broadcast by the other device before the central control unit 32 determines the policy for executing the task. There are many specific implementation manners, and in some embodiments, the functional attribute of the device is broadcasted at the beginning of establishing the interconnection relationship between the devices, and the functional attribute broadcasted by other devices is received. In some embodiments, after the device receives the task, the functional attribute of the device is broadcasted and the functional attribute broadcasted by other devices is received.
In some embodiments, the internet device only includes the main module 31 as a module for performing tasks, and the functional attributes of the device broadcasted by the main module 31 are the functional attributes of the main module 31.
In some embodiments, the internet device includes the main module 31 and other modules for performing tasks, and the functional attributes of the device broadcast by the main module 31 are the functional attributes of the main module 31 and other modules for performing tasks.
In some embodiments, the central control unit 32 is further configured to determine whether the device has a functional attribute corresponding to the task. As shown in fig. 4, the main module 31 further includes a first execution unit 311 for executing tasks alone or in cooperation with other modules.
In some embodiments, the first execution unit 311 is configured to execute the task alone or in cooperation with other modules when the main module 31 has the functional attribute corresponding to the task.
As shown in fig. 5, a block diagram of an internet of things device according to an exemplary embodiment of the present invention is shown, and includes: a master module 31 for communicating with the outside, a central control unit 32, and a slave module 33. The master module 31 includes a first communication unit 311 and a first execution unit 312, and the slave module includes a second communication unit 331 and a second execution unit 332.
In this embodiment, the slave module 33 and the master module 31 are two identical sub-modules in the internet of things device, that is, the two modules are completely identical in the type, number and layout of components, and only have a difference in executing functions. The master module and the slave module are determined at the beginning of the startup of the internet equipment. The problem that a single module cannot respond to user requirements in time due to system overload or system jamming in the process of simultaneously executing a plurality of tasks is avoided, and user experience is reduced. The central control unit 32 may be configured to coordinate the distribution of the task computation amount between the two modules, and to balance the tasks shared by the master module 31 and the slave module 33.
And a second communication unit 331 for broadcasting the function attributes of the slave module 31 before the central control unit 32 negotiates with other devices to determine a policy for executing a task.
When the central control unit 32 negotiates with other internet of things devices to determine that the device executes a task, and determines that the first execution unit 312 or the second execution unit 332 executes the task when the main module of the device has a functional attribute corresponding to the task, or the first execution unit 312 and the second execution unit 332 cooperatively execute the task, and when the main module does not have the functional attribute corresponding to the task, the second execution unit 332 executes the task.
In some embodiments, the first execution unit 312 and the second execution unit 332 are playing units for playing audio. In some embodiments, the first execution unit 312 and the second execution unit 332 each include a playing unit for playing audio.
In some embodiments, a task is executed by the master module 31 when the master module 31 has a functional attribute corresponding to the task and the slave module 33 does not have a functional attribute corresponding to the task; when the master module 31 and the slave module 33 both have the functional attributes corresponding to the tasks, determining that the master module 31 or the slave module 33 executes the tasks according to the current resource usage of the master module 31 and the slave module 33, or determining that the master module 31 and the slave module 33 execute the tasks cooperatively; when the master module 31 does not have a functional attribute corresponding to the task, the task is executed by the slave module 33. When the task is cooperatively executed by the master module 31 and the slave module 33, the method further includes: according to the resource usage of the master module 31 and the slave module 33, the task amount of the master module 31 and the slave module 33 is adjusted to balance the operation load of the master module 31 and the slave module 33. The central control unit 32 in the internet device may obtain current resource usage of the master module 31 and the slave module 33, and when both the master module 31 and the slave module 33 have the functional attributes corresponding to the tasks, if a large amount of resources of the master module 31 are occupied currently, the slave module 33 executes the latest acquired tasks, or the master module 31 executes a smaller part of the latest acquired tasks, and the rest is executed by the slave module 33. Specifically, the task amount to be allocated is inversely proportional to the ratio of the resource usage of the master module 31 and the slave module 33 according to the ratio of the resource usage.
In some embodiments, the slave module 33 further comprises: and a collecting unit for collecting voice and communicating with the outside through the first communication unit 311. This collection unit mainly used receives user's voice command to put to the high in the clouds server by first communication unit 311, carry out semantic analysis and generate the task by the high in the clouds server, and then send for thing networking device.
In the foregoing embodiment, when the device is powered on, the master-slave relationship between two identical sub-modules in the internet of things device is determined. Wherein, it is determined that one of the two sub-modules is the master module 31 and the other is the slave module 33 according to the time for the two sub-modules to acquire the IP. In some embodiments, the sub-module that determines to obtain the IP first is the master module 31, and the other is the slave module 33. In some embodiments, the sub-module that determines to obtain the IP first is the slave module 33, and the other is the master module 31. And in order to ensure the synchronism of the time for acquiring the IP by the two sub-modules, the time for acquiring the IP by each sub-module is determined based on the NTP time.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor to perform the method described above is also provided. The non-transitory computer readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic tape, an optical storage device, and the like.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, it should be understood that the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It is to be understood that the present invention is not limited to the procedures and structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. An interaction method for internet of things devices, wherein each internet of things device comprises a master module, a slave module and a central control unit, and comprises the following steps:
after receiving the task, the equipment broadcasts the task identifier of the task and the equipment identifier of the equipment, and receives the task identifier broadcast by other equipment and the equipment identifier broadcast by other equipment;
when the task identification broadcast by other equipment is the same as the task identification of the task, negotiating with the other equipment and determining a strategy for executing the task;
the internet of things equipment stores the same task attribute table, and the task attribute table comprises: the task instruction and the task identifier can determine the task instruction according to the task identifier;
the policy for executing the task includes:
when the device has the functional attribute corresponding to the task, the device or the other device executes the task, or the device and the other device cooperatively execute the task;
when the device does not have the functional attribute corresponding to the task, the other device executes the task;
and the central control unit allocates the task amount of the master module and the slave module according to the resource use conditions of the master module and the slave module.
2. The method of claim 1, wherein the task is executed by the device or executed by the device and the other device in cooperation, and the method comprises:
executing tasks by a master module or a slave module of the device, or cooperatively executing the tasks by the master module and the slave module; the slave module is used for collecting voice and communicating with the outside through the master module; the main module is used for communicating with the outside to transmit information.
3. A method according to claim 2, wherein said performing of said task by a master module or a slave module of the present device, or by said master module and said slave module in cooperation, comprises:
when the main module of the device has the functional attribute corresponding to the task, the main module or the slave module executes the task, or the main module and the slave module cooperatively execute the task;
executing the task by the slave module when the master module does not have a functional attribute corresponding to the task.
4. The method according to claim 2, wherein when the device is powered on, it is determined that one of two identical sub-modules of the device is a master module and the other is a slave module.
5. An internet of things device, comprising: the master module comprises:
the first communication unit is used for communicating with the outside and broadcasting the task identifier of the task and the equipment identifier of the equipment after receiving the task;
the central control unit is used for receiving the task identifier broadcasted by other equipment and the equipment identifier broadcasted by other equipment through the first communication unit, negotiating with other equipment when the task identifier broadcasted by other equipment is the same as the task identifier of the task, and determining a strategy for executing the task; allocating the task quantity of the master module and the slave module according to the resource use condition of the master module and the slave module;
the internet of things equipment stores the same task attribute table, and the task attribute table comprises: the task instruction and the task identifier can determine the task instruction according to the task identifier;
the policy for executing the task includes:
when the device has the functional attribute corresponding to the task, the device or the other device executes the task, or the device and the other device cooperatively execute the task;
and when the device does not have the functional attribute corresponding to the task, executing the task by the other device.
6. The apparatus of claim 5, wherein the central control unit is further configured to determine whether the apparatus has a functional attribute corresponding to the task; the main module further includes a first execution unit for executing the task alone or in cooperation with other modules.
7. The device of claim 6, further comprising a slave module; the slave module comprises a second communication unit for broadcasting the functional attributes of the slave module before the central control unit negotiates with the other devices.
8. The device of claim 7, wherein the slave module further comprises a second execution unit to execute a task alone or in conjunction with the first execution unit.
CN201711113144.8A 2017-11-13 2017-11-13 Interaction method for Internet of things equipment and Internet of things equipment Active CN109788009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711113144.8A CN109788009B (en) 2017-11-13 2017-11-13 Interaction method for Internet of things equipment and Internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711113144.8A CN109788009B (en) 2017-11-13 2017-11-13 Interaction method for Internet of things equipment and Internet of things equipment

Publications (2)

Publication Number Publication Date
CN109788009A CN109788009A (en) 2019-05-21
CN109788009B true CN109788009B (en) 2021-11-26

Family

ID=66484815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711113144.8A Active CN109788009B (en) 2017-11-13 2017-11-13 Interaction method for Internet of things equipment and Internet of things equipment

Country Status (1)

Country Link
CN (1) CN109788009B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905894A (en) * 2014-03-06 2014-07-02 北京国电通网络技术有限公司 Intelligent domestic electric appliance control method and system and intelligent set top box
CN105511287A (en) * 2016-01-27 2016-04-20 珠海格力电器股份有限公司 Intelligent household appliance control method, device and system
CN106601248A (en) * 2017-01-20 2017-04-26 浙江小尤鱼智能技术有限公司 Smart home system based on distributed voice control
CN106970535A (en) * 2017-03-30 2017-07-21 联想(北京)有限公司 A kind of control method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892900A (en) * 1996-08-30 1999-04-06 Intertrust Technologies Corp. Systems and methods for secure transaction management and electronic rights protection
US9953514B2 (en) * 2012-09-21 2018-04-24 Google Llc Visitor feedback to visitor interaction with a doorbell at a smart-home
KR102210823B1 (en) * 2013-12-20 2021-02-02 삼성전자 주식회사 Method and apparatus of communication for smart home devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905894A (en) * 2014-03-06 2014-07-02 北京国电通网络技术有限公司 Intelligent domestic electric appliance control method and system and intelligent set top box
CN105511287A (en) * 2016-01-27 2016-04-20 珠海格力电器股份有限公司 Intelligent household appliance control method, device and system
CN106601248A (en) * 2017-01-20 2017-04-26 浙江小尤鱼智能技术有限公司 Smart home system based on distributed voice control
CN106970535A (en) * 2017-03-30 2017-07-21 联想(北京)有限公司 A kind of control method and electronic equipment

Also Published As

Publication number Publication date
CN109788009A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN106537878B (en) Private content distributed network
KR20120072022A (en) Virtual smarthome system, server, home gateway based on clouding computing and method thereof
CN103905343B (en) Method for dynamically allocating broadband resources
EP3147730B1 (en) Sound box parameter configuration method, mobile terminal, server, and system
CN106647304A (en) Household electrical appliance linkage control method, household electrical appliance, server, and system
CN105491329A (en) Large-scale monitoring video stream converging method based on stream-oriented computation
CN103179467A (en) Terminal and information gathering method
KR101563223B1 (en) Hybrid-type home cloud system using resources of smart home electric devices having the combination of private cloud and public cloud with enhanced security and privacy
US10383201B1 (en) Smart mesh electrical socket
CN105099835A (en) Linkage establishing method and device
CN103581199A (en) Method and system for showing services in client terminal under multi-screen interaction scene
CN109788009B (en) Interaction method for Internet of things equipment and Internet of things equipment
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN110380944A (en) A kind of electronic equipment and its control method
CN112188639A (en) Communication method, device, equipment and computer readable medium based on WiFi Mesh network
CN112714146A (en) Resource scheduling method, device, equipment and computer readable storage medium
CN115941426A (en) Multi-service resource cooperation method, system and computer equipment
EP2750359B1 (en) Method and apparatus for providing cloud service, and system having the same
KR101869519B1 (en) Internet of things system including smart gateway
CN100481823C (en) Intermediate unit for home network and device interconnecting-interoperating method
CN107465580B (en) Control method, device and the storage medium of intelligent terminal access intelligence spot net
CN115296946B (en) Control request decomposition method and device, storage medium and electronic device
US9380085B2 (en) Server and method for providing collaboration service, and sociality management server
CN116486802A (en) Equipment control method, device, storage medium and electronic device
CN117978729A (en) Control method, control device and server of intelligent equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211220

Address after: 266101 Haier Road, Laoshan District, Qingdao, Qingdao, Shandong Province, No. 1

Patentee after: QINGDAO HAIER SMART TECHNOLOGY R&D Co.,Ltd.

Patentee after: Haier Zhijia Co., Ltd

Address before: 266101 Haier Road, Laoshan District, Qingdao, Qingdao, Shandong Province, No. 1

Patentee before: QINGDAO HAIER SMART TECHNOLOGY R&D Co.,Ltd.