CN108989157B - Method and device for controlling intelligent equipment - Google Patents

Method and device for controlling intelligent equipment Download PDF

Info

Publication number
CN108989157B
CN108989157B CN201710413937.5A CN201710413937A CN108989157B CN 108989157 B CN108989157 B CN 108989157B CN 201710413937 A CN201710413937 A CN 201710413937A CN 108989157 B CN108989157 B CN 108989157B
Authority
CN
China
Prior art keywords
node
message
intelligent
storing
equipment
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
CN201710413937.5A
Other languages
Chinese (zh)
Other versions
CN108989157A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710413937.5A priority Critical patent/CN108989157B/en
Publication of CN108989157A publication Critical patent/CN108989157A/en
Application granted granted Critical
Publication of CN108989157B publication Critical patent/CN108989157B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device for controlling intelligent equipment, which relate to the technical field of computers, and the method comprises the following steps: storing a message queue MQ at a device information node of the distributed application program coordination service; and processing MQ messages through the MQ to realize the control of the intelligent equipment. The implementation method solves the problem that intelligent devices of different manufacturers cannot be compatible with each other, and improves the use experience and the management experience of users.

Description

Method and device for controlling intelligent equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for controlling intelligent equipment.
Background
The family intelligent concept is started to rise from the 20 th century and the 70 th century, along with the development and application of the internet of things, the family intelligent concept is gradually popularized and applied in recent years, and various family intelligent products and control systems are continuously emerged.
At present, the smart home technology mainly refers to communication or control protocols, including a link layer networking protocol and an application layer management protocol.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the existing intelligent home technology does not have a universal field standard, the intelligent home market is separated from each other due to the lack of a link layer networking protocol and an application layer management protocol, and products are disordered and incompatible; even if the intelligent devices adopt the same link layer protocol, the intelligent devices of different manufacturers cannot be compatible with each other due to different intelligent device management modes, communication interfaces and interactive command formats in the management and mutual communication of the intelligent devices. Therefore, user-selectable smart devices are severely limited, reducing the user experience and management experience.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling an intelligent device, which can solve the problem that intelligent devices of different manufacturers cannot be compatible with each other, and improve user experience and management experience.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of controlling an intelligent device.
The method for controlling the intelligent equipment comprises the following steps: storing a message queue MQ at a device node of the distributed application program coordination service; and processing MQ messages through the MQ to realize the control of the intelligent equipment.
Optionally, the device node is configured to store information of a device; the device node further comprises at least one of: state node, description node, authentication node, instruction node, network address translation node.
Optionally, processing the MQ message by the MQ comprises: and processing the MQ message sent by the control terminal and/or the intelligent device through the MQ.
Optionally, processing the MQ message by the MQ further comprises: parsing and storing the MQ message by the MQ; or, encapsulating and transmitting the MQ message through the MQ.
Optionally, parsing and storing the MQ message by the MQ comprises: receiving the MQ message, and analyzing the MQ message to obtain a unique identification code; determining the device node corresponding to the MQ message according to the unique identification code; and storing the resolved MQ message in the equipment node.
To achieve the above object, according to another aspect of the embodiments of the present invention, an apparatus for controlling an intelligent device is provided.
The device for controlling the intelligent equipment in the embodiment of the invention comprises: the storage module is used for storing the message queue MQ in the device node of the distributed application program coordination service; and the processing module is used for processing the MQ message through the MQ and realizing the control of the intelligent equipment.
Optionally, the device node is configured to store information of a device; the device node further comprises at least one of: state node, description node, authentication node, instruction node, network address translation node.
Optionally, the processing module is further configured to: and processing the MQ message sent by the control terminal and/or the intelligent device through the MQ.
Optionally, the processing module is further configured to: parsing and storing the MQ message by the MQ; or, encapsulating and transmitting the MQ message through the MQ.
Optionally, the processing module is further configured to: receiving the MQ message, and analyzing the MQ message to obtain a unique identification code; determining the device node corresponding to the MQ message according to the unique identification code; and storing the resolved MQ message in the equipment node.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the method for controlling the intelligent device.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention stores thereon a computer program, which, when executed by a processor, implements a method of controlling an intelligent device of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: because a unified intelligent device control management scheme is adopted, a message queue MQ is stored in a device node of a distributed application program coordination service, and the MQ message is processed through the MQ, the intelligent device can communicate through the MQ message, the problem that the intelligent devices of different manufacturers cannot be compatible due to the fact that a unified link layer networking protocol and an application layer management protocol do not exist or due to the fact that the intelligent devices are different in management modes, communication interfaces and interactive command formats is solved, the management compatibility of the intelligent devices is guaranteed, interconnection and intercommunication among the intelligent devices are achieved, the use experience and the management experience of users are improved, and the intelligent devices only need to pay attention to development of functions and instructions.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a method of intelligent device control according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a device node framework in a home unit of a method of smart device control according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the processing of MQ messages for a smart device controlled method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a message mechanism of a method of smart device control according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of intelligent device network entry management for a method of intelligent device control according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the main modules of an intelligent device controlled apparatus according to an embodiment of the present invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing the terminal device or the server according to the embodiment of the present application.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of the main steps of a method of smart device control according to an embodiment of the present invention.
As shown in fig. 1, a method for controlling an intelligent device according to an embodiment of the present invention mainly includes the following steps:
step S101: message queues MQ are stored at device nodes of the distributed application coordination service.
The distributed application program coordination service (Zookeeper) is open source code and is software capable of providing a consistency service for distributed applications, and the provided functions comprise: configuration maintenance, domain name service, distributed synchronization, group service, etc.
Because the Zookeeper can only store information, messages and the like, in order to enable the Zookeeper to realize message sending and message receiving, a Message Queue (MQ) is stored in a device node of the Zookeeper, and the intelligent device processes the messages through the MQ, so that the Zookeeper has three functions of message storing, message sending and message receiving, and further the intelligent device can carry out MQ message communication based on an application layer standard advanced message queue protocol (AMQP protocol), a simple mail transfer protocol (SMTP protocol) or a simple (streaming) text oriented message protocol (STOMP protocol). A loose control model is constructed in an MQ message communication mode, and is realized by applying an AMQP protocol, an SMTP protocol or an STOMP protocol, so that the compatibility of intelligent equipment control is ensured.
In the embodiment of the invention, the equipment node is used for storing the information of the equipment; the device node further comprises at least one of: state node, description node, authentication node, instruction node, network address translation node.
In the Zookeeper, each intelligent device corresponds to one device node, a plurality of sub-nodes are stored under each device node, the sub-nodes are used for storing information of each function node of the intelligent device, and the state nodes store current state information of the intelligent device; the description node stores version information of the intelligent equipment and the like; the authentication node stores authentication information of the intelligent equipment; the instruction node stores functional instruction information of the intelligent equipment; the network address translation node stores mapping ports and IP information of temporary external network access of the intelligent equipment; the message queue stores interaction information of the intelligent device.
Step S102: and the MQ message is processed through the MQ, so that the control of the intelligent equipment is realized.
The MQ message is processed by using the MQ, so that the Zookeeper has three functions of storing, sending and receiving the message, and meanwhile, the intelligent device under the Zookeeper can communicate with other intelligent devices through the MQ. The MQ may include an upload queue, a download queue, a failure queue.
In the embodiment of the invention, the MQ message sent by the control terminal and/or the intelligent device is processed by the MQ.
The MQ can process MQ messages from the control terminal and the intelligent device, so that interconnection and intercommunication between the intelligent device and the control terminal and between the intelligent device and the intelligent device are realized.
It should be noted that the control terminal may include a mobile phone, a tablet computer, and the like, and the smart device may include a smart washing machine, a smart air conditioner, a smart window, and the like.
In the embodiment of the invention, the MQ message is analyzed and stored through the MQ; or, the MQ messages are encapsulated and sent through the MQ.
When the MQ receives the MQ message, the MQ message is firstly analyzed, and then the analyzed MQ message is stored; the MQ, when sending the MQ message, first encapsulates the MQ message and then sends the encapsulated MQ message.
In the embodiment of the invention, MQ messages are received and analyzed to obtain unique identification codes; determining a device node corresponding to the MQ message according to the unique identification code; and storing the resolved MQ message in the device node.
When the intelligent device applies for joining a family unit (namely, the Zookeeper corresponding to the family), the intelligent device or the server adds the unique identification code of the intelligent device corresponding to the family node, and when the intelligent device performs communication, the MQ message carries the unique identification code, so that the MQ can obtain the unique identification code by analyzing the MQ message, the device node corresponding to the MQ message is determined according to the unique identification code, and the MQ message is stored in the corresponding device node.
Fig. 2 is a schematic diagram of a device node framework in a home unit of a method of smart device control according to an embodiment of the present invention.
As shown in fig. 2, the discovery and management of devices are realized by extending the Zookeeper distributed technology; meanwhile, by storing the message queue MQ under the device node of the Zookeeper, the Zookeeper can send and receive messages.
The method includes that a plurality of devices can be corresponding to a home unit, each device is mapped to be a device node on a Zookeeper tree, and device information is recorded through child nodes of the device nodes. The functions of each child node are introduced as follows:
and (3) state node: describing the current state cycle of the equipment, wherein the state cycle comprises off-line state, on-line state unidentified, on-line identified, on-line unidentified, on-line authenticated, operation state, busy state and fault state.
Describing the nodes: the identified device actively reports the version information and other contents of the device, such as software version information, hardware version information, version of AMQP protocol and the like.
Authenticating the node: authentication information of the device is recorded.
When the device applies for joining the home node, a unique identification code is added to the device, and the unique identification code is used for marking the identity of the device and further recording the authentication information of the device, so that other unknown devices are prevented from joining any network without limitation.
The instruction node: functional instructions provided by the device are described.
Due to the wide variety of devices, each device has different functions, such as purifying air, mopping the floor, etc., and thus each device has unique functional instructions.
Network Address Translation (NAT) node: the mapping port and IP address of the device temporary extranet access is described.
Generally, in an application scenario of a home unit, a device operates in an intranet mode and accesses the outside through a gateway device, when the access passes through the gateway, the gateway generates a temporary dynamic NAT address with survival time, and an external network needs to access the intranet device by relying on the NAT address.
It should be noted that the device is actively initiated by the device in the initial connection phase and the subsequent MQ pull phase, and at this time, the NAT node information needs to be updated to serve as the unique address identification information of the device.
Message queue: the system comprises an instruction queue, a response queue and a fault queue, wherein the uploading queue is an MQ message containing instruction information and sent to equipment by a system or a control terminal; the downloading queue is an MQ message actively reported by a device response request or an authentication stage; the fault queue is used for receiving the abnormal information reported by the equipment.
The MQ message enables the devices and the control terminal and the devices to realize interconnection and intercommunication depending on message communication, and as the Zookeeper nodes are strictly ordered, the sub-nodes can be directly used as message queues.
Meanwhile, a monitoring mechanism is realized on the Zookeeper, and specific messages can be inserted into the message queues of the same family node depending on the monitoring of the node, namely, the intelligent device can send MQ messages to adjacent intelligent devices, so that mutual inductance mutual awareness can be achieved between the intelligent devices.
Fig. 3 is a schematic diagram of processing MQ messages for a smart device controlled method according to an embodiment of the present invention.
As shown in fig. 3, after being processed by the parsing unit and the storage unit, the MQ message of the intelligent device is stored in the message queue under the device node of the Zookeeper, and the specific processing procedure is as follows:
1. receiving MQ messages
The analyzing unit analyzes the received MQ message, the storage unit stores the analyzed MQ message in a download queue under the Zookeeper device node, and the intelligent device can receive the MQ message in a timing pulling mode or the server pushes the newly received MQ message to the intelligent device. Thereby enabling the smart device to receive MQ messages from the control terminal and other smart devices.
2. Sending MQ messages
When the intelligent device sends the MQ message, the analysis unit encapsulates the MQ message, the storage unit stores the encapsulated MQ message in an uploading queue under the device node of the Zookeeper, and then the MQ message is sent to the control terminal and other intelligent devices through the server, so that interconnection and intercommunication between the control terminal and the intelligent device, and between the intelligent device and the intelligent device are realized.
Fig. 4 is a message mechanism diagram of a method for controlling an intelligent device according to an embodiment of the present invention.
As shown in fig. 4, the interaction between the smart device and the control terminal is implemented by the server, the server stores the MQ messages sent or received by the smart device and the control terminal in the node of the Zookeeper, and the smart device may receive the MQ messages by pulling at regular time or the server pushes the newly received MQ messages to the smart device.
Fig. 5 is a schematic diagram of smart device network entry management of a method of smart device control according to an embodiment of the present invention.
The network access management of the intelligent device needs to establish identification and authentication security connection, the authentication link and normal work between the intelligent device and the server all adopt MQ messages for communication, the server end executes the MQ messages by sending a series of authentication link MQ messages, and a related node is established on the Zookeeper to complete the connection authentication process.
As shown in fig. 5, the specific process of interaction between the smart device and the server is as follows:
step S501: and the intelligent equipment sends a network access application.
Step S502: the home gateway converts the network address and sends an online network access MQ message to the server.
Step S503: and the intelligent equipment reports the authentication information.
Step S504: and the home gateway sends the MQ message carrying the authentication information of the intelligent equipment to the server.
Step S505: and the intelligent equipment reports the running state.
Step S506: and the home gateway sends an MQ message carrying the running state of the intelligent equipment to the server.
By this point, the intelligent device has successfully joined the home node, and the user can interact with the intelligent device through the control terminal.
Step S507: and the control terminal issues an instruction MQ message.
Step S508: and the server stores the MQ message issued by the control terminal in a download queue of the Zookeeper equipment node.
Step S509: the smart device pulls the MQ message from the message queue.
Step S510: the smart device replies to the MQ message.
Step S511: and the server stores the MQ message replied by the intelligent device in an uploading queue of the device node of the Zookeeper.
Step S512: and the control terminal receives the MQ message replied by the intelligent equipment.
According to the method for controlling the intelligent equipment, disclosed by the embodiment of the invention, because a unified intelligent equipment control management scheme is adopted, the message queue MQ is stored in the equipment node of the distributed application program coordination service, and the MQ message is processed through the MQ, the intelligent equipment can communicate through the MQ message, so that the problem that the intelligent equipment of different manufacturers cannot be compatible due to the fact that a unified link layer networking protocol and an application layer management protocol do not exist, or due to the fact that the intelligent equipment is different in management mode, communication interface and interactive command format is solved, the compatibility of intelligent equipment management is ensured, the interconnection and intercommunication among the intelligent equipment are realized, the use experience and management experience of a user are improved, and the intelligent equipment only needs to pay attention to the development and verification of functions and instructions.
Fig. 6 is a schematic diagram of main modules of an apparatus controlled by a smart device according to an embodiment of the present invention.
As shown in fig. 6, the apparatus 600 for controlling an intelligent device according to an embodiment of the present invention mainly includes: a storage module 601 and a processing module 602.
Wherein:
a storage module 601, configured to store a message queue MQ at a device node of the distributed application coordination service;
a processing module 602, configured to process the MQ message through the MQ, so as to implement control over the intelligent device.
In the embodiment of the present invention, the device node is configured to store information of a device; the device node further comprises at least one of: state node, description node, authentication node, instruction node, network address translation node.
In this embodiment of the present invention, the processing module 602 is further configured to: and processing the MQ message sent by the control terminal and/or the intelligent device through the MQ.
In addition, the processing module 602 is further configured to: parsing and storing the MQ message by the MQ; or, encapsulating and transmitting the MQ message through the MQ.
Moreover, the processing module 602 is further configured to: receiving the MQ message, and analyzing the MQ message to obtain a unique identification code; determining the device node corresponding to the MQ message according to the unique identification code; and storing the resolved MQ message in the equipment node.
According to the device for controlling the intelligent equipment, disclosed by the embodiment of the invention, because a unified intelligent equipment control management scheme is adopted, the message queue MQ is stored in the equipment node of the distributed application program coordination service, and the MQ message is processed through the MQ, the intelligent equipment can communicate through the MQ message, so that the problem that the intelligent equipment of different manufacturers cannot be compatible due to the fact that a unified link layer networking protocol and an application layer management protocol do not exist, or due to the fact that the intelligent equipment is different in management mode, communication interface and interactive command format is solved, the management compatibility of the intelligent equipment is ensured, the interconnection and intercommunication among the intelligent equipment are realized, the use experience and management experience of a user are improved, and the intelligent equipment only needs to pay attention to the development of functions and instructions.
Fig. 7 illustrates an exemplary system architecture 700 to which the smart device control method or the smart device control apparatus of the embodiments of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 701, 702, 703.
The terminal devices 701, 702, 703 may be various electronic devices having a display screen including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server that provides various services. The background management server can analyze and process the received data such as the product information inquiry request and feed back the processing result to the terminal equipment.
It should be noted that the intelligent device control method provided in the embodiment of the present invention is generally executed by the server 705, and accordingly, the intelligent device control apparatus is generally disposed in the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use in implementing a terminal device of an embodiment of the present application. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, the processes described above with respect to the main step diagrams may be implemented as computer software programs, according to embodiments of the present invention. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing the method illustrated in the main step diagram. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a memory module and a processing module. Where the names of these modules do not in some way constitute a limitation on the modules themselves, for example, a storage module may also be described as a module that stores a message queue, MQ, at a device node of the distributed application coordination service.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: step S101: storing a message queue MQ at a device node of the distributed application program coordination service; step S102: and the MQ message is processed through the MQ, so that the control of the intelligent equipment is realized.
According to the technical scheme of the embodiment of the invention, because a unified intelligent device control management scheme is adopted, the message queue MQ is stored in the device node of the distributed application program coordination service, and the MQ message is processed by the MQ, the intelligent device can communicate through the MQ message, so that the problem that the intelligent devices of different manufacturers cannot be compatible due to the absence of a unified link layer networking protocol and an application layer management protocol or due to different management modes, communication interfaces and interactive command formats of the intelligent devices is solved, the management compatibility of the intelligent devices is ensured, the interconnection and intercommunication among the intelligent devices are realized, the use experience and the management experience of users are improved, and further the intelligent devices only need to pay attention to the development of functions and instructions.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. An intelligent device control method, characterized in that the method comprises:
storing a message queue MQ at a device node of the distributed application program coordination service;
MQ messages are processed through the MQ, and control over the intelligent device is achieved;
the message queue is used for storing the interaction information of the intelligent equipment; each intelligent device corresponds to one device node, a plurality of sub-nodes are stored under each device node, and the sub-nodes are used for storing information of each function node of the intelligent device.
2. The method of claim 1,
the equipment node is used for storing the information of the equipment;
the device node further comprises at least one of: state node, description node, authentication node, instruction node, network address translation node.
3. The method as in claim 2, wherein processing MQ messages via the MQ comprises:
and processing the MQ message sent by the control terminal and/or the intelligent device through the MQ.
4. The method as in claim 3, wherein processing MQ messages via the MQ further comprises:
parsing and storing the MQ message by the MQ;
or the like, or, alternatively,
encapsulating and transmitting the MQ message through the MQ.
5. The method as in claim 4, wherein parsing and storing the MQ messages by the MQ comprises:
receiving the MQ message, and analyzing the MQ message to obtain a unique identification code;
determining the device node corresponding to the MQ message according to the unique identification code;
and storing the resolved MQ message in the equipment node.
6. An intelligent device control apparatus, comprising:
the storage module is used for storing the message queue MQ in the device node of the distributed application program coordination service;
the processing module is used for processing the MQ message through the MQ to realize the control of the intelligent equipment;
the message queue is used for storing the interaction information of the intelligent equipment; each intelligent device corresponds to one device node, a plurality of sub-nodes are stored under each device node, and the sub-nodes are used for storing information of each function node of the intelligent device.
7. The apparatus of claim 6,
the equipment node is used for storing the information of the equipment;
the device node further comprises at least one of: state node, description node, authentication node, instruction node, network address translation node.
8. The apparatus of claim 7, wherein the processing module is further configured to:
and processing the MQ message sent by the control terminal and/or the intelligent device through the MQ.
9. The apparatus of claim 8, wherein the processing module is further configured to:
parsing and storing the MQ message by the MQ;
or the like, or, alternatively,
encapsulating and transmitting the MQ message through the MQ.
10. The apparatus of claim 9, wherein the processing module is further configured to:
receiving the MQ message, and analyzing the MQ message to obtain a unique identification code;
determining the device node corresponding to the MQ message according to the unique identification code;
and storing the resolved MQ message in the equipment node.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201710413937.5A 2017-06-05 2017-06-05 Method and device for controlling intelligent equipment Active CN108989157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710413937.5A CN108989157B (en) 2017-06-05 2017-06-05 Method and device for controlling intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710413937.5A CN108989157B (en) 2017-06-05 2017-06-05 Method and device for controlling intelligent equipment

Publications (2)

Publication Number Publication Date
CN108989157A CN108989157A (en) 2018-12-11
CN108989157B true CN108989157B (en) 2021-11-26

Family

ID=64501987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710413937.5A Active CN108989157B (en) 2017-06-05 2017-06-05 Method and device for controlling intelligent equipment

Country Status (1)

Country Link
CN (1) CN108989157B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032082A (en) * 2019-04-26 2019-07-19 广东昇辉电子控股有限公司 Intelligent household equipment management system and method
CN110225005A (en) * 2019-05-27 2019-09-10 广东华卓科技有限公司 A kind of smart machine control method and system based on Netty network frame
CN112198805A (en) * 2019-07-08 2021-01-08 阿里巴巴集团控股有限公司 Equipment control method, device, system, computing equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412123A (en) * 2016-11-28 2017-02-15 上海斐讯数据通信技术有限公司 Distributed terminal equipment information processing method and system of cloud access controller

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6940813B2 (en) * 2003-02-05 2005-09-06 Nokia Corporation System and method for facilitating end-to-end quality of service in message transmissions employing message queues
GB0308991D0 (en) * 2003-04-17 2003-05-28 Psion Digital Ltd A data access replication or communication system comprising a distributed software application
CN102025576A (en) * 2010-11-18 2011-04-20 中兴通讯股份有限公司 Home automation system and control method thereof
CN103019180B (en) * 2012-11-19 2015-04-15 东软集团股份有限公司 Interconnecting and controlling method and system among electronic equipment
CN104023321A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Safe and reliable information transmission system based on mobile network
CN104065741B (en) * 2014-07-04 2018-06-19 用友网络科技股份有限公司 Data collecting system and collecting method
CN104092767B (en) * 2014-07-21 2017-06-13 北京邮电大学 A kind of publish/subscribe system and its method of work for increasing message queue model
CN104331032A (en) * 2014-08-26 2015-02-04 纳普(上海)软件有限公司 Intelligent device control system
CN105338086B (en) * 2015-11-04 2019-06-25 浪潮软件股份有限公司 A kind of distributed message forwarding method
CN106130882B (en) * 2016-07-13 2019-04-30 北京百度网讯科技有限公司 The method and apparatus for being used for transmission message
CN106169967A (en) * 2016-07-14 2016-11-30 美的集团股份有限公司 A kind of subscription client, household electrical appliance and control method thereof
CN106657394B (en) * 2017-02-10 2020-06-05 浪潮软件科技有限公司 Equipment information acquisition system and method based on Internet of things big data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412123A (en) * 2016-11-28 2017-02-15 上海斐讯数据通信技术有限公司 Distributed terminal equipment information processing method and system of cloud access controller

Also Published As

Publication number Publication date
CN108989157A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN107018147B (en) Internet of things communication method and system and gateway module
US9246819B1 (en) System and method for performing message-based load balancing
US9350763B1 (en) HTTP tunnelling over websockets
EP3208974A1 (en) Power line carrier communication terminal control device, system and method
TWI735429B (en) Authentication method, device, system and electronic equipment for client login server end
CN110417783B (en) Data transmission method and device based on Internet of things, storage medium and terminal
US10999377B2 (en) Method, device and computer program product for protocol selection
US9910817B2 (en) Apparatus, system, and method for allowing USB devices to communicate over a network
CN105763619B (en) The method and device that client and server-side are communicated
CN102763373B (en) The method and apparatus using the service of local network devices based on remote access
CN109815107B (en) Method and device for automatic testing
CN108989157B (en) Method and device for controlling intelligent equipment
CN104539510A (en) Multi-protocol-based information pushing system and method
CN112968919B (en) Data processing method, device, equipment and storage medium
CN108989424A (en) A kind of method and system remotely controlled
US20120191828A1 (en) Method and apparatus of performing remote command dispatching
CN110545230A (en) method and device for forwarding VXLAN message
CN113778499B (en) Method, apparatus, device and computer readable medium for publishing services
CN110417875B (en) Method, system, equipment and storage medium for docking between cloud servers
CN106130863B (en) Transfer approach, device and the system of LAN protocol message
US9754327B2 (en) Method and apparatus for configuring social networking site sharing functions
CN106331051B (en) Document transmission method and system and reception file device send file device
US9450906B2 (en) Managing a messaging queue in an asynchronous messaging system
CN112565458B (en) Platform remote control method and device, storage medium and electronic equipment
CN116437377A (en) Communication method, system, electronic device and medium for device control communication protocol

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