CN109510880A - It is a kind of to support various equipment without the device and method for sewing up cloud - Google Patents
It is a kind of to support various equipment without the device and method for sewing up cloud Download PDFInfo
- Publication number
- CN109510880A CN109510880A CN201910006688.7A CN201910006688A CN109510880A CN 109510880 A CN109510880 A CN 109510880A CN 201910006688 A CN201910006688 A CN 201910006688A CN 109510880 A CN109510880 A CN 109510880A
- Authority
- CN
- China
- Prior art keywords
- cloud
- equipment
- file
- data packet
- party device
- 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/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
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
Abstract
Support various equipment without the device and method for sewing up cloud the invention discloses a kind of, comprising: after third party device is accessed cloud equipment by user, to send Three-Part protocol agreement by cloud and feed cloud equipment;Enter the Three-Part protocol agreement that cloud equipment is issued according to cloud to be communicated with third party device;The definition file that cloud issues the received data packet structure of third party device, sends packet structure and enters data volume in cloud equipment and cloud communication data packets feeds cloud equipment;Enter cloud equipment after being successfully received file, by parsing, construct communication data structure, starts and third party device is communicated.The present invention be it is a kind of support various equipment without the device and method for sewing up cloud, enter cloud equipment without reprograming and can be communicated with various third party devices, enter cloud equipment and communicated according to specific protocol with cloud, alleviate the pressure of cloud device.
Description
Technical field
The invention belongs to device talk technical fields, and in particular to a kind of to support various equipment without the device and side for sewing up cloud
Method.
Background technique
The communication interface of the third party device of industrial control field and communications protocol are varied at present, lead to that third party is supported to set
It is also varied for the equipment (hereinafter referred to as entering cloud equipment) for entering cloud.Several third party devices can only be supported by generally entering cloud equipment
Enter cloud, if adding other communication interfaces or communications protocol or adds equipment or modify program.So invention
A kind of multiplex roles are necessary without the cloud equipment that enters of programming, and user can only use one kind and enter cloud equipment, can will
All third party devices access cloud platform.
Summary of the invention
Goal of the invention: the purpose of the present invention is to solve deficiencies in the prior art, provide a kind of various equipment of support
Without the device and method for sewing up cloud, the communications protocol into cloud equipment third party device is informed in cloud, enters cloud equipment without compiling again
Journey can be communicated with various third party devices, and be parsed to data packet, finally set third party according to a kind of agreement
Standby data are sent to cloud;Cloud need to only support a kind of agreement, so that it may monitor various third party devices.
Technical solution: it is of the present invention it is a kind of support various equipment without the method for sewing up cloud, include the following steps:
(1) after third party device is accessed cloud equipment by user, Three-Part protocol agreement is sent by cloud and feeds cloud equipment;
(2) enter the Three-Part protocol agreement that cloud equipment is issued according to cloud to be communicated with third party device;
(3) cloud issues the received data packet structure of third party device, sends packet structure and enters cloud equipment and cloud is logical
The definition file of data volume feeds cloud equipment in news data packet;
(4) enter cloud equipment after the file for being successfully received step (3), by parsing, construct communication data structure, start and the
Three method, apparatus are communicated.
Further, the received data packet structure that cloud issues third party device in step (3) specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, third and fourth byte is register initial address, and the five, the six bytes are register capacity, last two byte
For check code, verification mode and communication interface, and file is written into the received data packet;
(B) cloud is long by the concrete function code of Three-Part protocol agreement and the register initial address of third party device, register
It spends and enters function code that cloud equipment need to use and function code uses sequence, file is written;
(C) cloud generates a specific data packet, is written into file.
Further, the transmission packet structure that cloud issues third party device in step (3) specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, and third byte is effective word joint number, and each data field of data volume accounts for how many byte, and last two byte is school
Code is tested, and file is written into the received data packet;
(B) cloud generates a specific data packet, and parsing as a result, write-in file.
Further, cloud issues the definition file of data volume in cloud equipment and cloud communication data packets in step (3)
Cloud equipment is fed to specifically include:
The transmission packet data area for entering cloud equipment is set into putting in order in cloud device talk agreement by cloud beyond the clouds, the
The ID of one data field is 1, and the ID of second data field is 2, file is written, and file is issued into cloud equipment.
Further, start in step (4) and third party device carry out communication and specifically includes:
(A) file is read, determines third party device received data packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, third and fourth byte is third party device
Register initial address, the five, the six bytes are third party device register capacity, and most latter two byte is check code, and
Verification mode;
(b) communication interface is determined;
(c) enter the data packet that cloud equipment generates in a data packet and file and do Structure Comparison, be confirmed whether identical;
(B) file is read, determines that third party device sends packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, and third byte is effective word joint number, number
Byte number is occupied according to each data field of body, byte and verification mode where check code;
(b) enter cloud equipment and generate third party device to send data packet, and parse and file in data packet do structure pair
Than being confirmed whether identical;
(C) read file, determine each data field beyond the clouds with enter the sequence in cloud device talk data packet;
(D) enter cloud equipment to start to communicate with third party device, parse the data packet of third party device, and each parameter of third party is sent out
Give cloud.
The present invention supports various equipment without the device for sewing up cloud there is further disclosed herein a kind of, comprising:
Cloud: after third party device is accessed cloud equipment by user, cloud is fed by cloud transmission Three-Part protocol agreement and is set
It is standby;
Enter cloud equipment: this enters the Three-Part protocol agreement that cloud equipment is issued according to cloud and is communicated with third party device;
Third party device: cloud issues the received data packet structure of the third party device, sends packet structure and enters cloud and sets
The definition file of data volume feeds cloud equipment in standby and cloud communication data packets;Enter cloud equipment after being successfully received file, passes through
Parsing is crossed, communication data structure is constructed, starts and third party device is communicated.
Further, the received data packet structure that cloud issues third party device specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, third and fourth byte is register initial address, and the five, the six bytes are register capacity, last two byte
For check code, verification mode and communication interface, and file is written into the received data packet
(B) cloud is long by the concrete function code of Three-Part protocol agreement and the register initial address of third party device, register
It spends and enters function code that cloud equipment need to use and function code uses sequence, file is written;
(C) cloud generates a specific data packet, is written into file.
Further, the transmission packet structure that cloud issues third party device specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, and third byte is effective word joint number, and each data field of data volume accounts for how many byte, and last two byte is school
Code is tested, and file is written into the received data packet;
(B) cloud generates a specific data packet, and parsing as a result, write-in file.
Further, the definition file that cloud issues data volume in cloud equipment and cloud communication data packets feeds cloud equipment
It specifically includes:
The transmission packet data area for entering cloud equipment is set into putting in order in cloud device talk agreement by cloud beyond the clouds, the
The ID of one data field is 1, and the ID of second data field is 2, file is written, and file is issued into cloud equipment.
Further, start and third party device carry out communication and specifically includes:
(A) file is read, determines third party device received data packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, third and fourth byte is third party device
Register initial address, the five, the six bytes are third party device register capacity, and most latter two byte is check code, and
Verification mode;
(b) communication interface is determined;
(c) enter the data packet that cloud equipment generates in a data packet and file and do Structure Comparison, be confirmed whether identical;
(B) file is read, determines that third party device sends packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, and third byte is effective word joint number, number
Byte number is occupied according to each data field of body, byte and verification mode where check code;
(b) enter cloud equipment and generate third party device to send data packet, and parse and file in data packet do structure pair
Than being confirmed whether identical;
(C) read file, determine each data field beyond the clouds with enter the sequence in cloud device talk data packet;
(D) enter cloud equipment to start to communicate with third party device, parse the data packet of third party device, and each parameter of third party is sent out
Give cloud.
The utility model has the advantages that it is of the invention it is a kind of support various equipment without the device and method for sewing up cloud, enter cloud equipment without weight
New program can be communicated with various third party devices, entered cloud equipment and communicated according to specific protocol with cloud, alleviate cloud
The pressure of equipment.
Detailed description of the invention
Fig. 1 is the communication structure schematic diagram of one embodiment of the invention.
Specific embodiment
Technical solution of the present invention is described in further detail combined with specific embodiments below.
As shown in Figure 1, being the communication structure schematic diagram of one embodiment of the present of invention.A kind of support of the invention is various to be set
Standby nothing sews up the device of cloud, comprising:
Cloud: after third party device is accessed cloud equipment by user, cloud is fed by cloud transmission Three-Part protocol agreement and is set
It is standby;
Enter cloud equipment: this enters the Three-Part protocol agreement that cloud equipment is issued according to cloud and is communicated with third party device;
Third party device: cloud issues the received data packet structure of the third party device, sends packet structure and enters cloud and sets
The definition file of data volume feeds cloud equipment in standby and cloud communication data packets;Enter cloud equipment after being successfully received file, passes through
Parsing is crossed, communication data structure is constructed, starts and third party device is communicated.
Enter cloud equipment in the present embodiment, supports wired, wireless network to automatically switch, based on cable network, when wired
When network is obstructed, wireless network is automatically switched to.
The cloud equipment itself that enters in the present embodiment includes a variety of verification modes, such as CRC-16, CRC-32, CRC-8, exclusive or,
It verifies and waits, conveniently adapt to the method for calibration of third party device communications protocol.
Three-Part protocol agreement in the present embodiment can be MODBUS-RTU agreement, but in the device of the invention not only
It is limited to MODBUS-RTU agreement, other communications protocol can also be used.
In the present apparatus, the received data packet structure that cloud issues third party device is specifically included:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, third and fourth byte is register initial address, and the five, the six bytes are register capacity, last two byte
For check code, verification mode and communication interface, and file is written into the received data packet;
(B) cloud is long by the concrete function code of Three-Part protocol agreement and the register initial address of third party device, register
It spends and enters function code that cloud equipment need to use and function code uses sequence, file is written;
(C) cloud generates a specific data packet, is written into file.
In the present apparatus, the transmission packet structure that cloud issues third party device is specifically included:
(A) the transmission data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, and third byte is effective word joint number, and each data field of data volume accounts for how many byte, and last two byte is school
Code is tested, and file is written into the transmission data packet;
(B) cloud generates a specific data packet, and parsing as a result, write-in file.
In the present apparatus, the definition file that cloud issues data volume in cloud equipment and cloud communication data packets feeds cloud equipment
It specifically includes:
The transmission packet data area for entering cloud equipment is set into putting in order in cloud device talk agreement by cloud beyond the clouds, the
The ID of one data field is 1, and the ID of second data field is 2, generates file, and file is issued into cloud equipment.
In the present apparatus, starts and third party device carries out communication and specifically includes:
(A) file is read, determines third party device received data packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, third and fourth byte is third party device
Register initial address, the five, the six bytes are third party device register capacity, and most latter two byte is check code, and
Verification mode;
(b) communication interface is determined;
(c) enter the data packet that cloud equipment generates in a data packet and file and do Structure Comparison, be confirmed whether identical;
(B) file is read, determines that third party device sends packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, and third byte is effective word joint number, number
Byte number is occupied according to each data field of body, byte and verification mode where check code;
(b) enter cloud equipment and generate third party device to send data packet, and parse and file in data packet do structure pair
Than being confirmed whether identical;
(C) read file, determine each data field beyond the clouds with enter the sequence in cloud device talk data packet;
(D) enter cloud equipment to start to communicate with third party device, parse the data packet of third party device, and each parameter of third party is sent out
Give cloud.
In addition, corresponding, support various equipment without the method for sewing up cloud the invention also discloses a kind of, below with
It is illustrated, specifically comprises the following steps: for MODBUS-RTU agreement
(1) after third party device is accessed cloud equipment by user, MODBUS-RTU agreement is sent by cloud and feeds cloud equipment;
(2) enter the MODBUS-RTU agreement that cloud equipment is issued according to cloud to be communicated with third party device;
(3) cloud issues the received data packet structure of third party device, sends packet structure and enters cloud equipment and cloud is logical
The definition file of data volume feeds cloud equipment in news data packet;
(4) enter cloud equipment after the file for being successfully received step (3), by parsing, construct communication data structure, start and the
Three method, apparatus are communicated.
Wherein, the received data packet structure that cloud issues third party device in step (3) specifically includes:
(A) received data packet of MODBUS-RTU agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, third and fourth byte is register initial address, and the five, the six bytes are register capacity, last two byte
For check code, verification mode and communication interface, and file is written into the received data packet;
(B) cloud is long by the concrete function code of MODBUS-RTU agreement and the register initial address of third party device, register
It spends and enters function code that cloud equipment need to use and function code uses sequence, file is written;
(C) cloud generates a specific data packet, is written into file.
Wherein, the transmission packet structure that cloud issues third party device in step (3) specifically includes:
(A) the transmission data packet of MODBUS-RTU agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, and third byte is effective word joint number, and each data field of data volume accounts for how many byte, and last two byte is school
Code is tested, and file is written into the transmission data packet;
(B) cloud generates a specific data packet, and parsing as a result, write-in file.
Wherein, the definition file that cloud issues data volume in cloud equipment and cloud communication data packets in step (3) is fed
Cloud equipment specifically includes:
The transmission packet data area for entering cloud equipment is set into putting in order in cloud device talk agreement by cloud beyond the clouds, the
The ID of one data field is 1, and the ID of second data field is 2, file is written, and file is issued into cloud equipment.
Wherein, start in step (4) and third party device carry out communication and specifically includes:
(A) file is read, determines third party device received data packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, third and fourth byte is third party device
Register initial address, the five, the six bytes are third party device register capacity, and most latter two byte is check code, and
Verification mode;
(b) communication interface is determined;
(c) enter the data packet that cloud equipment generates in a data packet and file and do Structure Comparison, be confirmed whether identical;
(B) file is read, determines that third party device sends packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, and third byte is effective word joint number, number
Byte number is occupied according to each data field of body, byte and verification mode where check code;
(b) enter cloud equipment and generate third party device to send data packet, and parse and file in data packet do structure pair
Than being confirmed whether identical;
(C) read file, determine each data field beyond the clouds with enter the sequence in cloud device talk data packet;
(D) enter cloud equipment to start to communicate with third party device, parse the data packet of third party device, and each parameter of third party is sent out
Give cloud.
Specifically, cloud, which issues the specific packet structure of third party device and file is written, includes: in this method
After the cloud [S001] determines the length of third party device received data packet, it is written into Recvlen;
After the cloud [S002] determines the length that third party device sends data packet, it is written into Sendlen;
The communication interface into cloud equipment and third party device is specified in the cloud [S003], and by reference numeral, Channel is written;
After the cloud [S004] determines the device address of third party device, it is written into SLAVE ID;
After the cloud [S005] determines the communications protocol function code of third party device, it is written into Function;
After the cloud [S006] determines the register address of third party device, it is written into Addr;
After the cloud [S007] determines the verification mode of third party device, it is written into VerificationMode;
The cloud [S008] specifies third party device to receive each byte meaning of communication packet, is written into
RecvDataDetail;
The cloud [S009] generates the specific example that a third party device receives communication packet, is written into RecvDataExample;
The cloud [S010] specifies third party device to send each byte meaning of communication packet, is written into
SendDataDetail;
The cloud [S011] generates the specific example that a third party device sends communication packet, is written into SendDataExample;
The cloud [S012] determine third party device send data packet in, byte required for cloud and enter between cloud equipment and cloud lead to
After the corresponding relationship for interrogating the identifier of agreement, ToCloud is written
File is sent into cloud equipment by the cloud [S013] by Transmission Control Protocol;
Corresponding, the specific workflow for entering cloud equipment is as follows:
[S101] enters cloud equipment and receives file;
[S102] enters cloud equipment and reads Recvlen from file, determines the length of third party device received data packet;
[S103] enters cloud equipment and reads Sendlen from file, determines that third party device sends the length of data packet;
[S104] enters cloud equipment and reads Channel, the determining communication interface with third party device from file;
[S105] enters cloud equipment and reads SLAVE ID from file, determines the device id of third party device;
[S106] enters cloud equipment and reads Function from file, determines the function code of third party device communications protocol;
[S107] enters cloud equipment and reads Addr from file, determines the register address of third party device;
[S108] enters cloud equipment and reads VerificationMode from file, determines the verification side of third party device communications protocol
Formula;
[S109] enters cloud equipment and reads RecvDataDetail from file, and the byte of confirmation third party device received data packet contains
Justice, and according to meaning, generate a data packet;
[S110] enters cloud equipment and reads RecvDataExample from file, determines that third party device receives the example of data, and
It is compared with the data packet generated in [S109].Unanimously, then [S111] is executed, cloud is otherwise returned an error to;
[S111] enters cloud equipment and reads SendDataDetail from file, and the byte of confirmation third party device received data packet contains
Justice, and according to meaning, generate a data packet;
[S112] enters cloud equipment and reads SendDataExample from file, determines that third party device receives the example of data, and
It is compared with the data packet generated in [S111].Unanimously, then [S113] is executed, cloud is otherwise returned an error to;
[S113] enters cloud equipment and reads ToCloud from file, determines field and third party in cloud equipment and cloud communication packet
Equipment sends the byte corresponding relationship in data packet;
[S114] enters cloud equipment according to [S101]-[S112], starts to be communicated with third party device.If energy normal communication,
According to the corresponding relationship in [S113], data are issued into cloud, otherwise return an error to cloud.
Likewise, entering cloud equipment in this method, wired, wireless network is supported to automatically switch, based on cable network, when
When cable network is obstructed, wireless network is automatically switched to.
The cloud equipment itself that enters in this method includes a variety of verification modes, such as CRC-16, CRC-32, CRC-8, exclusive or, school
It tests and waits, conveniently adapt to the method for calibration of third party device communications protocol.
Equipment of the invention informs the communications protocol into cloud equipment third party device without the method for sewing up cloud, by cloud,
Enter cloud equipment without reprograming, can be communicated with various third party devices, and data packet is parsed, finally according to
The data of third party device are sent to cloud by a kind of agreement.Cloud need to only support a kind of agreement, so that it may monitor various thirds
Method, apparatus.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though
So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession
Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification
For the equivalent embodiment of equivalent variations, but anything that does not depart from the technical scheme of the invention content, according to the technical essence of the invention
Any simple modification, equivalent change and modification to the above embodiments, all of which are still within the scope of the technical scheme of the invention.
Claims (10)
1. a kind of support various equipment without the method for sewing up cloud, characterized by the following steps:
(1) after third party device is accessed cloud equipment by user, Three-Part protocol agreement is sent by cloud and feeds cloud equipment;
(2) enter the Three-Part protocol agreement that cloud equipment is issued according to cloud to be communicated with third party device;
(3) cloud issues the received data packet structure of third party device, sends packet structure and enters cloud equipment and cloud is logical
The definition file of data volume feeds cloud equipment in news data packet;
(4) enter cloud equipment after the file for being successfully received step (3), by parsing, construct communication data structure, start and the
Three method, apparatus are communicated.
A kind of support various equipment without the method for sewing up cloud 2. according to claim 1, it is characterised in that: in step (3)
The received data packet structure that cloud issues third party device specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, third and fourth byte is register initial address, and the five, the six bytes are register capacity, last two byte
For check code, verification mode and communication interface, and file is written into the received data packet;
(B) cloud is long by the concrete function code of Three-Part protocol agreement and the register initial address of third party device, register
It spends and enters function code that cloud equipment need to use and function code uses sequence, file is written;
(C) cloud generates a specific data packet, is written into file.
A kind of support various equipment without the method for sewing up cloud 3. according to claim 1, it is characterised in that: in step (3)
The transmission packet structure that cloud issues third party device specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, and third byte is effective word joint number, and each data field of data volume accounts for how many byte, and last two byte is school
Code is tested, and file is written into the received data packet;
(B) cloud generates a specific data packet, and parsing as a result, write-in file.
A kind of support various equipment without the method for sewing up cloud 4. according to claim 1, it is characterised in that: in step (3)
The definition file that cloud issues data volume in cloud equipment and cloud communication data packets feeds cloud equipment and specifically includes:
The transmission packet data area for entering cloud equipment is set into putting in order in cloud device talk agreement by cloud beyond the clouds, the
The ID of one data field is 1, and the ID of second data field is 2, file is written, and file is issued into cloud equipment.
A kind of support various equipment without the method for sewing up cloud 5. according to claim 1, it is characterised in that: in step (4)
Start and third party device carry out communication and specifically includes:
(A) file is read, determines third party device received data packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, third and fourth byte is third party device
Register initial address, the five, the six bytes are third party device register capacity, and most latter two byte is check code and school
Proved recipe formula;
(b) communication interface is determined;
(c) enter the data packet that cloud equipment generates in a data packet and file and do Structure Comparison, be confirmed whether identical;
(B) file is read, determines that third party device sends packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, and third byte is effective word joint number, number
Byte number is occupied according to each data field of body, byte and verification mode where check code;
(b) enter cloud equipment generate third party device send data packet and parse and file in data packet do Structure Comparison,
It is confirmed whether identical;
(C) read file, determine each data field beyond the clouds with enter the sequence in cloud device talk data packet;
(D) enter cloud equipment to start to communicate with third party device, parse the data packet of third party device, and each parameter of third party is sent out
Give cloud.
6. a kind of support various equipment without the device for sewing up cloud, it is characterised in that: include:
Cloud: after third party device is accessed cloud equipment by user, cloud is fed by cloud transmission Three-Part protocol agreement and is set
It is standby;
Enter cloud equipment: this enters the Three-Part protocol agreement that cloud equipment is issued according to cloud and is communicated with third party device;
Third party device: cloud issues the received data packet structure of the third party device, sends packet structure and enters cloud and sets
The definition file of data volume feeds cloud equipment in standby and cloud communication data packets;Enter cloud equipment after being successfully received file, passes through
Parsing is crossed, communication data structure is constructed, starts and third party device is communicated.
A kind of support various equipment without the device for sewing up cloud 7. according to claim 6, it is characterised in that: cloud issues
The received data packet structure of three method, apparatus specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, third and fourth byte is register initial address, and the five, the six bytes are register capacity, last two byte
For check code, verification mode and communication interface, and file is written into the received data packet
(B) cloud is long by the concrete function code of Three-Part protocol agreement and the register initial address of third party device, register
It spends and enters function code that cloud equipment need to use and function code uses sequence, file is written;
(C) cloud generates a specific data packet, is written into file.
A kind of support various equipment without the device for sewing up cloud 8. according to claim 6, it is characterised in that: cloud issues
The transmission packet structure of three method, apparatus specifically includes:
(A) received data packet of Three-Part protocol agreement is described in cloud: first character section is SLAVE ID, second word
Section is function code, and third byte is effective word joint number, and each data field of data volume accounts for how many byte, and last two byte is school
Code is tested, and file is written into the received data packet;
(B) cloud generates a specific data packet, and parsing as a result, write-in file.
A kind of support various equipment without the device for sewing up cloud 9. according to claim 6, it is characterised in that: cloud issue into
The definition file of data volume feeds cloud equipment and specifically includes in cloud equipment and cloud communication data packets:
The transmission packet data area for entering cloud equipment is set into putting in order in cloud device talk agreement by cloud beyond the clouds, the
The ID of one data field is 1, and the ID of second data field is 2, file is written, and file is issued into cloud equipment.
A kind of support various equipment without the device for sewing up cloud 10. according to claim 6, it is characterised in that: to start and the
Three method, apparatus carry out communication and specifically include:
(A) file is read, determines third party device received data packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, third and fourth byte is third party device
Register initial address, the five, the six bytes are third party device register capacity, and most latter two byte is check code, and
Verification mode;
(b) communication interface is determined;
(c) enter the data packet that cloud equipment generates in a data packet and file and do Structure Comparison, be confirmed whether identical;
(B) file is read, determines that third party device sends packet structure:
(a) determine that first character section is SLAVE ID, second byte is function code, and third byte is effective word joint number, number
Byte number is occupied according to each data field of body, byte and verification mode where check code;
(b) enter cloud equipment and generate third party device to send data packet, and parse and file in data packet do structure pair
Than being confirmed whether identical;
(C) read file, determine each data field beyond the clouds with enter the sequence in cloud device talk data packet;
(D) enter cloud equipment to start to communicate with third party device, parse the data packet of third party device, and each parameter of third party is sent out
Give cloud.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910006688.7A CN109510880A (en) | 2019-01-04 | 2019-01-04 | It is a kind of to support various equipment without the device and method for sewing up cloud |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910006688.7A CN109510880A (en) | 2019-01-04 | 2019-01-04 | It is a kind of to support various equipment without the device and method for sewing up cloud |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109510880A true CN109510880A (en) | 2019-03-22 |
Family
ID=65756170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910006688.7A Pending CN109510880A (en) | 2019-01-04 | 2019-01-04 | It is a kind of to support various equipment without the device and method for sewing up cloud |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109510880A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132544A (en) * | 2022-12-12 | 2023-05-16 | 贵州省矿山安全科学研究院有限公司 | Custom development drive design method and system for nonstandard ModBus communication protocol |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101587500B1 (en) * | 2014-08-29 | 2016-01-21 | (주)한국플랫폼서비스기술 | Intergrated application authoring tool provides a method using smart devices, cloud-based collaboration build system and the system |
CN106453334A (en) * | 2016-10-19 | 2017-02-22 | 北京悦畅科技有限公司 | Communication protocol switching method, apparatus and system |
CN106790509A (en) * | 2016-12-16 | 2017-05-31 | 北京机智互动信息科技有限公司 | A kind of preset function implementation method and device based on Internet of Things |
CN108375924A (en) * | 2018-04-03 | 2018-08-07 | 京东方科技集团股份有限公司 | A kind of control method and device of smart machine |
CN108536469A (en) * | 2018-05-28 | 2018-09-14 | 苏州德姆斯信息技术有限公司 | Internet of Things data resolution system based on configuration script and analytic method |
-
2019
- 2019-01-04 CN CN201910006688.7A patent/CN109510880A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101587500B1 (en) * | 2014-08-29 | 2016-01-21 | (주)한국플랫폼서비스기술 | Intergrated application authoring tool provides a method using smart devices, cloud-based collaboration build system and the system |
CN106453334A (en) * | 2016-10-19 | 2017-02-22 | 北京悦畅科技有限公司 | Communication protocol switching method, apparatus and system |
CN106790509A (en) * | 2016-12-16 | 2017-05-31 | 北京机智互动信息科技有限公司 | A kind of preset function implementation method and device based on Internet of Things |
CN108375924A (en) * | 2018-04-03 | 2018-08-07 | 京东方科技集团股份有限公司 | A kind of control method and device of smart machine |
CN108536469A (en) * | 2018-05-28 | 2018-09-14 | 苏州德姆斯信息技术有限公司 | Internet of Things data resolution system based on configuration script and analytic method |
Non-Patent Citations (1)
Title |
---|
林海香,董昱: "《信号集中监测系统原理及工程应用》", 30 April 2015, 中国铁道出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132544A (en) * | 2022-12-12 | 2023-05-16 | 贵州省矿山安全科学研究院有限公司 | Custom development drive design method and system for nonstandard ModBus communication protocol |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101309306B (en) | Method for allocating addresses from node device in Modbus communication network | |
CN104301890B (en) | Wireless Internet access flow Compliance control method and system | |
EP2571224B1 (en) | Method for processing messages on m2m platform and m2m platform system | |
WO2021031653A1 (en) | Digital diagnosis information acquisition method and device, and optical module | |
CN112492537B (en) | Micropower wireless access method and device for power transmission and transformation equipment internet of things | |
CN104581647A (en) | Network access method and device of intelligent equipment | |
CN107171910A (en) | Intelligent home device and its with network method, router, intelligent domestic system | |
CN107426770B (en) | Data communication method, data terminal and system based on data link layer | |
CN109510880A (en) | It is a kind of to support various equipment without the device and method for sewing up cloud | |
CN101005418A (en) | Communication method and device between ether network and radio sensor network | |
CN110430025B (en) | Data sending method and device and optical module | |
CN106453629B (en) | A kind of automobile electronic system remote update system and its method based on mobile network | |
CN107404468A (en) | The control method and device that internet of things equipment based on visible light communication networks | |
JP2016530746A (en) | Method and apparatus for controlling network capacity | |
CN108965293A (en) | Message parsing method and device, electronic equipment | |
CN106130855B (en) | Data processing method and device | |
CN107147743A (en) | Communication means based on the Internet of things system for simplifying Internet of Things communication protocol | |
CN109525370A (en) | Data packet sending method based on zigbee | |
CN103378994A (en) | Method and terminal for testing communication equipment | |
CN108958781B (en) | Remote embedded firmware online upgrading method | |
CN110430502A (en) | A kind of bluetooth headset matching method and charging base | |
CN116600022A (en) | Construction method of universal industrial control network communication protocol | |
CN105049227B (en) | A kind of Wifi non-networked control and the method set | |
CN114114933A (en) | Control method, device and equipment of Internet of things equipment and storage medium | |
CN111682965A (en) | FOTA controller |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 226000 Room 201, building 3, yingnuoyuan Science Park, Chongchuan District, Nantong City, Jiangsu Province Applicant after: Nantong Yunzhijian Intelligent Technology Co., Ltd. Address before: 226000 Building 3, Yingnoyuan 6, Chuangyuan Science Park, Chongchuan District, Nantong City, Jiangsu Province Applicant before: Nantong Nebula Intelligent Technology Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190322 |