CN107154972A - A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot - Google Patents
A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot Download PDFInfo
- Publication number
- CN107154972A CN107154972A CN201710298731.2A CN201710298731A CN107154972A CN 107154972 A CN107154972 A CN 107154972A CN 201710298731 A CN201710298731 A CN 201710298731A CN 107154972 A CN107154972 A CN 107154972A
- Authority
- CN
- China
- Prior art keywords
- smart machine
- state
- snapshot
- information
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0823—Network architectures or network communication protocols for network security for authentication of entities using certificates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3263—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot, the method comprising the steps of:S1. smart machine current state information is obtained;S2. state deviation information is obtained, the state deviation information includes:The request of smart machine state change, smart machine state change control command;S3. receive and asked by the smart machine state change, the smart machine state is changed according to the smart machine state change control command.The present invention provides a kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot, the problem of excessive equipment state information is sent to user can be solved, in addition, by setting smart machine expecting state information, status monitoring and control effectively can be carried out to smart machine.
Description
Technical field
The present invention relates to internet of things field, more particularly to a kind of Internet of Things smart machine state based on equipment snapshot
Synchronous method and system.
Background technology
Platform of internet of things is referred to ubiquitous end-equipment and facility, including possesses technology of Internet of things " inherent intelligence
Sensor, mobile terminal, industrial system, digital control system, home intelligent facility, video monitoring system of energy " etc., such as stick RFID
Various assets, the individual of portable radio terminal and vehicle etc. " intelligent object ", by various length wirelessly or non-wirelessly away from
From or short distance communication real-time performance interconnect (M2M), using moulds such as SaaS operation big integrated and based on cloud computing
Formula, under Intranet, private network, internet environment, using appropriate security assurance information mechanism, there is provided safely controllable or even personalization
Real time on-line monitoring, positioning review, alarm linkage, dispatch control, program management, remote control, safety precaution, long-range dimension
The management and service function such as guarantor, online upgrading, statistical report form, decision support, realize to " all things on earth " " efficiently, energy-conservation, safety,
The platform of " pipe, control, battalion " integration of environmental protection ".
In technology of Internet of things, due to that can control multiple smart machines simultaneously, therefore condition monitoring to smart machine and same
Step is particularly important.
" equipment state synchronisation control means and household electrical appliances as disclosed in Application No. CN201310581025.0 patent document
Equipment ", the invention provides a kind of equipment state synchronisation control means and a kind of home appliance, wherein equipment state Synchronization Control
Method includes:Record the online information of multiple control terminals that communication connection is set up with home appliance;In the state of home appliance
When information is updated, according to the online information of record, the latest state information of home appliance is notified into each control terminal, for every
One control terminal is shown.
And for example " one kind adjustment intelligent home device operation disclosed in Application No. CN201410706098.2 patent document
The method and device of state ", the invention is on a kind of method and device for adjusting intelligent home device running status, to carry
High user adjusts the convenience of intelligent home device running status.Methods described includes:Monitor being used on the mobile terminal
Control the list of devices in the application of the intelligent home device;Listening to the intelligence that user selectes in the list of devices
During the first press key message of the establishment shortcut of home equipment, create described for controlling on the desktop of the mobile terminal
The shortcut key of intelligent home device;By controlling the shortcut key to adjust the current shape of the intelligent home device
State.
In practical application, the status information of smart machine needs the indoor temperature being synchronized on mobile phone A PP, such as air-conditioning,
The on off state of such as door lock, or the progress etc. that SD card is formatted.
If using prior art, directly allowing smart machine to send messages to mobile phone A PP synchronizing informations, there is following ask
Topic:
(1) smart machine might have multiple binding persons, and the synchronization of state is can not to be only synchronized to a binding person
, know all binding persons so may require that with the scheme of hair message, then need to send in turn one time.
(2) change of state is likely to be frequently, and the state of last time is only most important in many cases, and disappears
Passage is ceased often not lose message reliably as design object, and this means that user may get up in the morning and arouses mobile phone
Thousands of bar state message are received after APP.
The content of the invention
In view of the above-mentioned state of the art, present invention aims at provide a kind of Internet of Things intelligence based on equipment snapshot
Equipment state synchronous method and system, it is possible to resolve the problem of excessive equipment state information is sent to user and multiple users are not
The problem of equipment state information being received simultaneously.
The present invention solve the technical scheme that is used of above-mentioned technical problem for:
A kind of Internet of Things smart machine state synchronization method based on equipment snapshot, including step:
S1. smart machine current state information is obtained;
S2. state deviation information is obtained, the state deviation information includes:The request of smart machine state change, intelligence are set
Standby state change control command;
S3. receive and asked by the smart machine state change, controlled to order according to the smart machine state change
The order change smart machine state.
Further, step S1 is specially:
A1. smart machine sets up the communication connection with high in the clouds based on MQTT agreements;
A2. smart machine sends current state information to cloud device snapshot;
A3. cloud device snapshot receives the current state information that smart machine is sent, and the current state information is protected
Deposit to cloud database.
Further, step A1 is specially:
A11. smart machine carries out signature request mandate using the key of console application;
A12. whether cloud server checking signature is legal, if legal, returns to pubkey certificates;
A13. smart machine connects MQTT using pubkey certificates tls protocol.
Further, step S2 is specially:
B1. application program obtains the current state information of the smart machine to cloud device snapshot request;
B2. cloud device snapshot is received after request, and the current state letter of the smart machine is obtained out of cloud database
Breath, and the current state information is sent to application program;
B3. application program is received after the smart machine current state information, by the current state information and expected shape
State information is compared, and obtains state deviation information, and the state deviation information is sent to cloud device snapshot.
Further, step S3 is specially:
C1. the smart machine state change that cloud device snapshot is received and sent by the application program is asked;
If C2. the smart machine is presence, cloud device snapshot sends the smart machine state change control
System is ordered to the smart machine;
C3. smart machine receives the smart machine state change control command, and makes corresponding states change.
Further, step C2 also includes:
If the smart machine is off-line state, cloud device snapshot preserves the smart machine state change control life
Order.
Further, after smart machine is reached the standard grade, judge that the smart machine whether there is state change:
If being not present, cloud device snapshot sends the smart machine state change control command of the preservation to described
Smart machine;
If obtaining the new current state information of the smart machine in the presence of, cloud device snapshot, send described new
Current state information is to application program, and return to step B3.
A kind of Internet of Things smart machine state synchronous system based on equipment snapshot, including cloud device snapshot module, intelligence
Can equipment SDK modules, application program for mobile terminal SDK modules;
The cloud device snapshot module includes:
First acquisition unit, for obtaining smart machine current state information;
Second acquisition unit, for obtaining state deviation information, the state deviation information includes:Smart machine state changes
Become request, smart machine state change control command;
Execution unit, for receiving and being asked by the smart machine state change, according to the smart machine state
Change control command and change the smart machine state;
The smart machine SDK modules are used to be communicated with high in the clouds, and send smart machine current state information to cloud
End equipment snapshot module;
The application program for mobile terminal SDK modules are used to compare the current state information with expecting state information,
State deviation information is obtained, and the state deviation information is sent to cloud device snapshot.
Further, the smart machine SDK modules include:
Communication unit, for setting up the communication connection with high in the clouds based on MQTT agreements;
First transmitting element, for sending smart machine current state information to cloud device snapshot.
Further, the application program for mobile terminal SDK modules include:
Request unit, for the current state information to cloud device snapshot module acquisition request smart machine;
Comparison unit, for after the current state information of smart machine is received, by the current state information and expection
Status information is compared, and obtains state deviation information;
Second transmitting element, for the state deviation information to be sent to cloud device snapshot module.
The present invention provides a kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot, it is possible to resolve mistake
The problem of many equipment state informations are sent to user, in addition, by setting smart machine expecting state information, can be effectively to intelligence
Can equipment progress status monitoring and control.
Brief description of the drawings
Fig. 1 is a kind of Internet of Things smart machine state synchronization method flow based on equipment snapshot in the embodiment of the present invention
Figure;
Fig. 2 is a kind of Internet of Things smart machine state synchronous system structure based on equipment snapshot in the embodiment of the present invention
Figure;
Fig. 3 is cloud device snapshot module structure chart in the embodiment of the present invention one;
Fig. 4 is smart machine SDK function structure charts in the embodiment of the present invention one;
Fig. 5 is application program for mobile terminal SDK function structure charts in the embodiment of the present invention one.
Embodiment
The following is specific embodiment of the invention and with reference to accompanying drawing, technical scheme is further described,
But the present invention is not limited to these embodiments.
The present invention preserves last state desired by the last state or APP of equipment beyond the clouds based on equipment snapshot, so
Afterwards when equipment or APP connections come up, synchronous regime is to equipment or APP.
The present invention relates to three modules, first is smart machine SDK modules, and this module is responsible for reporting to current state
One or more equipment snapshots, and can the desired state of slave unit snapshot acquisition;Second is cloud device snapshot module, this module
It is responsible for state deviation, expecting state, uploaded state, metadata and version;3rd is the APP SDK modules of mobile terminal,
This module is responsible for changing equipment state, obtains state and sweep equipment snapshot that equipment last time is reported.
It is the specific embodiment of the invention below.
Embodiment one
It is a kind of Internet of Things smart machine state synchronization method flow based on equipment snapshot in the present embodiment as shown in Figure 1
Figure, the method comprising the steps of:
S1. smart machine current state information is obtained;
S2. state deviation information is obtained, the state deviation information includes:The request of smart machine state change, intelligence are set
Standby state change control command;
S3. receive and asked by the smart machine state change, controlled to order according to the smart machine state change
The order change smart machine state.
Step S1 is specially:
A1. smart machine sets up the communication connection with high in the clouds based on MQTT agreements;
A2. smart machine sends current state information to cloud device snapshot;
In this step, smart machine issue current state gives equipment snapshot
Smart machine gives out information to the event topic of such as following form:
iot/event/event_id/state/format_string。
The message of issue meets JSON string formats defined above.
A3. cloud device snapshot receives the current state information that smart machine is sent, and the current state information is protected
Deposit to cloud database.
In this step, equipment snapshot subscribes to good above-mentioned Topic in advance, after equipment sends status message, message
Broker can immediately be listened to and be forwarded the message to equipment snapshot, and equipment snapshot is parsed after receiving the message of JSON forms
Handle and preserve data to data storehouse.There is the history updated all to preserve the status data of equipment within 1 year.
Equipment snapshot is the software systems of platform of internet of things beyond the clouds, equipment retain every equipment final report (FR) state and
Desired to-be, even if equipment is in off-line state.
APP can be obtained the final report (FR) state of equipment by HTTPs API or set desired to-be.Set in setting
It need not illustrate the current state of equipment during standby expectation to-be.
Equipment SDK is responsible for synchronous its equipment oneself state and its equipment snapshot state, and response is set by equipment snapshot
Desired to-be.
Equipment snapshot storage device status maximum duration is 1 year.If at least annual update a next state, equipment is fast
According to by permanent reserved state;Otherwise state will be expired.
Step S2 is specially:
B1. application program obtains the current state information of the smart machine to cloud device snapshot request;
In this step, APP passes through the current state of the equipment bound in HTTPs API request accounts, the reception of equipment snapshot
The last state of equipment is read after request from database and APP is returned to.Meanwhile, APP also serves as Subscriber subscriptions, and this sets
The state of standby snapshot updates Topic.The APP of multiple accounts can subscribe to the Topic of individual equipment snapshot simultaneously, and message Broker can
It is transmitted to these subscriber's message simultaneously.
B2. cloud device snapshot is received after request, and the current state letter of the smart machine is obtained out of cloud database
Breath, and the current state information is sent to application program;
In this step, APP changes the state of the equipment bound in account by HTTPs API requests, that is, to snapshot
The expected state for setting user to want.The data of JSON forms are sent in equipment snapshot, the data of JSON forms and wrapped by APP
The control command of state change is contained.
B3. application program is received after the smart machine current state information, by the current state information and expected shape
State information is compared, and obtains state deviation information, and the state deviation information is sent to cloud device snapshot.
It is illustrated in figure 2 a kind of Internet of Things smart machine state synchronous system structure based on equipment snapshot in the present embodiment
Figure, the system includes cloud device snapshot module 100, smart machine SDK modules 200, application program for mobile terminal SDK modules
300;
Cloud device snapshot module 100 is responsible for state deviation, expecting state, uploaded state, metadata and version.
State deviation refers to the deviation of equipment uploaded state and expecting state;
Metadata refers to the essential information of equipment;
Version refers to the version of equipment firmware.
The structure chart of cloud device snapshot module 100 in the present embodiment is illustrated in figure 3, the structure includes:
First acquisition unit 110, for obtaining smart machine current state information;
Second acquisition unit 120, for obtaining state deviation information, the state deviation information includes:Smart machine shape
State changes request, smart machine state change control command;
Execution unit 130, for receiving and being asked by the smart machine state change, according to the smart machine shape
State changes control command and changes the smart machine state;
The smart machine SDK modules 200 are used to be communicated with high in the clouds, and send smart machine current state information extremely
Cloud device snapshot module;
The application program for mobile terminal SDK modules 300 are used for the current state information and expecting state information ratio
It is right, state deviation information is obtained, and the state deviation information is sent to cloud device snapshot.
The structure chart of smart machine SDK modules 200 in the present embodiment is illustrated in figure 4, the structure includes:
Communication unit 210, for setting up the communication connection with high in the clouds based on MQTT agreements;
First transmitting element 220, for sending smart machine current state information to cloud device snapshot.
The structure chart of application program for mobile terminal SDK modules 300 in the present embodiment is illustrated in figure 5, the structure includes:
Request unit 310, for the current state information to cloud device snapshot module acquisition request smart machine;
Comparison unit 320, for after the current state information of smart machine is received, by the current state information and in advance
Phase status information is compared, and obtains state deviation information;
Second transmitting element 330, for the state deviation information to be sent to cloud device snapshot module.
The present embodiment provides a kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot, it is possible to resolve
The problem of excessive equipment state information is sent to user, in addition, by setting smart machine expecting state information, can be effectively right
Smart machine carries out status monitoring and control.
Embodiment two
The present embodiment is that smart machine accesses high in the clouds and sets up the specific introduction of communication connection.
With reference to Fig. 1, in the present embodiment, a kind of Internet of Things smart machine state synchronization method based on equipment snapshot includes step
Suddenly:
S1. smart machine current state information is obtained;
S2. state deviation information is obtained, the state deviation information includes:The request of smart machine state change, intelligence are set
Standby state change control command;
S3. receive and asked by the smart machine state change, controlled to order according to the smart machine state change
The order change smart machine state.
In step S1, smart machine sets up the communication connection with high in the clouds based on MQTT agreements.
MQTT agreements are limited for a large amount of computing capabilitys, and are operated in low bandwidth, the distance sensor of insecure network
The agreement for communicating and designing with control device, it has following several main characteristics:
1st, using publish/subscribe massage pattern there is provided one-to-many news release, application program coupling is released;
2nd, the message that load contents are shielded is transmitted;
3rd, network connection is provided using TCP/IP;
4th, there are three kinds of news release service quality:
" at most once ", news release is completely dependent on bottom TCP/IP networks.Can occur information drop-out or repetition.This one-level
Not Ke Yongyu following situation, environmental sensor data, lose a read record it doesn't matter because also having second of hair in the near future
Send.
" at least one times ", it is ensured that message reach, but message repeat may occur.
" only once ", it is ensured that message is reached once.This rank can be used for following situation, in charge system, message
Repeat or lose that incorrect result can be caused.
5th, small-sized transmission, expense very little (head of regular length is 2 bytes), agreement, which is exchanged, to be minimized, to reduce network
Flow;
6th, circularized all the parties concerned the mechanism of client abnormal interrupt using Last Will and Testament characteristics;
In the present embodiment, smart machine is specially based on the foundation of MQTT agreements and the communication connection step in high in the clouds:
A11. smart machine carries out signature request mandate using the key of console application;
In this step, equipment carries out signature request mandate using the key of console application, and signature uses hmacmd5 algorithms
(optional hmacsha1, md5), signature contents=devieceid+appkey use key=appSecret+
deviceSecret。
A12. whether cloud server checking signature is legal, if legal, returns to pubkey certificates;
In this step, server authentication signature is legal, and returns to pubkey certificates (X.509 form base64).
A13. smart machine connects MQTT using pubkey certificates tls protocol.
In this step, equipment connects MQTT using pubkey certificates tls protocol.
Smart machine and the communication pattern in high in the clouds use publish/subscribe pattern, are turned based on the Topic routes for carrying out message
Hair, allows equipment end or service end to realize asynchronous communication with distribution subscription message.Applicable scene has equipment end and high in the clouds
Asynchronous communication, M2M (equipment and communication between devices) can also be applicable.
High in the clouds platform message Broker safeguards all Topic distribution subscription user list.When message is sent to Topic,
Message Broker can check all booking readers of the Topic, then forward messages to all with the subscription Topic authorities
Client or service end.
In the present embodiment, the form of communication data uses JSON forms, comprising expectation state, uploaded state, state deviation,
The data such as metadata, version, citing is defined as follows:
Embodiment three
The present embodiment carries out the specific introduction of state change for control smart machine.
With reference to Fig. 1, in the present embodiment, a kind of Internet of Things smart machine state synchronization method based on equipment snapshot includes step
Suddenly:
S1. smart machine current state information is obtained;
S2. state deviation information is obtained, the state deviation information includes:The request of smart machine state change, intelligence are set
Standby state change control command;
S3. receive and asked by the smart machine state change, controlled to order according to the smart machine state change
The order change smart machine state.
Step S3 is specially:
C1. the smart machine state change that cloud device snapshot is received and sent by the application program is asked;
If C2. the smart machine is presence, cloud device snapshot sends the smart machine state change control
System is ordered to the smart machine;
C3. smart machine receives the smart machine state change control command, and makes corresponding states change.
Equipment snapshot is received after request, and equipment is handed down to by MQTT agreements if equipment on-line, if equipment off-line,
This order is then preserved, the state that equipment reaches is expected using this state as APP.After follow-up equipment is reached the standard grade, if Status Change,
Then equipment snapshot ignores middle frequently state reporting, and the change of equipment state is confirmed with expected state set before,
And APP is sent to this state confirmed.
Step C2 also includes:
If the smart machine is off-line state, cloud device snapshot preserves the smart machine state change control life
Order.
After smart machine is reached the standard grade, judge that the smart machine whether there is state change:
If being not present, cloud device snapshot sends the smart machine state change control command of the preservation to described
Smart machine;
If obtaining the new current state information of the smart machine in the presence of, cloud device snapshot, send described new
Current state information returns to the step B3 in embodiment one to application program.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology neck belonging to of the invention
The technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar mode
Generation, but without departing from the spiritual of the present invention or surmount scope defined in appended claims.
Claims (10)
1. a kind of Internet of Things smart machine state synchronization method based on equipment snapshot, it is characterised in that including step:
S1. smart machine current state information is obtained;
S2. state deviation information is obtained, the state deviation information includes:The request of smart machine state change, smart machine shape
State changes control command;
S3. receive and asked by the smart machine state change, according to the smart machine state change control command more
Change the smart machine state.
2. the Internet of Things smart machine state synchronization method as claimed in claim 1 based on equipment snapshot, it is characterised in that step
Suddenly S1 is specially:
A1. smart machine sets up the communication connection with high in the clouds based on MQTT agreements;
A2. smart machine sends current state information to cloud device snapshot;
A3. cloud device snapshot receive smart machine send current state information, and by the current state information preserve to
In cloud database.
3. the Internet of Things smart machine state synchronization method as claimed in claim 2 based on equipment snapshot, it is characterised in that step
Suddenly A1 is specially:
A11. smart machine carries out signature request mandate using the key of console application;
A12. whether cloud server checking signature is legal, if legal, returns to pubkey certificates;
A13. smart machine connects MQTT using pubkey certificates tls protocol.
4. the Internet of Things smart machine state synchronization method as claimed in claim 1 based on equipment snapshot, it is characterised in that step
Suddenly S2 is specially:
B1. application program obtains the current state information of the smart machine to cloud device snapshot request;
B2. cloud device snapshot is received after request, and the current state information of the smart machine is obtained out of cloud database, and
The current state information is sent to application program;
B3. application program is received after the smart machine current state information, and the current state information and expecting state are believed
Breath is compared, and obtains state deviation information, and the state deviation information is sent to cloud device snapshot.
5. the Internet of Things smart machine state synchronization method as claimed in claim 4 based on equipment snapshot, it is characterised in that step
Suddenly S3 is specially:
C1. the smart machine state change that cloud device snapshot is received and sent by the application program is asked;
If C2. the smart machine is presence, cloud device snapshot sends the smart machine state change control life
Make to the smart machine;
C3. smart machine receives the smart machine state change control command, and makes corresponding states change.
6. the Internet of Things smart machine state synchronization method as claimed in claim 5 based on equipment snapshot, it is characterised in that step
Rapid C2 also includes:
If the smart machine is off-line state, cloud device snapshot preserves the smart machine state change control command.
7. the Internet of Things smart machine state synchronization method as claimed in claim 6 based on equipment snapshot, it is characterised in that when
After smart machine is reached the standard grade, judge that the smart machine whether there is state change:
If being not present, cloud device snapshot sends the smart machine state change control command of the preservation to the intelligence
Equipment;
If obtaining the new current state information of the smart machine in the presence of, cloud device snapshot, send described new current
Status information is to application program, and return to step B3.
8. a kind of Internet of Things smart machine state synchronous system based on equipment snapshot, including cloud device snapshot module, intelligence
Equipment SDK modules, application program for mobile terminal SDK modules, it is characterised in that:
The cloud device snapshot module includes:
First acquisition unit, for obtaining smart machine current state information;
Second acquisition unit, for obtaining state deviation information, the state deviation information includes:Smart machine state change please
Ask, smart machine state change control command;
Execution unit, for receiving and being asked by the smart machine state change, according to the smart machine state change
Control command changes the smart machine state;
The smart machine SDK modules are set for being communicated with high in the clouds, and sending smart machine current state information to high in the clouds
Standby snapshot module;
The application program for mobile terminal SDK modules are used to compare the current state information with expecting state information, obtain
State deviation information, and the state deviation information is sent to cloud device snapshot.
9. the Internet of Things smart machine state synchronous system as claimed in claim 8 based on equipment snapshot, it is characterised in that institute
Stating smart machine SDK modules includes:
Communication unit, for setting up the communication connection with high in the clouds based on MQTT agreements;
First transmitting element, for sending smart machine current state information to cloud device snapshot.
10. the Internet of Things smart machine state synchronous system as claimed in claim 8 based on equipment snapshot, it is characterised in that
The application program for mobile terminal SDK modules include:
Request unit, for the current state information to cloud device snapshot module acquisition request smart machine;
Comparison unit, for after the current state information of smart machine is received, by the current state information and expecting state
Information is compared, and obtains state deviation information;
Second transmitting element, for the state deviation information to be sent to cloud device snapshot module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710298731.2A CN107154972A (en) | 2017-04-27 | 2017-04-27 | A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710298731.2A CN107154972A (en) | 2017-04-27 | 2017-04-27 | A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107154972A true CN107154972A (en) | 2017-09-12 |
Family
ID=59792663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710298731.2A Pending CN107154972A (en) | 2017-04-27 | 2017-04-27 | A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107154972A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108337120A (en) * | 2018-02-01 | 2018-07-27 | 北京安控科技股份有限公司 | A kind of remote upgrade method of internet-of-things terminal equipment |
CN109088731A (en) * | 2018-09-04 | 2018-12-25 | 杭州涂鸦信息技术有限公司 | A kind of Internet of Things cloud communication means and its device |
CN110489215A (en) * | 2019-06-29 | 2019-11-22 | 华为技术有限公司 | The treating method and apparatus of scene is waited in a kind of application program |
CN110635970A (en) * | 2019-10-10 | 2019-12-31 | 武汉普利商用机器有限公司 | Internet of things equipment online state identification method, online information platform and server |
CN110955465A (en) * | 2019-12-16 | 2020-04-03 | 宁波奥克斯电气股份有限公司 | Equipment state acquisition method |
CN111818138A (en) * | 2020-06-28 | 2020-10-23 | 电子科技大学 | Vehicle cloud real time data communication method for intelligent vehicle |
CN112350990A (en) * | 2020-09-21 | 2021-02-09 | 上海伊邦医药信息科技股份有限公司 | Off-line data synchronization method for third-party internet retail cashier system |
WO2024087995A1 (en) * | 2022-10-26 | 2024-05-02 | 京东方科技集团股份有限公司 | Internet-of-things device linkage method and system, electronic device and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026343A1 (en) * | 2013-07-22 | 2015-01-22 | International Business Machines Corporation | Cloud-connectable middleware appliance |
CN106131199A (en) * | 2016-07-15 | 2016-11-16 | 深圳市丰巨泰科电子有限公司 | A kind of intelligent home control system based on android system and control method |
CN106302041A (en) * | 2016-08-05 | 2017-01-04 | 深圳博科智能科技有限公司 | A kind of intelligent home equipment control method and device |
CN106385410A (en) * | 2016-09-08 | 2017-02-08 | 四川长虹电器股份有限公司 | Intelligent household appliance control system based on MQTT |
-
2017
- 2017-04-27 CN CN201710298731.2A patent/CN107154972A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026343A1 (en) * | 2013-07-22 | 2015-01-22 | International Business Machines Corporation | Cloud-connectable middleware appliance |
CN106131199A (en) * | 2016-07-15 | 2016-11-16 | 深圳市丰巨泰科电子有限公司 | A kind of intelligent home control system based on android system and control method |
CN106302041A (en) * | 2016-08-05 | 2017-01-04 | 深圳博科智能科技有限公司 | A kind of intelligent home equipment control method and device |
CN106385410A (en) * | 2016-09-08 | 2017-02-08 | 四川长虹电器股份有限公司 | Intelligent household appliance control system based on MQTT |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108337120A (en) * | 2018-02-01 | 2018-07-27 | 北京安控科技股份有限公司 | A kind of remote upgrade method of internet-of-things terminal equipment |
CN109088731A (en) * | 2018-09-04 | 2018-12-25 | 杭州涂鸦信息技术有限公司 | A kind of Internet of Things cloud communication means and its device |
CN109088731B (en) * | 2018-09-04 | 2021-09-21 | 杭州涂鸦信息技术有限公司 | Internet of things cloud communication method and device |
CN110489215A (en) * | 2019-06-29 | 2019-11-22 | 华为技术有限公司 | The treating method and apparatus of scene is waited in a kind of application program |
US11921977B2 (en) | 2019-06-29 | 2024-03-05 | Huawei Technologies Co., Ltd. | Processing method for waiting scenario in application and apparatus |
CN110635970A (en) * | 2019-10-10 | 2019-12-31 | 武汉普利商用机器有限公司 | Internet of things equipment online state identification method, online information platform and server |
CN110955465A (en) * | 2019-12-16 | 2020-04-03 | 宁波奥克斯电气股份有限公司 | Equipment state acquisition method |
CN111818138A (en) * | 2020-06-28 | 2020-10-23 | 电子科技大学 | Vehicle cloud real time data communication method for intelligent vehicle |
CN111818138B (en) * | 2020-06-28 | 2021-07-13 | 电子科技大学 | Vehicle cloud real time data communication method for intelligent vehicle |
CN112350990A (en) * | 2020-09-21 | 2021-02-09 | 上海伊邦医药信息科技股份有限公司 | Off-line data synchronization method for third-party internet retail cashier system |
CN112350990B (en) * | 2020-09-21 | 2023-09-12 | 上海伊邦医药信息科技股份有限公司 | Method for synchronizing offline data of third-party internet retail cashing system |
WO2024087995A1 (en) * | 2022-10-26 | 2024-05-02 | 京东方科技集团股份有限公司 | Internet-of-things device linkage method and system, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107154972A (en) | A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot | |
CN110912789B (en) | Intelligent household Internet of things communication method based on Alicloud IoT Hub platform | |
EP1884101B1 (en) | Method and system for the remote management of a machine via ip links of an ip multimedia subsystem, ims | |
EP3073699B1 (en) | System and method for controlling mutual access of smart devices | |
CN103491172A (en) | Method and system for sharing cloud file | |
CN105610888A (en) | Method of using socket to push message based on Android and system thereof | |
CN109327493A (en) | A kind of remote medical monitoring system based on cloud and monitoring method | |
CN104009938A (en) | Method and system for long connections based on router level | |
KR20100031309A (en) | A method for management device in a communication network and a system thereof | |
EP2564550B1 (en) | Method for providing message and device therefor | |
KR102123314B1 (en) | MMS-based Industrial Internet of Things platform using unidirectional data transfer technique | |
CN113433831A (en) | Control method and module of intelligent household equipment and storage medium | |
CN113254103A (en) | Application function implementation method and device and storage medium | |
CN114301962A (en) | Charging pile communication method and system based on Internet of things cloud platform | |
CN107508916B (en) | Server link management method for intelligent robot | |
KR101375133B1 (en) | Mobile sns intergrated gateway | |
CN109644191A (en) | System and method for configuring connected equipment connection | |
CN107302720A (en) | User feedback method and device, problem feedback traffic architecture system | |
CN105991698A (en) | Method, system and device for mobile terminal remotely managing intelligent router file | |
KR100702704B1 (en) | Notification System and Method Using Messenger | |
CN103118069A (en) | Method of achieving instant messaging among set top boxes based on extensible messaging and presence protocol (XMPP) agreement | |
CN103858389A (en) | Session transmission method, client and Push server | |
CN103354595A (en) | P2P (Point to Point) network camera system realizing zero configuration for users | |
CN111131228A (en) | MQTT protocol-based gateway dynamic theme and stable operation processing method | |
EP1993245A1 (en) | A system and method for realizing message service |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170912 |