CN106647293A - Equipment linkage method and apparatus based on cloud server - Google Patents
Equipment linkage method and apparatus based on cloud server Download PDFInfo
- Publication number
- CN106647293A CN106647293A CN201610760515.0A CN201610760515A CN106647293A CN 106647293 A CN106647293 A CN 106647293A CN 201610760515 A CN201610760515 A CN 201610760515A CN 106647293 A CN106647293 A CN 106647293A
- Authority
- CN
- China
- Prior art keywords
- terminal equipment
- cloud server
- source terminal
- configuration protocol
- target terminal
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000004891 communication Methods 0.000 claims abstract description 12
- 238000012217 deletion Methods 0.000 claims description 14
- 230000037430 deletion Effects 0.000 claims description 14
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000006399 behavior Effects 0.000 claims description 3
- 230000004044 response Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- 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]
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention belongs to the technical field of an intelligent household apparatus and especially relates to an equipment linkage method and apparatus based on a cloud server. The equipment linkage method based on the cloud server comprises the following steps: a terminal device establishing communication connection with the cloud server on the basis of a TCP/IP; the cloud server storing terminal device identification which is used for determining unique address information of the terminal device; and the terminal device obtaining a configuration protocol to be loaded sent by the cloud server. The equipment linkage method and apparatus based on the cloud server, provided by the invention is convenient to operate.
Description
Technical field
The invention belongs to Intelligent home device technical field, more particularly to a kind of equipment linkage method based on Cloud Server
And device.
Technical background
Smart machine be conventional electrical devices with computer technology, data processing technique, control theory, sensor technology,
The product that the network communications technology, Power Electronic Technique etc. combine.
Smart machine mainly includes both sides key content:Self detection is the basis of smart machine;OBD is
The core of smart machine.Smart machine is a kind of supermatic electromechanical integration equipment, due to its complex structure, in system
In effect it is particularly significant, therefore the reliability to smart machine has very high requirement.The reliability of components and parts, Technology design,
Technological level and technical management etc. have together decided on the reliability index of electronic product.
The advantages of existing WiFi smart machines typically are provided with low price, configure simple, easy to use, it is in intelligent family
Occupy terminal consumption market more and more to be popularized.Its basic operation flow process is as shown in Figure 1:Mobile phone A PP11 is by scanning
Addition WiFi smart machines 13 network, and mobile phone A PP11 is all connected on same Cloud Server 12 with WiFi smart machines 13, and
Mapping relations are set up on Cloud Server 12;
In local area network, mobile phone A PP11 can directly transmit control command to WiFi smart machines 13, and obtain WiFi intelligence
The operational feedback of energy equipment 13;
Off the net in remote wide area, the control command that mobile phone A PP11 sends is to be forwarded to WiFi smart machines via Cloud Server 12
The operational feedback of 13, WiFi smart machines 13 is also, via Cloud Server 12, to be forwarded to mobile phone A PP11.
In above-mentioned technical proposal, Cloud Server serves as the role of backstage transfer, all interacting with WiFi smart machines
All it is to be completed by mobile phone A PP, but this interaction is more convenient in remote operation, or for WiFi smart machines
The operation of individual cultivation, sophisticated functions, will become to be more prone to using mobile phone A PP.But local, or some are basic
Power supply manipulation, if reuse mobile phone A PP will become relatively cumbersome to manipulate.For example, as shown in Figure 2:Normal behaviour
Control LED lamp affixed to the ceilings 22, user only needs to click on the switch panel 21 on metope, and existing mode be then as shown in Figure 3,
User needs to take out mobile phone 31, opens corresponding APP, into the operation and control interface of LED lamp affixed to the ceilings, clicks on power knob, finally
Operation LED lamp affixed to the ceilings 32.
But above-mentioned technical proposal has that local operation is loaded down with trivial details.
The content of the invention
The technical problem to be solved is to provide a kind of easy to operate, based on Cloud Server equipment linkage method
And device.For this purpose, the present invention is employed the following technical solutions:
A kind of equipment linkage method based on Cloud Server, comprises the following steps:
Terminal device sets up communication connection based on ICP/IP protocol with Cloud Server;
Cloud Server preserves Terminal Equipment Identifier;
Terminal device obtains the configuration protocol to be loaded that Cloud Server sends;
The Terminal Equipment Identifier, for determining terminal device unique address information.
On the basis of using above-mentioned technical proposal, the present invention can also be using technical scheme further below:
The terminal device includes source terminal equipment and target terminal equipment, and the configuration protocol includes the first configuration protocol and the
Two configuration protocols;
The source terminal equipment, for sending the control data that the Cloud Server can be received and forwarded to Cloud Server;
The target terminal equipment, for what is can received and forward to the Cloud Server transmission Cloud Server request is reported.
First configuration protocol, for the target terminal equipment for determining source terminal equipment control and pending order;Institute
Stating the first configuration protocol includes:Source terminal equipment port numbers, for determining that source terminal equipment provides exectorial port;Target
Terminal Equipment Identifier information, for determining target terminal equipment unique address information;And the pending order of target terminal equipment;
Second configuration protocol, the source terminal equipment controlled for determining target terminal equipment;Second configuration protocol
Including:Source terminal equipment identification information, for determining source terminal equipment unique address information;And source terminal equipment port numbers,
For determining that source terminal equipment provides exectorial port.
Further, the source terminal equipment obtains first configuration protocol to be loaded of Cloud Server transmission including following
Step:
Source terminal equipment receives the renewal configuration protocol request that Cloud Server sends;
The local source terminal equipment port numbers corresponding in the first configuration protocol of source terminal equipment inquiry, are confirmed whether existing being somebody's turn to do
First configuration protocol;
In the presence of, then source terminal equipment judges whether first configuration protocol is identical in configuration protocol is locally had, when identical
Locally configured agreement is not then substituted, then source terminal equipment is substituted using first configuration protocol and locally configured association when differing
View;Or
When not existing, then source terminal equipment preserves first configuration protocol.
Further, the target terminal equipment obtain the second configuration protocol to be loaded that Cloud Server sends include with
Lower step:
Target terminal equipment receives the renewal configuration protocol request that Cloud Server sends;
Whether there is second configuration protocol in the locally configured information table of target terminal equipment query;
In the presence of, then target terminal equipment judges second configuration protocol with locally whether configuration protocol is identical, identical
Shi Ze does not substitute locally configured agreement, and then target terminal equipment substitutes locally configured letter using second configuration protocol when differing
Existing configuration protocol in breath table;Or
When not existing, then with the target terminal in second configuration protocol in the locally configured information table of target terminal equipment query
Equipment end slogan be index configuration information quantity when whether reaching the upper limit, the not up to upper limit then target terminal equipment preserve this
Two configuration protocols.
Further, the source terminal equipment please to the control that the Cloud Server transmission Cloud Server can be received and forwarded
Ask and comprise the following steps:
Source terminal equipment to Cloud Server sends control data;
Cloud server simultaneously parses the control data, inquires about target terminal equipment identification information correspondence in the control data
Target terminal equipment it is whether online;
When online, then Cloud Server sends control data to target terminal equipment, and target terminal equipment receives control data, inquiry
Whether there is in locally configured information table and matched with source terminal equipment identification information, source terminal equipment port numbers in the control data
Configuration information, exist, target terminal equipment performs the pending order of target terminal equipment in the control data;Or
When not online, Cloud Server to source terminal equipment answer failed feeds back.The unsuccessfully feedback includes:Failure feedback indicator,
For determining feedback kind;Error code, for determining the particular type of failure.
Further, the target terminal equipment is to reporting that the Cloud Server transmission Cloud Server can be received and forwarded
Request is comprised the following steps:
Target terminal equipment sends to Cloud Server and reports request;
Request is reported described in cloud server and parsing, this is inquired about and is reported source corresponding to source terminal equipment identification information in request
Whether terminal device is online;
When online, then Cloud Server sends to source terminal equipment and reports request;
Source terminal equipment receive it is described report request, inquire about and locally report the source terminal equipment port numbers in asking to be corresponding to this
It is no exist configuration information with this report request in target terminal equipment identification information it is identical;
When identical, then the target terminal device command that source terminal equipment is updated in configuration information performs state.
Wherein, the control data form includes:Source terminal equipment identification information, source terminal equipment port numbers, target end
End equipment identification information and the pending order of target terminal equipment;
It is described to report request form to include:Target terminal equipment identification information, source terminal equipment identification information, source terminal equipment end
Slogan and target terminal device command perform state.
Further, the query configuration information request includes:Query configuration information request identification, for determining request class
Type;And source terminal equipment port numbers to be checked, for determining the object of inquiry;
The configuration information includes:Source terminal equipment port numbers, for determining the object for returning configuration information;Target terminal equipment
Identification information, for determining configuration information in the unique first information of target terminal equipment;And the pending life of target terminal equipment
Order, for determining configuration information in corresponding command information.
Further, the mode that the Cloud Server sends control data is local keys of key triggering.
Meanwhile, present invention also offers technical scheme below:
A kind of device of the equipment linkage based on Cloud Server, including:
Communication units, for communicating with Cloud Server, complete the transmitting-receiving of request data;
Resolution unit, for checking the validity of request data, and the type of analysis request data;
Memory cell, for preserving configuration protocol;
Whether judging unit is identical for judging locally configured information information corresponding with request data;
Query unit, for reception from the query configuration information request of Cloud Server and according to the query configuration information request
Configuration information is returned to Cloud Server;
Unit is deleted, the deletion configuration protocol for receiving from Cloud Server is asked, and completed to delete behaviour according to request content
Make.
The terminal device includes:Source terminal equipment and target terminal equipment;
The configuration protocol includes:First configuration protocol, for configuring target terminal equipment and the pending life of target terminal equipment
Order;And second configuration protocol, the source terminal equipment controlled for determining the target terminal equipment.
Further, the communication unit, including:Link block, for being based between management and the Cloud Server
The connection of ICP/IP protocol;Sending module, control data is sent for the source terminal equipment to the Cloud Server, wherein,
The control data form is included:The source terminal equipment identification information, the source terminal equipment port numbers, target terminal equipment
Identification information, the pending order of the target terminal equipment;Receiver module, for first matching somebody with somebody from cloud server is to be loaded
Put agreement and report request for the source terminal equipment reception target terminal equipment, wherein the first configuration association
Discuss for configuring target terminal equipment and the pending order of the target terminal equipment.
Further, the communication unit, including:Link block, for being based between management and the Cloud Server
The connection of ICP/IP protocol;Sending module, sends to the Cloud Server for the target terminal equipment and reports request, its
In, it is described to report request form to include:It is the target terminal equipment identification information, the source terminal equipment identification information, described
Source terminal equipment port numbers, the target terminal device command perform state;Receiver module, for be added from cloud server
The second configuration protocol for carrying and the control data for receiving the source terminal equipment for the target terminal equipment, described second
Configuration protocol is used to determine the controlled source terminal equipment of the target terminal equipment.
The source terminal equipment and the target terminal equipment possess control and feedback unit, by so as to locally departing from
Mobile phone A PP is interacted, and simplifies the mode of operation of WiFi smart machines.
It is an advantage of the invention that:By the equipment linkage method based on Cloud Server of the present invention, can make local many
Interconnecting relation is set up by Cloud Server between individual WiFi smart machines, the control between multiple WiFi smart machines and feedback is realized,
So as to depart from the interaction of mobile phone A PP local, simplify the mode of operation of WiFi smart machines.And it is based on the equipment linkage of Cloud Server
Device mobile phone A PP partial function locally can replaced to realize manipulation to WiFi smart machines, so as to locally depart from
Mobile phone A PP is interacted, and further simplifies the mode of operation of WiFi smart machines.
Description of the drawings:
Fig. 1 is the basic flow sheet of background of invention traditional intelligence equipment control.
Fig. 2 is the simple control operation schematic diagram of background of invention traditional intelligence equipment.
Fig. 3 is the control operation schematic diagram of background of invention traditional intelligence equipment.
The control operation basic flow sheet that the smart machine network connection figure of Fig. 4 present invention and expectation reach.
Fig. 5 is the equipment linkage configuration flow figure of the present invention.
Fig. 6 is the equipment linkage querying flow figure of the present invention.
Fig. 7 is that the equipment linkage of the present invention deletes flow chart.
Fig. 8 is the equipment linkage control flow chart of the present invention.
Specific embodiment
With reference to accompanying drawing, a kind of equipment linkage method and device based on Cloud Server provided the present invention is made furtherly
It is bright.
As shown in figure 4, intelligent panel 21,21' and LED lamp affixed to the ceilings 22 are all WiFi smart machines, in family's network rings
Within the border, they are connected to Cloud Server 23 by home router 41 based on ICP/IP protocol, and intelligent panel 21,21' and LED inhales
Ceiling light 22 sets up incidence relation by Cloud Server 23.
The present invention needs to realize following equipment linkage mode:Intelligent panel 21 or intelligent panel 21' are source terminal equipment, are
The promoter of equipment linkage, LED lamp affixed to the ceilings 22 are target terminal equipment, are reception and the executor of equipment linkage.By triggering
The mode of the local keys of key of intelligent panel 21 or intelligent panel 21' can realize the manipulation to LED lamp affixed to the ceilings 22, meanwhile, LED inhales
The state change of ceiling light 22 can be synchronized in all intelligent panels associated with it.
Further, from for internal data flow process, the control data Jing cloud that intelligent panel 21 or intelligent panel 21' send
Server 23 is forwarded on LED lamp affixed to the ceilings 22, and LED lamp affixed to the ceilings are forwarded to response feedback Jing Cloud Server 23 and its phase after performing
The intelligent panel 21 of association and intelligent panel 21'.
For this purpose, specifically, it is to realize desired equipment linkage mode, it is necessary first to configure source terminal equipment and target
The incidence relation of terminal device.
As shown in figure 5, by taking intelligent panel 21, Cloud Server 23 and LED lamp affixed to the ceilings 22 as an example.
Before configuration association relation, source terminal equipment first(Intelligent panel 21)With target terminal equipment(LED lamp affixed to the ceilings
22)Require connect to the Cloud Server 23.
S501, user submits network connecting request to by configurating terminal such as mobile phone so that the source terminal equipment and institute
State target terminal equipment and be connected to the Cloud Server.
S51, the source terminal equipment is set up with the Cloud Server based on ICP/IP protocol and is connected;
S52, the target terminal equipment is set up with the Cloud Server based on ICP/IP protocol and is connected;
So, the source terminal equipment and the target terminal equipment are led to by the data with the connection establishment of the Cloud Server
Road, preserves the terminal iidentification of the source terminal equipment and the target terminal equipment on the Cloud Server, wherein, the end
End equipment mark determines the terminal device unique address information.
S53, user is asked the source terminal equipment and the mesh by configurating terminal such as mobile phone send configuration request
Mark terminal device sets up incidence relation.
S54, Cloud Server detects whether the source terminal equipment is online with the target terminal equipment, if wherein at least has
One not online then configuration failure.
S551, the Cloud Server sends to the source terminal equipment and updates configuration protocol request;
S561, the source terminal equipment receives the renewal configuration protocol request that the Cloud Server sends;
S562, the source terminal equipment inquiry locally corresponds to source terminal equipment port numbers described in first configuration protocol is
No existing first configuration protocol;
S564, if not existing, the source terminal equipment preserves first configuration protocol;
S563, further, if existing, the source terminal equipment judges first configuration protocol and has locally configured association
Whether view is identical;If differing, the source terminal equipment is substituted using first configuration protocol and locally have configuration protocol;
If identical, ignore operation.
S565, the source terminal equipment response configuration successful feedback.
Further, for the target terminal equipment the following flow process of configuration shown in:
S552, the Cloud Server sends to the target terminal equipment and updates configuration protocol request;
S571, the target terminal equipment receives the renewal configuration protocol request that the Cloud Server sends;
S572, in the locally configured information table of the target terminal equipment query second configuration protocol is whether there is;
S573, if not existing, is assisted in locally configured information table described in the target terminal equipment query with the described second configuration
The target terminal equipment end slogan in view is whether the configuration information quantity of index reaches the upper limit;
S574, if being not reaching to the upper limit, the target terminal equipment preserves second configuration protocol;
S575, if reaching the upper limit, configuration failure;
S576, further, with the presence or absence of the described second configuration association in the locally configured information table of the target terminal equipment query
View, if existing, the target terminal equipment judges second configuration protocol with locally whether configuration protocol is identical;
S577, if identical, does not substitute, and otherwise described target terminal equipment is substituted locally configured using second configuration protocol
Existing configuration protocol in information table.
S578, configuration successful;
S565, the source terminal equipment response configuration feedback.
S581, the cloud server is fed back from the configuration of the source terminal equipment;
S582, the cloud server is fed back from the configuration of the target terminal equipment;
S591, S592, judge whether the source terminal equipment is successful with the configuration feedback of the target terminal equipment;
S510, if above-mentioned both successes, feedback user equipment associated configuration success;
S511, further, if it is above-mentioned both at least one more than configuration feedback it is unsuccessful, to other configured successes
Terminal device perform delete configuration protocol action;
S512, the failure of feedback user equipment associated configuration.
As shown in fig. 6, before configuration equipment incidence relation, the source terminal equipment can be inquired about with the target terminal
Equipment is currently configured the state of related information:
S601, user sends query configuration agreement request by configurating terminal;
S602, the Cloud Server sends the query configuration agreement request;
S611, the source terminal equipment receives the query configuration agreement request 680 that the Cloud Server sends.
Wherein, the query configuration agreement request 680 includes:
Query configuration agreement request mark 681, for determining request type;
Source terminal equipment port numbers 682 to be checked, for determining the object of inquiry;
S612, the source terminal equipment judges local whether existing configuration protocol;
S613, if existing locally configured agreement is read;
S614, the source terminal equipment to the Cloud Server returns response query feedback 690, wherein the response query feedback
Comprising:
Response feedback mark 691, for determining feedback kind;
Configuration protocol 692, the configuration protocol for locally having preserved.
Further, if the source terminal equipment does not locally have configuration protocol, the source terminal equipment is directly to institute
State Cloud Server and return response query feedback;
S631, the response query feedback of the cloud server from the source terminal equipment;
S641, the configurating terminal shows the configuration protocol for inquiring;
S621, the target terminal equipment receives the query configuration agreement request 680 that the Cloud Server sends;
S622, the target terminal equipment judges local whether existing configuration protocol;
S623, if existing locally configured agreement is read;
S624, the target terminal equipment to the Cloud Server returns response query feedback 690.
Further, if the target terminal equipment does not locally have configuration protocol, the target terminal equipment is direct
Response query feedback is returned to the Cloud Server;
S632, the response query feedback of the cloud server from the target terminal equipment;
S642, the configurating terminal shows the configuration protocol for inquiring.
As shown in fig. 7, equipment linkage deletes flow process will occur in a case where:
User can be deleted by configurating terminal after inquiry terminal equipment configuration agreement to the configuration protocol for being inquired
Remove;
In equipment linkage configuration flow, if there is the side's configuration failure in source terminal equipment or target terminal equipment, then
Need that configured successful the opposing party is carried out to delete configuration protocol operation, to return to the front state of configuration.
S511, both the above condition will trigger the deletion configuration protocol request of Cloud Server;
S711, the source terminal equipment receives the configuration protocol of the deletion first request 780 from the Cloud Server.
Wherein, the first configuration protocol of deletion request 780, including:
Removal request mark 781, for determining request type;
First configuration protocol mark 782, for determining type is deleted;
Source terminal equipment port numbers 783, for determining the object deleted;
S712, the source terminal equipment judges the corresponding source terminal equipment port in the deletion the first configuration protocol request
Configuration protocol in number whether there is;
S713, if existing, deletes;
S714, arranges and deletes success flag;
S715, further, if the source terminal equipment judges the corresponding source in the deletion the first configuration protocol request
Configuration protocol in terminal device port numbers is not present, then arrange deletion and unsuccessfully identify;
S716, the source terminal equipment is deleted to the Cloud Server response and fed back;
S731, the cloud server deletes feedback, and points out to delete result;
S721, the target terminal equipment receives the configuration protocol of the deletion second request 790 from the Cloud Server.
Wherein, the first configuration protocol of deletion request 790, including:
Removal request mark 791, for determining request type;
First configuration protocol mark 792, for determining type is deleted;
Source terminal equipment identification information 793, for determining the source terminal equipment deleted;
Source terminal equipment port numbers 794, for determining that the configuration information deleted indexes the port of corresponding source terminal equipment.
S722, the target terminal equipment judges whether delete the second configuration comprising described in the locally configured information table
Source terminal equipment identification information described in agreement request and the source terminal equipment port numbers;
S713, if comprising deleting;
S714, arranges and deletes success flag;
S715, further, if the target terminal equipment judges to delete the not comprising described in the locally configured information table
Source terminal equipment identification information and the source terminal equipment port numbers described in the request of two configuration protocols, then arrange to delete and unsuccessfully mark
Know;
S716, the target terminal equipment is deleted to the Cloud Server response and fed back;
S732, the cloud server deletes feedback, and points out to delete result.
As shown in figure 8, the control flow of the equipment linkage based on Cloud Server:
S801, user triggers control data by the button of manipulation source terminal equipment;
S802, the source terminal equipment to the Cloud Server sends control data, wherein, the control data 8000 is included:
Control data mark 8001, the corresponding configuration protocol 8002 of local port;
S82, control data described in the cloud server;
S83, the Cloud Server parses the control data;
S84, the target terminal equipment identification information correspondence in the configuration protocol that the Cloud Server is inquired about in the control data
The target terminal equipment it is whether online;
S85, if online, the Cloud Server to the target terminal equipment sends control data;
S85', otherwise, then arranges control error code;
S86, the target device receives the control data;
S87, the target device parses the control data;
S88, the target device is inquired about in the configuration protocol whether allowed in locally configured information table in the control data
The source terminal equipment identification information, the source terminal equipment port numbers send and perform order;
S89, if allowing, the target terminal equipment performs the pending life of the target terminal equipment in the control data
Order;
S810, the target terminal equipment arranges control success flag;
S811, further, if the target device is inquired about in locally configured information table without the configuration in the control data
The source terminal equipment identification information, the source terminal equipment port numbers in agreement sends and performs order, then arrange control wrong
Error code;
S812, the target terminal equipment to Cloud Server response control is fed back, wherein control feedback 8010 includes:Control
Feedback indicator 8011, for determining feedback kind;Error code 8012, for determining the result of operation;
S813, the cloud server is fed back from the control that the target terminal equipment sends;
S814, the Cloud Server to source terminal equipment response control is fed back;
S803, target terminal device command described in the source terminal equipment renewal locally performs state;
State reporting flow process after the change of target terminal equipment state, wherein the target device state change can be and its phase
The control data triggering of the source terminal equipment of association, or the renewal of oneself state.
After the target device state change, the target device need the state reporting after being changed to it is all
With the source terminal equipment of its configuration association relation.This flow process with source terminal equipment intelligent panel 21, as a example by intelligent panel 21', on
State and both incidence relation set up with the target terminal equipment LED lamp affixed to the ceilings 22 by equipment linkage configuration flow.
S901, source terminal equipment state changes;
S91, the target device is inquired about in locally configured information table configuration protocol and is created and reports request, in this example, described
Target device needs establishment two to report request, is sent respectively to the source terminal equipment intelligent panel 21, intelligent panel 21'.
Wherein, it is described to report request bag to contain;The target terminal equipment identification information, source terminal equipment mark letter
Breath, the source terminal equipment port numbers, the target terminal device command perform state;
S92, the target terminal equipment sends to the Cloud Server and reports request;
S93, reports request described in the cloud server;
S94, reports request described in Cloud Server parsing;
S95, Cloud Server inquiry is described report ask described in the source terminal corresponding to source terminal equipment identification information
Whether equipment is online;
S96, if not online, abandon this and reports request bag;
S97, if online, the Cloud Server sends to the source terminal equipment and reports request;
S98, S98', the source terminal equipment receive described in report request;
S99, S99', the source terminal equipment inquiry is locally corresponding to the source terminal equipment port numbers reported in request
It is identical with the mark Terminal Equipment Identifier information reported in request with the presence or absence of configuration information;
S910, S910', if identical, the source terminal equipment updates the target terminal device command in the configuration information
Execution state;
S911, S911', if it is different, then abandoning this reports request bag.
A kind of device linkage apparatus source terminal equipment basic structure based on Cloud Server has with lower unit:
Communication unit, for communicating with Cloud Server, completes the transmitting-receiving of request data;
Resolution unit, for checking the validity of request data, and analyzes the type of the request data;
Whether judging unit is identical for judging locally configured information information corresponding with request data;
Memory cell, for preserving first configuration protocol;
Query unit, for reception from the query configuration information request of the Cloud Server and according to the query configuration information
Ask to return configuration information to the Cloud Server;
Unit is deleted, the configuration protocol of the deletion first for receiving from Cloud Server is asked, and according in the request
Appearance completes deletion action.
Wherein, the communication unit, including:
Link block, for the connection between management and the Cloud Server based on ICP/IP protocol;
Sending module, control data 8000 is sent for the source terminal equipment to the Cloud Server, wherein, the control please
Ask and include:Control data mark 8001, the corresponding configuration protocol 8002 of local port;
Receiver module, for from cloud server the first configuration protocol to be loaded, first configuration protocol to be used to configure
Target terminal equipment and the pending order of the target terminal equipment;And receive the target end for the source terminal equipment
End equipment reports request.
Further, a kind of device linkage apparatus target terminal equipment basic structure based on Cloud Server can also have with
Lower unit:
Communication unit, for communicating with Cloud Server, completes the transmitting-receiving of request data;
Resolution unit, for checking the validity of request data, and analyzes the type of the request data;
Whether judging unit is identical for judging locally configured information information corresponding with request data;
Memory cell, for preserving second configuration protocol;
Query unit, for reception from the query configuration information request of the Cloud Server and according to the query configuration information
Ask to return configuration information to the Cloud Server;
Unit is deleted, the configuration protocol of the deletion second for receiving from Cloud Server is asked, and according in the request
Appearance completes deletion action.
Wherein, the communication unit, including:
Link block, for the connection between management and the Cloud Server based on ICP/IP protocol;
Sending module, sends to the Cloud Server for the target terminal equipment and reports request, wherein, it is described to report request
Form is included:The target terminal equipment identification information, the source terminal equipment identification information, the source terminal equipment port
Number, the target terminal device command perform state;
Receiver module, for from cloud server the second configuration protocol to be loaded, first configuration protocol to be used to configure
Target terminal equipment and the pending order of the target terminal equipment;And receive the source end for the target terminal equipment
The control data of end equipment.
Although the present invention is shown and described by reference to preferred embodiment, this professional ordinary skill
Personnel are it is to be appreciated that in the range of claims, can make the various change in form and details.
Claims (17)
1. a kind of equipment linkage method based on Cloud Server, it is characterised in that comprise the following steps:
Terminal device sets up communication connection based on ICP/IP protocol with Cloud Server;
Cloud Server preserves Terminal Equipment Identifier;
Terminal device obtains the configuration protocol to be loaded that Cloud Server sends;
The Terminal Equipment Identifier, for determining terminal device unique address information.
2. a kind of equipment linkage method based on Cloud Server according to claim 1, it is characterised in that the terminal sets
Standby to include source terminal equipment and target terminal equipment, the configuration protocol includes the first configuration protocol and the second configuration protocol;
The source terminal equipment, for sending the control data that the Cloud Server can be received and forwarded to Cloud Server;
The target terminal equipment, for what is can received and forward to the Cloud Server transmission Cloud Server request is reported;
First configuration protocol, for the target terminal equipment for determining source terminal equipment control and pending order;
Second configuration protocol, the source terminal equipment controlled for determining target terminal equipment.
3. a kind of equipment linkage method based on Cloud Server according to claim 2, it is characterised in that the source terminal
Equipment obtains first configuration protocol to be loaded of Cloud Server transmission and comprises the following steps:
Source terminal equipment receives the renewal configuration protocol request that Cloud Server sends;
The local source terminal equipment port numbers corresponding in the first configuration protocol of source terminal equipment inquiry, are confirmed whether existing being somebody's turn to do
First configuration protocol.
4. a kind of equipment linkage method based on Cloud Server according to claim 3, it is characterised in that the source terminal
Inquiry is comprised the following steps with the presence or absence of the first configuration protocol:
In the presence of, then source terminal equipment judges whether first configuration protocol is identical in configuration protocol is locally had, when identical
Locally configured agreement is not then substituted, then source terminal equipment is substituted using first configuration protocol and locally configured association when differing
View;Or
When not existing, then source terminal equipment preserves first configuration protocol.
5. a kind of equipment linkage method based on Cloud Server according to claim 2, it is characterised in that the target end
End equipment obtains second configuration protocol to be loaded of Cloud Server transmission and comprises the following steps:
Target terminal equipment receives the renewal configuration protocol request that Cloud Server sends;
Whether there is second configuration protocol in the locally configured information table of target terminal equipment query.
6. a kind of equipment linkage method based on Cloud Server according to claim 5, it is characterised in that the target end
End equipment inquiry is comprised the following steps with the presence or absence of the second configuration protocol:
In the presence of, then target terminal equipment judges second configuration protocol with locally whether configuration protocol is identical, identical
Shi Ze does not substitute locally configured agreement, and then target terminal equipment substitutes locally configured letter using second configuration protocol when differing
Existing configuration protocol in breath table;Or
When not existing, then with the target terminal in second configuration protocol in the locally configured information table of target terminal equipment query
Equipment end slogan be index configuration information quantity when whether reaching the upper limit, the not up to upper limit then target terminal equipment preserve this
Two configuration protocols.
7. a kind of equipment linkage method based on Cloud Server according to claim 2, it is characterised in that the source terminal
The control data that equipment sends the Cloud Server and can receive and forward to Cloud Server is comprised the following steps:
Source terminal equipment to Cloud Server sends control data;
Cloud server simultaneously parses the control data, inquires about target terminal equipment identification information correspondence in the control data
Target terminal equipment it is whether online;
When online, then Cloud Server sends control data to target terminal equipment, and target terminal equipment receives control data, inquiry
Whether there is in locally configured information table and matched with source terminal equipment identification information, source terminal equipment port numbers in the control data
Configuration information, exist, target terminal equipment performs the pending order of target terminal equipment in the control data;Or
When not online, Cloud Server to source terminal equipment answer failed feeds back.
8. a kind of equipment linkage method based on Cloud Server according to claim 2, it is characterised in that the target end
The request that reports that end equipment sends the Cloud Server and can receive and forward to Cloud Server is comprised the following steps:
Target terminal equipment sends to Cloud Server and reports request;
Request is reported described in cloud server and parsing, this is inquired about and is reported source corresponding to source terminal equipment identification information in request
Whether terminal device is online;
When online, then Cloud Server sends to source terminal equipment and reports request;
Source terminal equipment receive it is described report request, inquire about and locally report the source terminal equipment port numbers in asking to be corresponding to this
It is no exist configuration information with this report request in target terminal equipment identification information it is identical;
When identical, then the target terminal device command that source terminal equipment is updated in configuration information performs state.
9. a kind of equipment linkage method based on Cloud Server according to claim 7 or 8, it is characterised in that the control
Request form includes:Source terminal equipment identification information, source terminal equipment port numbers, target terminal equipment identification information and target end
The pending order of end equipment;
It is described to report request form to include:Target terminal equipment identification information, source terminal equipment identification information, source terminal equipment end
Slogan and target terminal device command perform state.
10. a kind of equipment linkage method based on Cloud Server according to claim 2-6 is arbitrary, it is characterised in that
First configuration protocol includes:
Source terminal equipment port numbers, for determining that source terminal equipment provides exectorial port;
Target terminal equipment identification information, for determining target terminal equipment unique address information;And
The pending order of target terminal equipment;
Second configuration protocol includes:
Source terminal equipment identification information, for determining source terminal equipment unique address information;And
Source terminal equipment port numbers, for determining that source terminal equipment provides exectorial port.
A kind of 11. equipment linkage methods based on Cloud Server according to claim 3-6 is arbitrary, it is characterised in that
The query configuration information request includes:
Query configuration information request identification, for determining request type;And
Source terminal equipment port numbers to be checked, for determining the object of inquiry;
The configuration information includes:
Source terminal equipment port numbers, for determining the object for returning configuration information;
Target terminal equipment identification information, for determining configuration information in the unique first information of target terminal equipment;And
The pending order of target terminal equipment, for determining configuration information in corresponding command information.
A kind of 12. equipment linkage methods based on Cloud Server according to claim 2, it is characterised in that the cloud service
It is local keys of key triggering that device sends the mode of control data.
13. a kind of equipment linkage methods based on Cloud Server according to claim 7, it is characterised in that the failure is anti-
Feedback includes:
Failure feedback indicator, for determining feedback kind;
Error code, for determining the particular type of failure.
14. a kind of devices of the equipment linkage based on Cloud Server, it is characterised in that include:
Communication units, for communicating with Cloud Server, complete the transmitting-receiving of request data;
Resolution unit, for checking the validity of request data, and the type of analysis request data;
Memory cell, for preserving configuration protocol;
Whether judging unit is identical for judging locally configured information information corresponding with request data;
Query unit, for reception from the query configuration information request of Cloud Server and according to the query configuration information request
Configuration information is returned to Cloud Server;
Unit is deleted, the deletion configuration protocol for receiving from Cloud Server is asked, and completed to delete behaviour according to request content
Make.
15. a kind of devices of the equipment linkage based on Cloud Server according to claim 14, it is characterised in that described logical
Letter unit includes:
Link block, for the connection between management and Cloud Server based on ICP/IP protocol;
Sending module, sends to Cloud Server for terminal device and asks;
Receiver module, for from cloud server configuration protocol to be loaded.
A kind of device of 16. equipment linkages based on Cloud Server according to claims 14 or 15, it is characterised in that institute
Stating terminal device includes:Source terminal equipment and target terminal equipment;
The configuration protocol includes:
First configuration protocol, for configuring target terminal equipment and the pending order of target terminal equipment;And
Second configuration protocol, the source terminal equipment controlled for determining the target terminal equipment;
The request that the sending module sends includes:
The control data that source terminal equipment sends, the control data includes source terminal equipment identification information, source terminal equipment port
Number, target terminal equipment identification information and the pending order of target terminal equipment;
What target terminal equipment sent reports request, and this reports request to include target terminal equipment identification information, source terminal equipment
Identification information, source terminal equipment port numbers and target terminal device command perform state.
17. a kind of devices of the equipment linkage based on Cloud Server according to claim 15, it is characterised in that described to connect
Receiving module includes:
First receiver module, for from cloud server the first configuration protocol to be loaded, and for source terminal equipment reception
Target terminal equipment reports request;
Second receiver module, for from cloud server the second configuration protocol to be loaded, and connects for target terminal equipment
Receive the control data of source terminal equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610760515.0A CN106647293A (en) | 2016-08-30 | 2016-08-30 | Equipment linkage method and apparatus based on cloud server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610760515.0A CN106647293A (en) | 2016-08-30 | 2016-08-30 | Equipment linkage method and apparatus based on cloud server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106647293A true CN106647293A (en) | 2017-05-10 |
Family
ID=58852769
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610760515.0A Pending CN106647293A (en) | 2016-08-30 | 2016-08-30 | Equipment linkage method and apparatus based on cloud server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106647293A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332743A (en) * | 2017-06-08 | 2017-11-07 | 青岛海信日立空调系统有限公司 | A kind of method and device for the configuration information for updating home appliance |
CN111208748A (en) * | 2019-12-31 | 2020-05-29 | 深圳奇迹智慧网络有限公司 | Linkage control method and system based on Internet of things and computer equipment |
CN111578369A (en) * | 2020-04-28 | 2020-08-25 | 同方泰德国际科技(北京)有限公司 | Remote management system, method and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098227A (en) * | 2006-06-30 | 2008-01-02 | 中兴通讯股份有限公司 | User safety protection method of broadband access equipment |
US20120166538A1 (en) * | 2010-12-23 | 2012-06-28 | Electronics And Telecommunications Research Institute | Virtual smart home system, server, home gateway based on cloud computing and smart home service method |
CN105187560A (en) * | 2015-09-29 | 2015-12-23 | 北京奇艺世纪科技有限公司 | Cloud server-based data pushing method and device |
CN105404258A (en) * | 2015-11-30 | 2016-03-16 | 青岛海信传媒网络技术有限公司 | Intelligent household management method and platform |
CN105446160A (en) * | 2016-01-07 | 2016-03-30 | 成都互触科技有限公司 | Self-learning type control system of intelligent household |
CN105871670A (en) * | 2016-05-20 | 2016-08-17 | 珠海格力电器股份有限公司 | Control method, device and system of terminal equipment |
-
2016
- 2016-08-30 CN CN201610760515.0A patent/CN106647293A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098227A (en) * | 2006-06-30 | 2008-01-02 | 中兴通讯股份有限公司 | User safety protection method of broadband access equipment |
US20120166538A1 (en) * | 2010-12-23 | 2012-06-28 | Electronics And Telecommunications Research Institute | Virtual smart home system, server, home gateway based on cloud computing and smart home service method |
CN105187560A (en) * | 2015-09-29 | 2015-12-23 | 北京奇艺世纪科技有限公司 | Cloud server-based data pushing method and device |
CN105404258A (en) * | 2015-11-30 | 2016-03-16 | 青岛海信传媒网络技术有限公司 | Intelligent household management method and platform |
CN105446160A (en) * | 2016-01-07 | 2016-03-30 | 成都互触科技有限公司 | Self-learning type control system of intelligent household |
CN105871670A (en) * | 2016-05-20 | 2016-08-17 | 珠海格力电器股份有限公司 | Control method, device and system of terminal equipment |
Non-Patent Citations (1)
Title |
---|
缪兴峰 等: "《物联网技术应用实务》", 31 December 2013, 武汉:华中科技大学出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332743A (en) * | 2017-06-08 | 2017-11-07 | 青岛海信日立空调系统有限公司 | A kind of method and device for the configuration information for updating home appliance |
CN111208748A (en) * | 2019-12-31 | 2020-05-29 | 深圳奇迹智慧网络有限公司 | Linkage control method and system based on Internet of things and computer equipment |
CN111578369A (en) * | 2020-04-28 | 2020-08-25 | 同方泰德国际科技(北京)有限公司 | Remote management system, method and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103914973B (en) | The method and system of infrared learning are carried out using Cloud Server | |
CN102638416B (en) | The method of IM message, client and system is checked when multi-client logs in | |
CN106647293A (en) | Equipment linkage method and apparatus based on cloud server | |
CN101459534B (en) | Network topology collecting method for tree shaped network and network equipment | |
US20150244565A1 (en) | Network configuration | |
CN105162678B (en) | Voice chat mode self-adaption method and device | |
US20150134116A1 (en) | Method and device for remotely controlling household appliance, and computer readable storage medium | |
RU2011111421A (en) | COMMISSIONING THE NETWORK SYSTEM | |
CN107040438A (en) | A kind of intelligent home control system and method based on router | |
CN106301785A (en) | The binding method of a kind of intelligent home device and intelligent terminal and system | |
CN105100279B (en) | Control method and device for household appliance | |
CN109391699A (en) | Device network configuration method, device and server | |
CN103780663B (en) | A kind of method for remote management of terminal peripheral hardware, device and system | |
US9836958B2 (en) | Device control method, server, system and computer storage medium | |
WO2013131497A1 (en) | Pairing method, control system, and device | |
CN109189698A (en) | Apparatus control method, device and Internet of things system | |
CN104270302B (en) | The transmission system of online order and transfer approach | |
CN104469456A (en) | Infrared remote control method based on mobile phone and infrared remote control system | |
CN104714817A (en) | Method, system and control terminal for upgrading household appliance software through infrared signal | |
JP6730251B2 (en) | Methods for commissioning network nodes | |
CN111971984B (en) | Low-power consumption Bluetooth communication method, electronic device, network and storage medium | |
CN108134695A (en) | A kind of method and system based on APP rapid configuration routers | |
CN106790182B (en) | Distributed business service system, centralized service control method and corresponding device thereof | |
CN110363979A (en) | A kind of LoRa remote control system and control method based on ModBus agreement | |
CN100440796C (en) | Method for obtaining network key property indication and key property indication module |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |
|
RJ01 | Rejection of invention patent application after publication |