Summary of the invention
The embodiment of the invention provides interconnection method, system, equipment and the storage mediums between a kind of Cloud Server, realizeCloud product interconnects, and realizes that cloud is docked with the data between cloud.
In order to solve the above-mentioned technical problem, in a first aspect, the embodiment of the present invention provides the docking between a kind of Cloud ServerMethod, comprising steps of
Based on cloud communication architecture, the cloud docking system of third party cloud server is created;
The device data of several third party cloud servers is synchronized to the cloud docking system;
According to the agreement of company's Cloud Server, the cloud docking system is standardized the synchrodata gotTo obtain change data;
The change data is transmitted to company's Cloud Server to carry out data processing by messaging service MNS.
Preferably, the third party cloud server sends number to internet of things equipment with preset first time intervalAccording to acquisition instructions, and the device status data that the internet of things equipment received is sent is synchronized and is sent to cloud docking systemSystem.
Preferably, described that the change data is transmitted to by company's Cloud Server by messaging service MNSTo carry out data processing, specifically:
The change data is pushed to the messaging service MNS by the cloud docking system;
Company's Cloud Server fetches the conversion number with preset second time interval from the messaging service MNSAccording to;
Company's Cloud Server carries out analytic uniform, processing and storage to the change data, and data are uploadedTo terminal.
Preferably, company's Cloud Server carries out analytic uniform, processing and storage to the change data,And data are uploaded to terminal, specifically:
Company's Cloud Server carries out Modbus parsing to the change data and carries out structuring by JSON format, pressesData type is stored, and feeds back the last state data of internet of things equipment to terminal with preset third time interval.
Second aspect, the embodiment of the present invention provide the docking system between a kind of Cloud Server, including company's Cloud Server,The cloud docking system of third party cloud server, messaging service MNS and the third party cloud server based on the creation of cloud communication architecture;
The third party cloud server, for device data to be synchronized to the cloud docking system;
The cloud docking system carries out standard to the synchrodata got for the agreement according to company's Cloud ServerChange processing to obtain change data;
The messaging service MNS is sent to company's cloud for receiving the change data, and by the change dataServer;
Company's Cloud Server, for carrying out data processing to the change data.
Preferably, the third party cloud server sends number to internet of things equipment with preset first time intervalAccording to acquisition instructions, and the device status data that the internet of things equipment received is sent is synchronized and is sent to cloud docking systemSystem.
Preferably, the messaging service MNS obtains the change data of the cloud docking system push;
Company's Cloud Server fetches the conversion number with preset second time interval from the messaging service MNSAccording to;
Company's Cloud Server carries out analytic uniform, processing and storage to the change data, and data are uploadedTo terminal.
Preferably, the change data is pushed to the messaging service MNS by the cloud docking system;
Company's Cloud Server fetches the conversion number with preset second time interval from the messaging service MNSAccording to;
Company's Cloud Server carries out analytic uniform, processing and storage to the change data, and data are uploadedTo terminal.
The third aspect, the embodiment of the present invention provide the service of connection devices between a kind of Cloud Server, including processor, memoryAnd the computer program executed by the processor is stored in the memory and is configured as, the processor executes instituteIt realizes when stating computer program such as the interconnection method between above-mentioned Cloud Server.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage mediumMatter includes the computer program of storage, wherein controls the computer readable storage medium in computer program operationPlace equipment is executed such as the interconnection method between above-mentioned Cloud Server.
Compared with the prior art, the embodiment of the present invention provide a kind of interconnection method between Cloud Server, system, equipment andStorage medium, method include being based on cloud communication architecture, create the cloud docking system of third party cloud server;By several thirdsThe device data of square Cloud Server is synchronized to the cloud docking system;According to the agreement of company's Cloud Server, cloud docking systemSystem is standardized to obtain change data the synchrodata got;By messaging service MNS by the conversion numberAccording to being transmitted to company's Cloud Server to carry out data processing.By in the data collection mode for not changing original equipment, noIt is unified to use saas platform management under the premise of the business structure and function logic in influence company cloud, it realizes between cloud and cloudData docking is interconnected with cloud product.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
First embodiment of the invention:
Referring to Figure 1 to Fig. 3, the embodiment of the present invention provides the interconnection method between a kind of Cloud Server, comprising steps of
S1, it is based on cloud communication architecture, creates the cloud docking system of third party cloud server;;Wherein, the cloud docking systemAs particular service, the conversion platform of function logic;Pony cloud, quick-witted cloud etc. belong to the third party cloud server;
S2, the device data of several third party cloud servers is synchronized to the cloud docking system S3, according to companyThe agreement of Cloud Server, the cloud docking system are standardized to obtain change data the synchrodata got;
In the present embodiment, packaging and conversion that the cloud docking system is standardized the synchrodata, makeData up to message MNS are the unified data of agreement;
S4, company's Cloud Server by messaging service MNS obtain the change data and to the change data intoRow data processing.
The embodiment of the present invention by the data collection mode for not changing original equipment, do not influence the business frame in company cloudIt is under the premise of structure and function logic, unified to use saas platform management, realize that cloud docks and cloud product with the data between cloudIt interconnects.
Fig. 3 is referred to, in embodiments of the present invention, the third party cloud server is with preset first time interval to objectNetworked devices send data acquisition instructions, and the synchronous transmission of the device status data that the internet of things equipment received is sentTo the cloud docking system.Preferably, the preset first time interval is 5min.
Preferably, it is described by messaging service MNS by the change data be transmitted to company's Cloud Server withData processing is carried out, specifically:
The change data is pushed to the messaging service MNS by the cloud docking system;
Company's Cloud Server fetches the conversion number with preset second time interval from the messaging service MNSAccording to;
Company's Cloud Server carries out analytic uniform, processing and storage to the change data, and data are uploadedTo terminal.
Preferably, company's Cloud Server carries out analytic uniform, processing and storage to the change data, andData are uploaded to terminal, specifically:
Company's Cloud Server to the change data carry out Modbus parsing, and by JSON format carry out structuring andIt is stored by data type, feeds back the last state data of internet of things equipment to terminal with preset third time interval.
Specifically, the protocol data conversion process scheme of the cloud docking system is as follows:
Company's Cloud Server (Pfennig Cloud Server) has done the analytics engine of standard modbus agreement, receives standardModbus 0x10 instruction;
Modbus consensus standard 0x10 instruction is as shown in the table:
| Address code | 0x00 |
| Function code | 0x10 |
| Initial address (high position) | 0x00 |
| Initial address (low level) | 0x02 |
| Address number (high position) | 0x00 |
| Address number (low level) | 0x04 |
| Byte number | 0x06 |
| Data (high position) | 0x00 |
| Data (low level) | 0x03 |
| CRC (low level) | 0x05 |
| CRC (high position) | 0xCB |
In each system, agreement is not quite similar, and communication mode is not quite similar
A. about protocol conversion, comprising:
1) proprietary protocol
2) the non-modbus agreement of standard
Specifically as shown in figure 4, realizing the protocol conversion of privately owned serial ports.
A new modbus agreement is established, protocol contents are converted with modbus standard, the data packet of completion pushes awayIt is sent to cloud;
It is B. compatible about communication mode, comprising:
1) it actively grabs
2) passively receive push
3) interface parameters disunity
It is converted by the cloud docking system, realization is unique to the push of company's Cloud Server (Pfennig cloud)Mode, as shown in Figure 5;
Second embodiment of the invention:
The embodiment of the present invention provides the docking system between a kind of Cloud Server, including company's Cloud Server, third party cloudThe cloud docking system of server, messaging service MNS and the third party cloud server based on the creation of cloud communication architecture;
The third party cloud server, for device data to be synchronized to the cloud docking system;Wherein, the cloud dockingSystem is as particular service, the conversion platform of function logic;
The cloud docking system carries out standard to the synchrodata got for the agreement according to company's Cloud ServerChange processing to obtain change data;
In the present embodiment, packaging and conversion that the cloud docking system is standardized the synchrodata, makeData up to message MNS are the unified data of agreement;
The messaging service MNS is sent to company's cloud for receiving the change data, and by the change dataServer;
Company's Cloud Server, for carrying out data processing to the change data.
The embodiment of the present invention by the data collection mode for not changing original equipment, do not influence the business frame in company cloudIt is under the premise of structure and function logic, unified to use saas platform management, realize that cloud docks and cloud product with the data between cloudIt interconnects.
Fig. 3 is referred to, in embodiments of the present invention, the third party cloud server is with preset first time interval to objectNetworked devices send data acquisition instructions, and the synchronous transmission of the device status data that the internet of things equipment received is sentTo the cloud docking system.Preferably, the preset first time interval is 5min.
Preferably, the messaging service MNS obtains the change data of the cloud docking system push;
Company's Cloud Server fetches the conversion number with preset second time interval from the messaging service MNSAccording to;
Company's Cloud Server carries out analytic uniform, processing and storage to the change data, and data are uploadedTo terminal.
Preferably, the change data is pushed to the messaging service MNS by the cloud docking system;
Company's Cloud Server fetches the conversion number with preset second time interval from the messaging service MNSAccording to;
Company's Cloud Server carries out analytic uniform, processing and storage to the change data, and data are uploadedTo terminal.
One embodiment of the present of invention also provides the service of connection devices between a kind of Cloud Server, including processor, memoryAnd the computer program executed by the processor is stored in the memory and is configured as, the processor executes instituteIt realizes when stating computer program such as the interconnection method between above-mentioned Cloud Server.
One embodiment of the present of invention also provides a kind of computer readable storage medium, the computer readable storage mediumComputer program including storage, wherein control the computer readable storage medium institute in computer program operationIt executes in equipment such as the interconnection method between above-mentioned Cloud Server.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the artFor, without departing from the principle of the present invention, several improvement and deformations can also be made, these improvement and deformations are also considered asProtection scope of the present invention.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage mediumIn, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, RAM) etc..