CN108989157A - Method, apparatus for smart machine control - Google Patents
Method, apparatus for smart machine control Download PDFInfo
- Publication number
- CN108989157A CN108989157A CN201710413937.5A CN201710413937A CN108989157A CN 108989157 A CN108989157 A CN 108989157A CN 201710413937 A CN201710413937 A CN 201710413937A CN 108989157 A CN108989157 A CN 108989157A
- Authority
- CN
- China
- Prior art keywords
- message
- smart machine
- node
- device node
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000012545 processing Methods 0.000 claims description 24
- 238000013519 translation Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 17
- 230000006854 communication Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 12
- 230000006855 networking Effects 0.000 description 10
- 230000002452 interceptive effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total 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 kind of method, apparatus for smart machine control, are related to field of computer technology, this method comprises: the facility information node in distributed application program coordination service stores message queue MQ;MQ message is handled by the MQ, realizes the control to the smart machine.The embodiment solves the problems, such as not being compatible between the smart machine of different vendor, improves the usage experience and management experience of user.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of method, apparatus for smart machine control.
Background technique
Home intelligence concept was risen since the 1970s, with the development and application of Internet of Things, in recent years by
Step has obtained promotion and application, and various home intelligent products and control system are constantly gushed out.
Smart home technology generally refers to communication or control protocol, including link layer Networking protocol and application layer pipe at present
Manage agreement.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Existing smart home technology still none general field standard, link layer Networking protocol and apply layer-management
The shortage of agreement causes smart home market to be separated from each other, and product confusion is incompatible;Even smart machine uses identical chain
Road layer protocol, smart machine management and be in communication with each other, due to intelligent device management mode, communication interface, interactive command
It can not be compatible between the smart machine of different vendor caused by format is different.Therefore, the optional smart machine of user seriously by
Limit reduces the usage experience and management experience of user.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method, apparatus for smart machine control, it is able to solve difference
The problem that can not be compatible between the smart machine of manufacturer improves the usage experience and management experience of user.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side of smart machine control is provided
Method.
A kind of method of smart machine control of the embodiment of the present invention includes: the equipment in distributed application program coordination service
Node stores message queue MQ;MQ message is handled by the MQ, realizes the control to the smart machine.
Optionally, the device node is used to store the information of equipment;The device node further includes in the following terms
At least one of: state node, description node, certification node, instruction node, network address translation node.
Optionally, handling MQ message by the MQ includes: to be set by MQ processing controlling terminal and/or the intelligence
The MQ message that preparation is sent.
Optionally, MQ message is handled by the MQ further include: parse by the MQ and store the MQ message;Or,
It is encapsulated by the MQ and sends the MQ message.
Optionally, being parsed by the MQ and storing the MQ message includes: to receive the MQ message, parses the MQ and disappears
Breath obtains unique identifier;The device node corresponding with the MQ message is determined according to the unique identifier;It will parsing
The MQ message afterwards is stored in the device node.
To achieve the above object, according to another aspect of an embodiment of the present invention, a kind of dress of smart machine control is provided
It sets.
A kind of device of smart machine control of the embodiment of the present invention includes: memory module, in Distributed Application journey
The device node of sequence coordination service stores message queue MQ;Processing module is realized for handling MQ message by the MQ to institute
State the control of smart machine.
Optionally, the device node is used to store the information of equipment;The device node further includes in the following terms
At least one of: state node, description node, certification node, instruction node, network address translation node.
Optionally, the processing module is also used to: handling controlling terminal by the MQ and/or the smart machine is sent
MQ message.
Optionally, the processing module is also used to: being parsed by the MQ and is stored the MQ message;Or, by described
MQ is encapsulated and is sent the MQ message.
Optionally, the processing module is further used for: receiving the MQ message, parses the MQ message and uniquely known
Other code;The device node corresponding with the MQ message is determined according to the unique identifier;The MQ after parsing is disappeared
Breath is stored in the device node.
To achieve the above object, according to an embodiment of the present invention in another aspect, providing a kind of electronic equipment.
The a kind of electronic equipment of the embodiment of the present invention includes: one or more processors;Storage device, for storing one
Or multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of
The method that processor realizes the smart machine control of the embodiment of the present invention.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is processed
The method of the smart machine control of the embodiment of the present invention is realized when device executes.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because uses unified smart machine control
Managed Solution processed stores message queue MQ in the device node of distributed application program coordination service, handles MQ message by MQ,
So that smart machine is communicated by MQ message, overcomes due to ununified link layer Networking protocol and application layer pipe
Manage agreement, or the different vendor that the way to manage due to smart machine, communication interface, interactive command format are different, caused
Smart machine between the problem that can not be compatible with, ensure that the compatibility of intelligent device management, realize between smart machine
It interconnects, improves the usage experience and management experience of user, and then smart machine is made only to need to pay close attention to function and instruction
Exploitation.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment
With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the key step of the method for smart machine control according to an embodiment of the present invention;
Fig. 2 is the device node frame under the home unit of the method for smart machine control according to an embodiment of the present invention
Schematic diagram;
Fig. 3 is the schematic diagram of the processing MQ message of the method for smart machine control according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of the message mechanism of the method for smart machine control according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of the smart machine networking management of the method for smart machine control according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of the main modular of the device of smart machine control according to an embodiment of the present invention;
Fig. 7 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 8 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present application
Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the schematic diagram of the key step of the method for smart machine control according to an embodiment of the present invention.
As shown in Figure 1, the method that a kind of smart machine of the embodiment of the present invention controls mainly includes the following steps:
Step S101: message queue MQ is stored in the device node of distributed application program coordination service.
Distributed application program coordination service (Zookeeper) is open source code, can provide one for Distributed Application
The software of sex service is caused, the function of providing includes: configuring maintenance, domain name service, distributed synchronization, group service etc..
Since Zookeeper can only store information, message etc., in order to make Zookeeper can be realized send message and
Message is received, stores message queue (MQ) in the device node of Zookeeper, smart machine handles message by MQ, thus
So that Zookeeper is had storage, send message and receive three kinds of functions of message, and then smart machine is enable to be based on application layer
Standard advanced message queue protocol (AMQP agreement), Simple Mail Transfer protocol (smtp protocol) or simple (stream) text orientation disappear
It ceases agreement (STOMP agreement) and carries out MQ message communicating.The Controlling model of loose formula is constructed by the way of MQ message communicating, is applied
The Controlling model of AMQP agreement, smtp protocol or this loose formula of STOMP protocol realization ensure that the compatibility of smart machine control
Property.
In the embodiment of the present invention, device node is used to store the information of equipment;Device node further includes in the following terms
At least one of: state node, description node, certification node, instruction node, network address translation node.
In Zookeeper, the corresponding device node of each smart machine is stored with multiple under each device node
Child node, child node be used to store each functional node information of smart machine, wherein it is current that state node stores smart machine
Status information;The version information etc. of node storage smart machine is described;Authenticate the authentication information of node storage smart machine;Instruction
The function command information that node storage smart machine has;Network address translation node stores the interim extranet access of smart machine
Mapped port and IP information;The interactive information of message queue storage smart machine.
Step S102: MQ message is handled by MQ, realizes the control to smart machine.
MQ message is handled by using MQ makes Zookeeper have storage, send three kinds of message of message and reception
Function, meanwhile, the smart machine under Zookeeper can be communicated by MQ with other smart machines.On MQ may include
Pass queue, downloading queue, failed Queue.
In the embodiment of the present invention, the MQ message of controlling terminal and/or smart machine transmission is handled by MQ.
MQ can handle the MQ message from controlling terminal and smart machine, thus realize smart machine and controlling terminal it
Between interconnecting between smart machine and smart machine.
It should be noted that controlling terminal may include mobile phone, tablet computer etc., smart machine may include intelligent laundry
Machine, intelligent air condition, intelligent window etc..
In the embodiment of the present invention, is parsed by MQ and store MQ message;Or, being encapsulated by MQ and sending MQ message.
MQ parses MQ message, then the MQ message of storing and resolving when receiving MQ message first;MQ is sending MQ message
When, MQ message is encapsulated first, then sends the MQ message of encapsulation.
In the embodiment of the present invention, MQ message is received, parsing MQ message obtains unique identifier;It is determined according to unique identifier
Device node corresponding with MQ message;MQ message after parsing is stored in device node.
When home unit (i.e. the corresponding Zookeeper of family) is added in smart machine application, by smart machine or service
Device adds the unique identifier that the smart machine corresponds to the home (e) node, when smart machine is communicated, takes in MQ message
With unique identifier, therefore, MQ can obtain unique identifier by parsing MQ message, to be determined according to unique identifier
Device node corresponding with MQ message, and then MQ message is stored in corresponding device node.
Fig. 2 is the device node frame under the home unit of the method for smart machine control according to an embodiment of the present invention
Schematic diagram.
As shown in Fig. 2, realizing the discovery and management to equipment by the extension to Zookeeper distributed computing technology;Together
When, by storing message queue MQ under the device node of Zookeeper, Zookeeper is enabled to send and receive message.
Multiple equipment can be corresponded under one family unit, each equipment is mapped as equipment section on Zookeeper tree
Point, and pass through the child node recording equipment information of device node.Specific each child node function introduction is as follows:
State node: the current period of state of description equipment, period of state include offline, online unidentified, online having known
Not, it is online it is unverified, online authenticated, operating status, busy condition, malfunction.
Node is described: by contents such as the version informations of equipment active reporting oneself of identification, such as software version information,
Hardware revision information, version of AMQP agreement etc..
Authenticate node: the authentication information of recording equipment.
When home (e) node is added in equipment application, unique identifier is added to the equipment, the unique identifier is for marking
The identity of the equipment, and then the authentication information of recording equipment are needed with preventing other unknown devices that any network is added without limitation
It is noted that the modes such as the unique identifier can actively be provided by equipment, server distribution are added.
Instruction node: the function command that description equipment has.
Since there are many device category, while the function of each equipment is different, such as is purified air, mopped floor, because
This, each equipment has peculiar function command.
Network address translation (NAT) node: the mapped port and IP address of the description interim extranet access of equipment.
Usually under the application scenarios of home unit, equipment work passes through gateway Outside Access under Intranet mode,
One interim pooled NAT address with the time-to-live is generated by gateway when access passes through gateway, outer net is with needing to rely on this NAT
Location accesses Intranet equipment.
It should be noted that equipment, which pulls the stage all in initial access phase and subsequent MQ, actively to be initiated by equipment
, at this time, it may be necessary to NAT nodal information be updated, using the unique address identification information as equipment.
Message queue: including instruction queue, response queue and failed Queue, wherein uploading queue is that system or control are whole
Hold the MQ message comprising command information sent to equipment;Downloading queue is equipment respond request or authentication phase active reporting
MQ message;Failed Queue is used for the exception information that receiving device reports.
By way of being made between equipment and controlling terminal MQ message, realizing dependence message communicating between equipment and equipment
Interconnect, due to the node of Zookeeper be it is stringent orderly, child node can be used directly as message queue.
Meanwhile monitoring mechanism is realized on Zookeeper, the monitoring for relying on node can be with the message team of same home node
It is inserted into specific message in column, i.e. smart machine can send MQ message to adjacent smart machine, so that between smart machine
Can mutually be known with mutual inductance.
Fig. 3 is the schematic diagram of the processing MQ message of the method for smart machine control according to an embodiment of the present invention.
As shown in figure 3, the MQ message of smart machine is stored in Zookeeper's after resolution unit and storage unit processing
In message queue under device node, specific treatment process is as follows:
1, MQ message is received
Resolution unit parses the MQ message received, and the MQ message after parsing is stored in setting for Zookeeper by storage unit
In downloading queue under slave node, smart machine can receive MQ message or server to intelligence by way of periodically pulling
Energy equipment pushes the MQ message newly received.To enable smart machine to receive from controlling terminal and other smart machines
MQ message.
2, MQ message is sent
When smart machine sends MQ message, resolution unit is packaged MQ message, and storage unit disappears the MQ after encapsulation
It ceases in the upload queue being stored under the device node of Zookeeper, and then passes through server to controlling terminal and other intelligence
Equipment sends MQ message, realizes interconnecting between controlling terminal and smart machine, smart machine and smart machine.
Fig. 4 is the message mechanism schematic diagram of the method for smart machine control according to an embodiment of the present invention.
As shown in figure 4, the interaction of smart machine and controlling terminal is realized by server, server is by smart machine and control
The MQ message that terminal processed sends or receives is stored in the node of Zookeeper, and smart machine can be by periodically pulling reception
MQ message or server push the MQ message newly received to smart machine.
Fig. 5 is the schematic diagram of the smart machine networking management of the method for smart machine control according to an embodiment of the present invention.
The networking management of smart machine needs to establish the secure connection of identification and certification, between smart machine and server
Authentication url and normal work are all communicated using MQ message, are passed through and are sent a series of authentication url MQ message, server
End executes MQ message, and creates interdependent node on Zookeeper and complete connection verification process.
As shown in figure 5, the process that specific smart machine is interacted with server is as follows:
Step S501: smart machine sends the application that networks.
Step S502: home gateway carries out network address translation, and sends online networking MQ message to server.
Step S503: smart machine reports authentication information.
Step S504: home gateway sends the MQ message for carrying smart machine authentication information to server.
Step S505: smart machine reports operating status.
Step S506: home gateway sends the MQ message for carrying smart machine operating status to server.
So far, smart machine has been successfully joined home (e) node, and user can be interacted by controlling terminal with smart machine.
Step S507: controlling terminal issues command M Q message.
Step S508: the MQ message that controlling terminal issues is stored in the downloading of the device node of Zookeeper by server
In queue.
Step S509: smart machine pulls MQ message from message queue.
Step S510: smart machine replys MQ message.
Step S511: the MQ message that smart machine is replied is stored in the upload of the device node of Zookeeper by server
In queue.
Step S512: controlling terminal receives the MQ message that smart machine is replied.
The method of smart machine control according to an embodiment of the present invention can be seen that because using unified smart machine control
Managed Solution processed stores message queue MQ in the device node of distributed application program coordination service, handles MQ message by MQ,
So that smart machine is communicated by MQ message, overcomes due to ununified link layer Networking protocol and application layer pipe
Manage agreement, or the different vendor that the way to manage due to smart machine, communication interface, interactive command format are different, caused
Smart machine between the problem that can not be compatible with, ensure that the compatibility of intelligent device management, realize between smart machine
It interconnects, improves the usage experience and management experience of user, and then smart machine is made only to need to pay close attention to function and instruction
Exploitation is tested.
Fig. 6 is the schematic diagram of the main modular of the device of smart machine control according to an embodiment of the present invention.
As shown in fig. 6, the device 600 that the smart machine of the embodiment of the present invention controls specifically include that memory module 601 and
Processing module 602.
Wherein:
Memory module 601 stores message queue MQ for the device node in distributed application program coordination service;
Processing module 602 realizes the control to the smart machine for handling MQ message by the MQ.
In the embodiment of the present invention, the device node is used to store the information of equipment;The device node further includes following
At least one of in items: state node, description node, certification node, instruction node, network address translation node.
In the embodiment of the present invention, the processing module 602 is also used to: handling controlling terminal and/or described by the MQ
The MQ message that smart machine is sent.
In addition, the processing module 602 is also used to: being parsed by the MQ and store the MQ message;Or, by described
MQ is encapsulated and is sent the MQ message.
In addition, the processing module 602 is further used for: receiving the MQ message, parse the MQ message and obtain uniquely
Identification code;The device node corresponding with the MQ message is determined according to the unique identifier;By the MQ after parsing
Message is stored in the device node.
The device of smart machine control according to an embodiment of the present invention can be seen that because using unified smart machine control
Managed Solution processed stores message queue MQ in the device node of distributed application program coordination service, handles MQ message by MQ,
So that smart machine is communicated by MQ message, overcomes due to ununified link layer Networking protocol and application layer pipe
Manage agreement, or the different vendor that the way to manage due to smart machine, communication interface, interactive command format are different, caused
Smart machine between the problem that can not be compatible with, ensure that the compatibility of intelligent device management, realize between smart machine
It interconnects, improves the usage experience and management experience of user, and then smart machine is made only to need to pay close attention to function and instruction
Exploitation.
Fig. 7, which is shown, can apply the smart machine control method of the embodiment of the present invention or showing for smart machine control device
Example property system architecture 700.
As shown in fig. 7, system architecture 700 may include terminal device 701,702,703, network 704 and server 705.
Network 704 between terminal device 701,702,703 and server 705 to provide the medium of communication link.Network 704 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 701,702,703 and be interacted by network 704 with server 705, to receive or send out
Send message etc..Various telecommunication customer end applications can be installed on terminal device 701,702,703.
Terminal device 701,702,703 can be the various electronic equipments with display screen, including but not limited to intelligent hand
Machine, tablet computer, pocket computer on knee and desktop computer etc..
Server 705 can be to provide the server of various services.Back-stage management server can be to the product received
The data such as information inquiring request carry out the processing such as analyzing, and processing result is fed back to terminal device.
It should be noted that smart machine control method provided by the embodiment of the present invention is generally executed by server 705,
Correspondingly, smart machine control device is generally positioned in server 705.
It should be understood that the number of terminal device, network and server in Fig. 7 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 8, it illustrates the computer systems 800 for the terminal device for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Terminal device shown in Fig. 8 is only an example, function to the embodiment of the present application and should not use model
Shroud carrys out any restrictions.
As shown in figure 8, computer system 800 includes central processing unit (CPU) 801, it can be read-only according to being stored in
Program in memory (ROM) 802 or be loaded into the program in random access storage device (RAM) 803 from storage section 808 and
Execute various movements appropriate and processing.In RAM 803, also it is stored with system 800 and operates required various programs and data.
CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always
Line 804.
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.;
And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because
The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon
Computer program be mounted into storage section 808 as needed.
Particularly, according to an embodiment of the invention, the process of key step figure description above may be implemented as computer
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes program code for executing method shown in key step figure.In this way
Embodiment in, which can be downloaded and installed from network by communications portion 809, and/or from detachable
Medium 811 is mounted.When the computer program is executed by central processing unit (CPU) 801, executes in the system of the application and limit
Fixed above-mentioned function.
It should be noted that computer-readable medium shown in the application can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in module involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet
Include memory module and processing module.Wherein, the title of these modules is not constituted to the module itself under certain conditions
It limits, for example, memory module is also described as storing message team in the device node of distributed application program coordination service
Arrange the module of MQ.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes
Obtaining the equipment includes: step S101: storing message queue MQ in the device node of distributed application program coordination service;Step
S102: MQ message is handled by MQ, realizes the control to smart machine.
Technical solution according to an embodiment of the present invention is being distributed because controlling Managed Solution using unified smart machine
The device node of formula application program coordination service stores message queue MQ, handles MQ message by MQ, smart machine is enable to lead to
It crosses MQ message to be communicated, overcome due to ununified link layer Networking protocol and application level management protocol, or due to
The way to manage of smart machine, communication interface, interactive command format are different, nothing between the smart machine of caused different vendor
The compatible problem of method, ensure that the compatibility of intelligent device management, realizes interconnecting between smart machine, improve use
The usage experience at family and management experience, and then smart machine is made only to need to pay close attention to the exploitation of function and instruction.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any
Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention
Within.
Claims (12)
1. a kind of smart machine control method, which is characterized in that the described method includes:
Message queue MQ is stored in the device node of distributed application program coordination service;
MQ message is handled by the MQ, realizes the control to the smart machine.
2. the method according to claim 1, wherein
The device node is used to store the information of equipment;
The device node further includes at least one of the following: state node, description node, certification node, instruction section
Point, network address translation node.
3. according to the method described in claim 2, it is characterized in that, including: by MQ processing MQ message
The MQ message of controlling terminal and/or smart machine transmission is handled by the MQ.
4. according to the method described in claim 3, it is characterized in that, handling MQ message by the MQ further include:
It is parsed by the MQ and stores the MQ message;
Or,
It is encapsulated by the MQ and sends the MQ message.
5. according to the method described in claim 4, it is characterized in that, being parsed by the MQ and storing the MQ message and include:
The MQ message is received, the MQ message is parsed and obtains unique identifier;
The device node corresponding with the MQ message is determined according to the unique identifier;
The MQ message after parsing is stored in the device node.
6. a kind of smart machine control device characterized by comprising
Memory module stores message queue MQ for the device node in distributed application program coordination service;
Processing module realizes the control to the smart machine for handling MQ message by the MQ.
7. device according to claim 6, which is characterized in that
The device node is used to store the information of equipment;
The device node further includes at least one of the following: state node, description node, certification node, instruction section
Point, network address translation node.
8. device according to claim 7, which is characterized in that the processing module is also used to:
The MQ message of controlling terminal and/or smart machine transmission is handled by the MQ.
9. device according to claim 8, which is characterized in that the processing module is also used to:
It is parsed by the MQ and stores the MQ message;
Or,
It is encapsulated by the MQ and sends the MQ message.
10. device according to claim 9, which is characterized in that the processing module is further used for:
The MQ message is received, the MQ message is parsed and obtains unique identifier;
The device node corresponding with the MQ message is determined according to the unique identifier;
The MQ message after parsing is stored in the device node.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
Such as method as claimed in any one of claims 1 to 5 is realized when row.
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 true CN108989157A (en) | 2018-12-11 |
CN108989157B 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) |
Cited By (3)
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 (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1792076A (en) * | 2003-04-17 | 2006-06-21 | 维斯托公司 | A data access, replication or communication system comprising a distributed software application |
CN1977176A (en) * | 2003-02-05 | 2007-06-06 | 诺基亚有限公司 | System and method for facilitating end-to-end quality of service in message transmissions employing message queues |
CN102025576A (en) * | 2010-11-18 | 2011-04-20 | 中兴通讯股份有限公司 | Home automation system and control method thereof |
CN103019180A (en) * | 2012-11-19 | 2013-04-03 | 东软集团股份有限公司 | 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 |
CN104065741A (en) * | 2014-07-04 | 2014-09-24 | 用友软件股份有限公司 | Data collection system and method |
CN104092767A (en) * | 2014-07-21 | 2014-10-08 | 北京邮电大学 | Posting/subscribing system for adding message queue models and working method thereof |
CN104331032A (en) * | 2014-08-26 | 2015-02-04 | 纳普(上海)软件有限公司 | Intelligent device control system |
CN105338086A (en) * | 2015-11-04 | 2016-02-17 | 浪潮软件股份有限公司 | Distributed message forwarding method |
CN106130882A (en) * | 2016-07-13 | 2016-11-16 | 北京百度网讯科技有限公司 | For the method and apparatus transmitting message |
CN106169967A (en) * | 2016-07-14 | 2016-11-30 | 美的集团股份有限公司 | A kind of subscription client, household electrical appliance and control method thereof |
CN106412123A (en) * | 2016-11-28 | 2017-02-15 | 上海斐讯数据通信技术有限公司 | Distributed terminal equipment information processing method and system of cloud access controller |
CN106657394A (en) * | 2017-02-10 | 2017-05-10 | 山东浪潮商用系统有限公司 | Equipment information collection system and method based on Internet of Things big data |
-
2017
- 2017-06-05 CN CN201710413937.5A patent/CN108989157B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1977176A (en) * | 2003-02-05 | 2007-06-06 | 诺基亚有限公司 | System and method for facilitating end-to-end quality of service in message transmissions employing message queues |
CN1792076A (en) * | 2003-04-17 | 2006-06-21 | 维斯托公司 | 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 |
CN103019180A (en) * | 2012-11-19 | 2013-04-03 | 东软集团股份有限公司 | 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 |
CN104065741A (en) * | 2014-07-04 | 2014-09-24 | 用友软件股份有限公司 | Data collection system and method |
CN104092767A (en) * | 2014-07-21 | 2014-10-08 | 北京邮电大学 | Posting/subscribing system for adding message queue models and working method thereof |
CN104331032A (en) * | 2014-08-26 | 2015-02-04 | 纳普(上海)软件有限公司 | Intelligent device control system |
CN105338086A (en) * | 2015-11-04 | 2016-02-17 | 浪潮软件股份有限公司 | Distributed message forwarding method |
CN106130882A (en) * | 2016-07-13 | 2016-11-16 | 北京百度网讯科技有限公司 | For the method and apparatus transmitting message |
CN106169967A (en) * | 2016-07-14 | 2016-11-30 | 美的集团股份有限公司 | A kind of subscription client, household electrical appliance and control method thereof |
CN106412123A (en) * | 2016-11-28 | 2017-02-15 | 上海斐讯数据通信技术有限公司 | Distributed terminal equipment information processing method and system of cloud access controller |
CN106657394A (en) * | 2017-02-10 | 2017-05-10 | 山东浪潮商用系统有限公司 | Equipment information collection system and method based on Internet of Things big data |
Cited By (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN108989157B (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108733005A (en) | A kind of method and device of control smart machine linkage | |
CN110247784A (en) | The method and apparatus for determining network topology structure | |
CN107211232A (en) | The interworking of lightweight Machine To Machine agreement and device management agreement | |
CN108769214A (en) | For controlling edge calculations equipment, the method and apparatus for updating the data | |
CN110519379A (en) | Request processing method and equipment based on micro services | |
CN109995801A (en) | A kind of method for message transmission and device | |
CN110324169A (en) | A kind of method and apparatus of interface management | |
CN108574604A (en) | test method and device | |
CN103701640A (en) | Method and system of using intelligent management terminal to update ODN (optical distribution network) equipment | |
CN109766082A (en) | The method and apparatus that the application program page jumps | |
CN108259598A (en) | A kind of awareness apparatus unified access method based on isomery fusion and cloud analytic technique | |
CN109309736A (en) | The generation method and generating means of globally unique ID | |
CN109981322A (en) | The method and apparatus of cloud resource management based on label | |
CN108989157A (en) | Method, apparatus for smart machine control | |
CN108833251A (en) | Method and apparatus for controlling the network interconnection | |
CN109815107A (en) | The method and apparatus of automatic test | |
CN103973763A (en) | Terminal control system and gateway | |
CN108763534A (en) | Method and apparatus for handling information | |
CN108805379A (en) | Support that multi-mode is honoured an agreement the system and method for flow | |
CN110505074A (en) | A kind of application module integrated approach and device | |
CN108306953A (en) | A kind of strong compatible real time push method presented for Internet of Things application data | |
CN113778499B (en) | Method, apparatus, device and computer readable medium for publishing services | |
CN109379179A (en) | Method and apparatus for updating digital certificate | |
CN109981546A (en) | The method and apparatus for obtaining the far call relationship between application module | |
CN109005250A (en) | Method and apparatus for accessing server-side |
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 |