CN109217983A - A kind of job-oriented terminal communication protocol design method of industry Internet of Things - Google Patents
A kind of job-oriented terminal communication protocol design method of industry Internet of Things Download PDFInfo
- Publication number
- CN109217983A CN109217983A CN201810991889.2A CN201810991889A CN109217983A CN 109217983 A CN109217983 A CN 109217983A CN 201810991889 A CN201810991889 A CN 201810991889A CN 109217983 A CN109217983 A CN 109217983A
- Authority
- CN
- China
- Prior art keywords
- data packet
- sequence number
- transmission
- data
- communication protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- 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/03—Protocol definition or specification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0006—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
- H04L1/1642—Formats specially adapted for sequence numbers
-
- 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
-
- 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/14—Session management
-
- 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
Abstract
The present invention provides a kind of job-oriented terminal communication protocol design method of industrial Internet of Things, is related to industry internet technical field, the method includes at least: determining the packet header of communication protocol;Sequence of data packet and resolution rules are constructed according to the packet header;According to the serializing and the resolution rules, data packet retransmission mechanism is determined;Communication connection handover mechanism is determined according to the retransmission mechanism.Using the embodiment of the present invention, solve the problems, such as can not to adapt to connect under industrial environment of internet of things in the prior art when the performance index requirements such as ductility and reliability and low-power consumption flexible networking particular/special requirement.
Description
Technical field
The present invention relates to industrial internet of things field, more particularly to a kind of job-oriented terminal communication protocols of industrial Internet of Things
Discuss design method.
Background technique
With the proposition of the advanced intelligence manufacture mode of made in China, field of industrial production has also welcome the internet of things era.
Cognition technology, heterogeneous distributed transmission network based on RFID (Radio Frequency Identification) and sensor
Network technology and intelligent terminal technology etc. are continuously added in Internet of Things, push Internet of Things in the extension and application of field of industrial production.
But the problems such as application of industry Internet of Things at present is still in the primary stage, such as communication protocol, administrative mechanism becomes industrial Internet of Things
Net development is kept in check.The problem of industry Internet of Things is in terms of communication protocol at present is mainly as follows:
Lack unified communication protocol: industrial site sensor network encapsulates the data of awareness apparatus usual at present
It using oneself agreement, standard and platform, establishes one's own system, is difficult to be compatible with, these usual agreements and Internet data transmission agreement
Incompatible, even entirely different two kinds or more of agreements of architectural framework there is no unified communication protocol or language system
One technical standard forms administrative mechanism, solves the problems, such as heterogeneous network intercommunication, realizes awareness apparatus and job-oriented terminal core network
Data exchange.
Data interoperation mechanism is unreasonable: field operation terminal room mainly be directly connected to and by way of directly operating into
Row communication and data interaction, it is this around accessed terminal and the mechanism of immediate operand evidence is dangerous also unreasonable.
Communication process is complicated: existing IP agreement and communication process based on the agreement are more complex, in addition, generally making at present
The data sequences such as XML (eXtensible Markup Language), JSON (JavaScript Object Notation)
Column method, data compression effects are poor, and speed is slow, and factors above increases network load and expense, can not adapt to industrial object
Connected under networked environment when the performance index requirements such as ductility and reliability and low-power consumption flexible networking particular/special requirement.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of operation of industrial Internet of Things is whole
Hold communication protocol design method, for solves can not to adapt to connect under industrial environment of internet of things in the prior art when ductility with can
The problem of by the performance index requirements such as property and the particular/special requirement of low-power consumption flexible networking.
In order to achieve the above objects and other related objects, the present invention provides a kind of job-oriented terminal communication protocols of industrial Internet of Things
Design method is discussed, the method includes at least:
Determine the packet header of communication protocol;
Sequence of data packet and resolution rules are constructed according to the packet header;
According to the serializing and the resolution rules, data packet retransmission mechanism is determined;
Communication connection handover mechanism is determined according to the retransmission mechanism.
In a kind of implementation of the invention, the communication protocol is suitable including at least addressing data, error checking, data packet
Sequence mark, transmission priority mark, Retransmission control, packet classification, protocol version control.
In a kind of implementation of the invention, packet header field is included at least: agreement current version number, mark data
Packet type, identification transmission type, the sequence number information of each data packet, package identification position, the priority of data packet transmission, school
Test position, total length of data packets, data packet retransmission maximum number of times, source data packet address, data packet destination address.
It is described that sequence of data packetization and parsing rule are constructed according to the packet header in a kind of implementation of the invention
Then the step of, comprising:
Data packet is serialized and parsed as sequencing method using structural data storage format.
It is described according to the serializing and the resolution rules in a kind of implementation of the invention, determine data packet weight
The step of biography mechanism, comprising:
Step A: it whether checks in set to be transmitted comprising data packet, carries out data biography according to the priority of data packet transmission
It is defeated;
Step B: starting timer, initial transmission serial number 0, initialization retransmit collection and are combined into sky;
Step C: if not receiving data packet before timer timing terminates, which is added and retransmits set
In, while timer is resetted, otherwise enter in next step;
Step D: obtaining sequence number and marker from received data packet, judge whether marker is 1, if not 1 into
Enter step E, otherwise goes to step H;
Step E: judging whether transmission sequence number is 0, sequence number is assigned to transmission sequence number if 0, while will be located at 1 He
Sequence number between transmission sequence number, which is added, retransmits set, if not 0 enters in next step;
Step F: judging whether sequence number is equal to transmission sequence number and adds 1, and sequence number is assigned to transmission sequence number if being equal to, no
Then enter in next step;
Step G: judging whether sequence number is greater than transmission sequence number and adds 1, if more than, then will be located at sequence number and transmission sequence number it
Between sequence number be added retransmit set, otherwise, from retransmit set in removal value be transmission sequence number item;Judge that retransmitting set is simultaneously
No is sky, and if it is empty, then transmission success, goes to step C, if not empty, then goes to step H;
Step H: will retransmit all data packet retransmission numbers of set and add 1, while judge whether to be more than the data packet retransmission upper limit
RUL is transmitted if being more than and is unsuccessfully alarmed, if the maximum package identification position of sequence number in set will be retransmitted by being less than
It is 1, removes sequence number in set to be transmitted and do not retransmitting the data packet in set, go to step A.
In a kind of implementation of the invention, the step that communication connection handover mechanism is determined according to the retransmission mechanism
Suddenly, comprising:
Data to be transmitted Packet type is obtained, when judging data to be transmitted Packet type for equipment control instruction, is obtained to be passed
Transmission of data packet source address;
Can star in source data packet address job-oriented terminal current task pond for task is obtained, and estimated according to the task
The total sessions of progress and it is expected that processing total duration;
Judge the total sessions and it is expected that whether processing total duration is less than basic parameter max-session number;
If so, creating short connection transmits the data packet, short connection is closed after the data transfer is complete;
If not, creating long data transmits the data packet, and after data packet is transmitted, data biography next time is waited
It is defeated, and start timer;
Transmission instruction is judged whether there is in timing cycle;
If so, timer is reset, and data transmission is carried out according to sending to instruct;
If not, judging whether timer has set out, if not, return step " judges whether to deposit in timing cycle
It is instructed sending ";If so, heartbeat message is sent, and long connection maintains successfully in the case where there is response, otherwise long connection
Disconnecting warning.
As described above, the job-oriented terminal communication protocol design method of industrial Internet of Things of the invention, has below beneficial to effect
Fruit:
(1) compare other job-oriented terminal communication protocols, successfully solves that communication process is complicated, network load is big, is difficult to
The defects of compatible equipment layer protocol, unreasonable data interoperation mechanism.
(2) unified the communication system of industrial site sensor network and job-oriented terminal core network data exchange,
The telecommunication management mechanism of job-oriented terminal is formd, the communication protocol for solving heterogeneous network intercommunication under industrial environment of internet of things is asked
Topic.
(3) using new packet header design and serializing and resolution rules, protocol function is enriched, simplifies coding and decoding
Mode reduces network load;Retransmission mechanism is designed, data packet retransmission number is reduced, data packet retransmission speed is improved, improves number
According to the accuracy of transmission;Building communication connection handover mechanism guarantees the real-time of transmission according to transferring content migrating established connections
While the communication resource is utmostly utilized.
Detailed description of the invention
Fig. 1 is shown as a kind of process signal of the job-oriented terminal communication protocol design method of industrial Internet of Things of the invention
Figure.
A kind of specific implementation that Fig. 2 is shown as the job-oriented terminal communication protocol design method of industrial Internet of Things of the invention illustrates
It is intended to.
Fig. 3 is shown as another specific embodiment of the job-oriented terminal communication protocol design method of industrial Internet of Things of the invention
Schematic diagram.
Component label instructions
S101~S104 step
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.
Please refer to Fig. 1-Fig. 3.It should be noted that diagram provided in the present embodiment only illustrates this hair in a schematic way
Bright basic conception, only shown in schema then with related component in the present invention rather than component count when according to actual implementation,
Shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its component
Being laid out kenel may also be increasingly complex.
As shown in Figure 1, the embodiment of the present invention provides a kind of job-oriented terminal communication protocol design method of industrial Internet of Things, side
Method includes at least:
S101 determines the packet header of communication protocol.
It should be noted that the function that setting communication protocol is realized: to guarantee the real-time of job-oriented terminal communication and reliable
Property, the job-oriented terminal communication protocol towards industrial Internet of Things is being assisted other than comprising basic functions such as addressing data, error checkings
Packet sequence mark, transmission priority mark, Retransmission control function should be realized in view, meanwhile, in order to enhance the robust of agreement
Property, it should also add the functions such as packet classification, protocol version control.
Set communication protocol data packet head field and each field value range and length: to realize above-mentioned communication protocol function
Can, packet header field composition and length are as shown in table 1.
Table 1
Wherein, VER (Version): presentation protocol current version number, for informing agreement used in communicating pair, length
For 4bits;CMD (Command): being used to mark data Packet type, and length 4bits mainly includes production task instruction, equipment
Control instruction, method of servicing request and four class of business data transmission;TM (Transmission Mode): it is used to identification transmission class
Type, length 4bits mainly includes end to end communication, and end communicates three classes to equipment communication and equipment opposite end;SN
(SerialNumber): the sequence number information for indicating each data packet, since the sequence number of each data packet is unique, Ke Yiyou
Effect ground guarantees the integrality of recipient's received data.Data receiver can the continuous data packet of recombination sequence number, restore former
First data, while also understand which data packet not yet receives, and which data packet midway has lost, for
Property allow sender retransmit lost package.The length of SN field is 16bits, therefore can label 216- 1 data packet;FLAG: number
According to packet marker, length 1bit, when Flag value is 1, indicates current number for informing whether receiving side data transmission finishes
It is last data packet according to packet, this time transmission is near completion;When its value is 0, indicate that there are also subsequent transformation tasks;PRI
(Priority): for indicate data packet transmission priority, length 4bits, when physical layer show link load it is excessive or
Person is colliding, then lower-priority data packet can stop transmitting at once, and high priority then starts to transmit.Priority is divided into four
Grade, system are highest, grade of alarming, regular grade and rudimentary;HCN (Header Check Number): the field is check bit, is deposited
Header check and length 16bits are stored up.Its function is monitoring data packet in forwarding and transmission process, and whether data damage
It is bad.Before transmitting, agreement calculates header check number according to rule to data packet, and result is sent together, and receiving end is being received
To after data, it is done in the same fashion calculating, and the verification data of obtained result and sender are compared, if two
Person's data are different, then receiving end abandons this data packet, and other side is required to retransmit;DL (DataLength): data packet is indicated
Total length, that is, header and backpack body length summation, length 16bits, therefore can identify maximum length is 216- 1 byte;RUL
(RetransmitUpperLimit): the identification data packet number of retransmissions upper limit, when the data packet retransmission number reaches upper limit value
The then corresponding alarm of triggering, length 4bits;SA (Source Address): the field list shows data packet source address, i.e. data packet
Sender address.The IP address of sender is stored in the form of character string, the length is 32bits.In being transmitted across for data packet
Cheng Zhong, sa field value do not change;DA (Destination Address): the field list shows the destination address of data packet, i.e.,
The recipient address of data packet.Da field is also that the IP address of recipient is stored in the form of character string, and the length is 32bits.
In the transmission process of data packet, da field value does not also change.
S102 constructs sequence of data packet and resolution rules according to packet header.
The present invention use structural data storage format Protocol Buffer, as sequencing method to data packet into
Row serializing and parsing.Protocol Buffer is based on binary system, and compared to traditional XML, JSON etc. has small in size, sequence
Change the advantages that speed is fast, transmission speed is fast, good using simple and scalability.Based on this method, using packet header as defeated
Enter parameter, the message object model of generation is as follows.
message MessagerHeader{
Required string Version=1 [default=" 1.0 "];// protocol version
Required int32Command=2;// type of data packet
Required int32TransmissionMode=3;// transport-type
Required int32SerialNumber=4;// sequence number
Required int32Flag=5;// marker
Required int32Priority=6;// priority
Required int32HeaderCheckNumber=7;// check bit
Required int32DataLength=8;// total length of data packets
Required int32RetransmitUpperLimit=9;// number of retransmissions the upper limit
Required string SourceAddress=10;// source address
Required string DestinationAddress=11;// destination address
S103 determines data packet retransmission mechanism according to serializing and resolution rules.
It is understood that setting data packet retransmission procedure parameter agreement: in the data transmission procedure of industrial environment, by
In vibration, production equipment signal interference etc. interferes communication link vulnerable to environmental factor, thus data packet may generate packet loss
Phenomenon, to influence the integrality of the received data of recipient.It therefore, is guarantee agreement stability principle, design data packet retransmits
Scheme, to improve the fault-tolerant ability of agreement.Core parameter involved in the data packet retransmission mechanism that the present invention uses includes: to be passed
Defeated set PSet (PendingSet) retransmits set RtSet (RetransmitSet), transmission sequence number tSN
(transmitSerialNumber) SN, FLAG, RUL and PRI field and in packet header.
Set complete data packet retransmission mechanism: the data packet retransmission mechanism principle that the present invention uses is as shown in Fig. 2, specific
It is described as follows:
Step A: it whether checks in set to be transmitted comprising data packet, carries out data biography according to the priority of data packet transmission
It is defeated;
Step B: starting timer, initial transmission serial number 0, initialization retransmit collection and are combined into sky;
Step C: if not receiving data packet before timer timing terminates, which is added and retransmits set
In, while timer is resetted, otherwise enter in next step;
Step D: obtaining sequence number and marker from received data packet, judge whether marker is 1, if not 1 into
Enter step E, otherwise goes to step H;
Step E: judging whether transmission sequence number is 0, sequence number is assigned to transmission sequence number if 0, while will be located at 1 He
Sequence number between transmission sequence number, which is added, retransmits set, if not 0 enters in next step;
Step F: judging whether sequence number is equal to transmission sequence number and adds 1, and sequence number is assigned to transmission sequence number if being equal to, no
Then enter in next step;
Step G: judging whether sequence number is greater than transmission sequence number and adds 1, if more than, then will be located at sequence number and transmission sequence number it
Between sequence number be added retransmit set, otherwise, from retransmit set in removal value be transmission sequence number item;Judge that retransmitting set is simultaneously
No is sky, and if it is empty, then transmission success, goes to step C, if not empty, then goes to step H;
Step H: will retransmit all data packet retransmission numbers of set and add 1, while judge whether to be more than the data packet retransmission upper limit
RUL is transmitted if being more than and is unsuccessfully alarmed, if the maximum package identification position of sequence number in set will be retransmitted by being less than
It is 1, removes sequence number in set to be transmitted and do not retransmitting the data packet in set, go to step A.
S104 determines communication connection handover mechanism according to retransmission mechanism.
It sets communication process communication connection types and uses rule: for CMD as the transport-type of equipment control instruction, one
It in the section continuous production cycle, remains unchanged substantially, is only needed for certain production service and equipment carries out a session, so
It is simple and efficient using short connection.The transmission of other kinds of data packet is needed to comprehensively consider and sends job-oriented terminal current task
Chi Zhongke starts the estimated total sessions of task and it is expected that processes the ratio of total duration in the current network load lower unit time
The size of acceptable max-session number Parm (Parameter), using long connection if the former is larger, otherwise using short
Connection.
Set the maintenance and detection method of communication chief's connection: communication chief is connected to communicating pair and does not pass whithin a period of time
When transmission of data, connection may will become " suspend mode " state, or even disconnect, thus want maintenance and the long connection of detection need using
Heartbeat mechanism.However in industrial environment, job-oriented terminal is generally understood frequent progress data using the scene of long connection transmission and is transmitted,
During this period of time heartbeat mechanism instead can occupied bandwidth, reduce network communication efficiency.Therefore, the communication link that the present invention uses
Heartbeat mechanism used in handover mechanism is connect, its drawback can be modified on the basis of original, will send the set time and be changed to one section
Time memory is transmitted in data, just cancels the transmission of heartbeat message, and detailed process is illustrated in fig. 3 shown below.
Data to be transmitted Packet type is obtained, when judging data to be transmitted Packet type for equipment control instruction, is obtained to be passed
Transmission of data packet source address;
Can star in source data packet address job-oriented terminal current task pond for task is obtained, and is carried out according to task is estimated
Total sessions and it is expected that processing total duration;
Judge total sessions and it is expected that whether processing total duration is less than basic parameter max-session number;
If so, creating short connection transmits the data packet, short connection is closed after the data transfer is complete;
If not, creating long data transmits the data packet, and after data packet is transmitted, data biography next time is waited
It is defeated, and start timer;
Transmission instruction is judged whether there is in timing cycle;
If so, timer is reset, and data transmission is carried out according to sending to instruct;
If not, judging whether timer has set out, if not, return step " judges whether to deposit in timing cycle
It is instructed sending ";If so, heartbeat message is sent, and long connection maintains successfully in the case where there is response, otherwise long connection
Disconnecting warning.
As above, the job-oriented terminal communication protocol design method of industrial Internet of Things of the invention, has the advantages that
(1) compare other job-oriented terminal communication protocols, successfully solves that communication process is complicated, network load is big, is difficult to
The defects of compatible equipment layer protocol, unreasonable data interoperation mechanism.
(2) unified the communication system of industrial site sensor network and job-oriented terminal core network data exchange,
The telecommunication management mechanism of job-oriented terminal is formd, the communication protocol for solving heterogeneous network intercommunication under industrial environment of internet of things is asked
Topic.
(3) using new packet header design and serializing and resolution rules, protocol function is enriched, simplifies coding and decoding
Mode reduces network load;Retransmission mechanism is designed, data packet retransmission number is reduced, data packet retransmission speed is improved, improves number
According to the accuracy of transmission;Building communication connection handover mechanism guarantees the real-time of transmission according to transferring content migrating established connections
While the communication resource is utmostly utilized.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.
Claims (6)
1. a kind of job-oriented terminal communication protocol design method of industry Internet of Things, which is characterized in that the method includes at least:
Determine the packet header of communication protocol;
Sequence of data packet and resolution rules are constructed according to the packet header;
According to the serializing and the resolution rules, data packet retransmission mechanism is determined;
Communication connection handover mechanism is determined according to the retransmission mechanism.
2. the job-oriented terminal communication protocol design method of industry Internet of Things according to claim 1, which is characterized in that described
Communication protocol includes at least addressing data, error checking, packet sequence mark, transmission priority mark, Retransmission control, data
Packet classification, protocol version control.
3. the job-oriented terminal communication protocol design method of industry Internet of Things according to claim 1, which is characterized in that data
Packet head field includes at least: agreement current version number, mark data Packet type, identification transmission type, the sequence of each data packet
Row information, package identification position, the priority of data packet transmission, check bit, total length of data packets, on data packet retransmission number
Limit, source data packet address, data packet destination address.
4. the job-oriented terminal communication protocol design method of industry Internet of Things according to claim 1-3, feature
It is, described the step of sequence of data packet and resolution rules are constructed according to the packet header, comprising:
Data packet is serialized and parsed as sequencing method using structural data storage format.
5. the job-oriented terminal communication protocol design method of industry Internet of Things according to claim 1 or 2, which is characterized in that
It is described according to the serializing and the resolution rules, the step of determining data packet retransmission mechanism, comprising:
Step A: it whether checks in set to be transmitted comprising data packet, carries out data transmission according to the priority that data packet is transmitted;
Step B: starting timer, initial transmission serial number 0, initialization retransmit collection and are combined into sky;
Step C: if not receiving data packet before timer timing terminates, which being added and is retransmitted in set,
Timer is resetted simultaneously, is otherwise entered in next step;
Step D: obtaining sequence number and marker from received data packet, judge whether marker is 1, if not 1 enters step
Otherwise rapid E goes to step H;
Step E: judging whether transmission sequence number is 0, sequence number is assigned to transmission sequence number if 0, while will be located at 1 and transmission
Sequence number between serial number, which is added, retransmits set, if not 0 enters in next step;
Step F: judging whether sequence number is equal to transmission sequence number and adds 1, and sequence number is assigned to transmission sequence number if being equal to, otherwise into
Enter in next step;
Step G: judging whether sequence number is greater than transmission sequence number and adds 1, if more than then will be between sequence number and transmission sequence number
Sequence number, which is added, retransmits set, is transmission sequence number item from removal value in set is retransmitted otherwise;Simultaneously judge retransmit set whether be
Sky, if it is empty, then transmission success, goes to step C, if not empty, then goes to step H;
Step H: will retransmit all data packet retransmission numbers of set and add 1, while judge whether to be more than data packet retransmission upper limit RUL,
It is transmitted and is unsuccessfully alarmed if being more than, if being less than, will to retransmit the maximum package identification position of sequence number in set be 1,
It removes sequence number in set to be transmitted and is not retransmitting the data packet in set, go to step A.
6. the job-oriented terminal communication protocol design method of industry Internet of Things according to claim 1 or 2, which is characterized in that
Described the step of communication connection handover mechanism is determined according to the retransmission mechanism, comprising:
It obtains data to be transmitted Packet type and obtains number to be transmitted when judging data to be transmitted Packet type for equipment control instruction
According to packet source address;
Can star in source data packet address job-oriented terminal current task pond for task is obtained, and is carried out according to the task is estimated
Total sessions and it is expected that processing total duration;
Judge the total sessions and it is expected that whether processing total duration is less than basic parameter max-session number;
If so, creating short connection transmits the data packet, short connection is closed after the data transfer is complete;
If not, creating long data transmits the data packet, and after data packet is transmitted, data transmission next time is waited, and
Start timer;
Transmission instruction is judged whether there is in timing cycle;
If so, timer is reset, and data transmission is carried out according to sending to instruct;
If not, judging whether timer has set out, if not, return step " judges whether there is hair in timing cycle
Send instruction ";If so, sending heartbeat message, and long connection maintains successfully in the case where there is response, otherwise long connection is disconnected
Alarm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991889.2A CN109217983B (en) | 2018-08-29 | 2018-08-29 | Industrial Internet of things operation terminal communication protocol design method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991889.2A CN109217983B (en) | 2018-08-29 | 2018-08-29 | Industrial Internet of things operation terminal communication protocol design method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109217983A true CN109217983A (en) | 2019-01-15 |
CN109217983B CN109217983B (en) | 2021-06-01 |
Family
ID=64985531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810991889.2A Active CN109217983B (en) | 2018-08-29 | 2018-08-29 | Industrial Internet of things operation terminal communication protocol design method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109217983B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111083161A (en) * | 2019-12-27 | 2020-04-28 | 中消云(北京)物联网科技研究院有限公司 | Data transmission processing method and device and Internet of things equipment |
CN112073915A (en) * | 2020-09-16 | 2020-12-11 | 北京国交信通科技发展有限公司 | Navigation mark terminal equipment position deviation alarming method |
CN112398780A (en) * | 2019-08-13 | 2021-02-23 | 南京智数科技有限公司 | Equipment self-identification communication method suitable for various networks |
CN115022413A (en) * | 2022-06-27 | 2022-09-06 | 四川摩比斯智能物联科技有限公司 | Internet of things communication protocol construction and interaction method and device |
US20230026046A1 (en) * | 2021-07-20 | 2023-01-26 | EdgeQ, Inc. | Systems and methods for multiplexing multiple wireless technologies in resource constrained environment based on spectral utilization |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101237669A (en) * | 2007-02-01 | 2008-08-06 | 盛晔 | Wireless mesh network, network device with multiple receiving/transmission devices and its communication method |
US20130343184A1 (en) * | 2005-12-30 | 2013-12-26 | Intel Corporation | Segmentation interleaving for data transmission requests |
CN103747004A (en) * | 2014-01-19 | 2014-04-23 | 樊建 | Realizing method of internet of things communication protocol |
CN104093170A (en) * | 2014-06-10 | 2014-10-08 | 北京创毅视讯科技有限公司 | TCP-based data transmission method and TCP agent apparatus |
CN104768081A (en) * | 2015-04-17 | 2015-07-08 | 武汉兴图新科电子股份有限公司 | Packet loss retransmission method for achieving flow control |
-
2018
- 2018-08-29 CN CN201810991889.2A patent/CN109217983B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130343184A1 (en) * | 2005-12-30 | 2013-12-26 | Intel Corporation | Segmentation interleaving for data transmission requests |
CN101237669A (en) * | 2007-02-01 | 2008-08-06 | 盛晔 | Wireless mesh network, network device with multiple receiving/transmission devices and its communication method |
CN103747004A (en) * | 2014-01-19 | 2014-04-23 | 樊建 | Realizing method of internet of things communication protocol |
CN104093170A (en) * | 2014-06-10 | 2014-10-08 | 北京创毅视讯科技有限公司 | TCP-based data transmission method and TCP agent apparatus |
CN104768081A (en) * | 2015-04-17 | 2015-07-08 | 武汉兴图新科电子股份有限公司 | Packet loss retransmission method for achieving flow control |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112398780A (en) * | 2019-08-13 | 2021-02-23 | 南京智数科技有限公司 | Equipment self-identification communication method suitable for various networks |
CN112398780B (en) * | 2019-08-13 | 2023-08-08 | 南京智数科技有限公司 | Equipment self-identification communication method suitable for multiple networks |
CN111083161A (en) * | 2019-12-27 | 2020-04-28 | 中消云(北京)物联网科技研究院有限公司 | Data transmission processing method and device and Internet of things equipment |
CN112073915A (en) * | 2020-09-16 | 2020-12-11 | 北京国交信通科技发展有限公司 | Navigation mark terminal equipment position deviation alarming method |
CN112073915B (en) * | 2020-09-16 | 2023-04-07 | 北京国交信通科技发展有限公司 | Navigation mark terminal equipment position deviation alarming method |
US20230026046A1 (en) * | 2021-07-20 | 2023-01-26 | EdgeQ, Inc. | Systems and methods for multiplexing multiple wireless technologies in resource constrained environment based on spectral utilization |
US11690089B2 (en) * | 2021-07-20 | 2023-06-27 | EdgeQ, Inc. | Systems and methods for multiplexing multiple wireless technologies in resource constrained environment based on spectral utilization |
CN115022413A (en) * | 2022-06-27 | 2022-09-06 | 四川摩比斯智能物联科技有限公司 | Internet of things communication protocol construction and interaction method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109217983B (en) | 2021-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109217983A (en) | A kind of job-oriented terminal communication protocol design method of industry Internet of Things | |
JP5859669B2 (en) | Packet ordering based on delivery route changes in communication networks | |
CN105791054B (en) | A kind of autonomous controllable reliable multicast transmission method realized based on flow point class | |
CN111083161A (en) | Data transmission processing method and device and Internet of things equipment | |
CN110086578A (en) | Data transmission method, device and system | |
EP3235271A1 (en) | Methods for enabling delay-awareness in the constrained application protocol (coap) | |
CN107360177B (en) | A kind of message transmitting method and device based on UDP | |
CN104025523B (en) | For sending the apparatus and method of message to multiple recipients | |
US6741566B1 (en) | Remote management ethernet network and device | |
CN102053935A (en) | MODBUS serial communication protocol-based communication method | |
CN109600318A (en) | A kind of method and SDN controller monitoring application program in SDN | |
KR20110003209A (en) | Zigbee gateway and internet protocol service server of interlocking zigbee gateway with internet protocol network | |
CN104113491A (en) | Data transmission method and device | |
CN110113662A (en) | A kind of video monitor client system adapting to multiple network situation | |
WO2015000230A1 (en) | Industrial ethernet packet loss detection method based on heartbeat signals | |
CN108322443A (en) | Equipment interactive communication method, apparatus, storage medium and computer equipment | |
CN107508828B (en) | A kind of very-long-range data interaction system and method | |
CN102055774B (en) | Based on http server and the data processing method thereof of bag process | |
CN102082773A (en) | Communication method based on inter-column security communication network protocol of reactor protection system | |
CN105871512B (en) | A kind of data transmission method and device | |
CN107918375A (en) | A kind of equipment high in the clouds monitoring management system | |
CN103428677B (en) | The sending method and signaling channel of grouping busihess data send the method for reseptance of information | |
CN109525374A (en) | Method, wireless access point, user equipment and the transmission device of data transmission | |
CN108429729A (en) | Data communication isolating system and its partition method under industrial big data acquisition environment | |
CN107046452A (en) | A kind of data high bandwidth high reliability transport method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |