Internet of things information transmission mode and platform
Technical Field
The embodiment of the invention relates to the technical field of Internet of things, in particular to an Internet of things information transmission mode and platform.
Background
The Internet of Things (The Internet of Things, IOT for short) is to collect any object or process needing monitoring, connection and interaction in real time and collect various required information such as sound, light, heat, electricity, mechanics, chemistry, biology and location through various devices and technologies such as various information sensors, radio frequency identification technology, global positioning system, infrared sensor and laser scanner, and to achieve ubiquitous connection of objects and people through various possible network accesses, thereby achieving intelligent sensing, identification and management of objects and processes. The internet of things is an information bearer based on the internet, a traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network. That is to say, the internet of things is an important component of a new generation of information technology and is also an important development stage of the "informatization" era. Its english name is: "Internet of things (IoT)". As the name implies, the Internet of things is the Internet with connected objects. This has two layers: firstly, the core and the foundation of the internet of things are still the internet, and the internet is an extended and expanded network on the basis of the internet; and secondly, the user side extends and expands to any article to perform information exchange and communication, namely, the article information. The internet of things is widely applied to network fusion through communication perception technologies such as intelligent perception, identification technology and pervasive computing, and is also called as the third wave of development of the world information industry after computers and the internet. The internet of things is an application expansion of the internet, and is not a network, but a business and an application. Therefore, the application innovation is the core of the development of the internet of things, and the innovation 2.0 taking the user experience as the core is the soul of the development of the internet of things. During the agricultural production, the control of the production environment is closely related to the growth of crops, and because of the development of network and intelligent production control, the agricultural production is gradually combined with the network to achieve remote control and real-time control. During agricultural production, the collection of environmental information is related to the implementation of corresponding control measures, and is very important for agricultural production.
Therefore, the environment information acquisition and transmission system based on the cloud service comprises an agricultural internet of things wireless concentrator and a cloud service center server which are in communication connection with each other, wherein the agricultural internet of things wireless concentrator transmits environment information to the cloud service center server through a network, so that two protocols, namely a handshake-based protocol and a handshake-free protocol, are often used for transmitting the environment information to the cloud service center server through the network; handshake-based protocols are a class of security protocols; the communication link for constructing the protocol based on handshake requires several requests, and the communication link for withdrawing the protocol based on handshake also requires several requests, so the transfer time is not short.
Handshake-free based protocols are a less secure protocol that can transfer context information at any time without requiring several requests in constructing a communication link. The message header of the handshake-free protocol has: the method comprises the steps that a virtual interface of a wireless concentrator of the agricultural Internet of things, a virtual interface of a cloud service center server, message capacity and error detection codes are stored; the one-to-one transmission is executed through the virtual interface, and the information message of the environmental information cannot be decomposed and assembled at will, so that the transmission time is not long, the transmission and the application are convenient to transmit in time, and the problems that the acceptance and transmission identification specifications are not available, and the environment information obtained by the cloud service center server is incorrect and cannot be identified are solved.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide an information transmission method and platform for internet of things, which effectively avoid the defects in the prior art that a communication link for constructing a handshake-based protocol requires several requests, and a communication link for canceling the handshake-based protocol also requires several requests, so that the transmission time is not short, and the environment information obtained by a cloud service center server is not mistaken due to the non-handshake-based protocol not receiving and transmitting the approval specification.
In order to overcome the defects in the prior art, the embodiment of the invention provides a solution for an information transmission mode and a platform of the internet of things, which comprises the following specific steps:
an information transmission mode of the Internet of things comprises the following steps:
the agricultural internet of things wireless concentrator transmits the environment information to a cloud service center server through a network;
the mode that the agricultural internet of things wireless concentrator transmits the environmental information to the cloud service center server through the network is that the information message of the environmental information and the operation instruction format generated during information transmission are respectively created by means of a set specification taking a transmission specification based on a handshake-free protocol as a condition, and the specifications of error detection and retransmission of the environmental information are added, so that the transmission bandwidth and the transmission performance are determined.
The information message form of the environment information comprises: the message header of the information message of the environment information is used as an initial mark, the starting point of the information message representing the environment information passes through the initial mark, the transmission amount is thirty-two bits to reduce the probability same as that of the useful environment information, and the operation instruction 1101001151010 is selected to be used as the message header; the information message transmission status of the environment information indicates whether the environment information transmission is achieved or not, wherein 00000000 is transmission achievement, and 00000000 is transmission failure; the information message capacity of the environment information is the capacity of an information message for transmitting the environment information; useful context information is the context information to be communicated; the message end segment marks the information message header of the environment information, and the operation instruction 0010101111000110 is selected to serve as the message end segment. The information message structure of the environmental information is additionally provided with message types and message statistics, the message types indicate whether the information message of the environmental information is an information message of the environment information which is transmitted again after transmission is not completed, the type of the information message of the environment information which is transmitted again is 00000001, the type of the information message of the environment information which is not transmitted again is 00000000, the message statistics amount totals the number of the information messages of the environment information which is transmitted, the message statistics amount is continuously increased until the program of the information message which is transmitted is cleared after the program of the information message is terminated, and the bit number required by the message statistics amount field is 32 bits.
The forms of the operation instruction and the return message generated during the information transmission are shown as follows:
the operation instruction comprises the following steps:
a start instruction is delivered, the bit code of which is 1010001101001011;
a delivery abort instruction whose bit code is 0101000101100100;
snoop instruction with bit code 1010111000010111;
a snoop abort instruction with bit code 1101001010010101;
the instruction is again passed with the bit code 0011011010110010;
the return message corresponding to the transmission starting instruction is a return message for starting transmission, and the bit code of the return message is 1010001101001011;
the return message corresponding to the transmission stopping instruction is a transmission stopping return message, and the bit code of the return message is 0101000101100100;
the return message corresponding to the interception instruction is an intercepted return message, and the bit code of the return message is 0101000101100100;
the return message corresponding to the interception suspended instruction is an interception suspended return message, and the bit code of the return message is 1101001010010101;
specifically, the present specification constructs three classes of instructions: transmitting, intercepting and retransmitting commands, wherein the transmitting commands mark the starting or stopping of information transmission, the intercepting commands are used for intercepting whether the transmission of the environmental information is lost or not, the intercepting commands are started after the transmission is started, and the retransmitting commands are used for transmitting requests for retransmitting without returning; the message headers of the operation instruction and the return message mark that the operation instruction and the return message pass through, and 0001010010010111 is selected as the message header; the mark of the return message in the operation instruction occurring during information transmission indicates that the operation instruction generated during information transmission does not need to make the cloud service center server return the return message, where 00000000 indicates that it is not needed, and 00000001 indicates that it is needed, and the bit of the corresponding return content in the return message is filled into the 11111111111 bit stream; the capacity of the operation instruction or the return message is the capacity of the content of the operation instruction or the return message; the error detection code of the operation instruction or the return message adds the information of the operation instruction or the return message to perform error detection on the operation instruction or the return message; the operation instruction and the return message are also provided with marks, and the marks of the operation instruction and the marks of the return message correspond one to one, so that the operation instruction and the return message can be kept consistent.
The mode that the wireless concentrator of agricultural thing networking transmits environmental information to cloud service center server via the network includes the following processes:
step 1-1: the method comprises the steps that an agricultural Internet of things wireless concentrator transmits a monitoring instruction and a starting instruction;
step 1-2: the agricultural Internet of things wireless concentrator respectively starts monitoring and executes environment information transmission after acquiring corresponding return messages transmitted by the cloud service center server;
step 1-3: after the transmission is finished, the agricultural Internet of things wireless concentrator transmits an interception stopping instruction and a transmission stopping instruction;
step 1-4: and the agricultural Internet of things wireless concentrator respectively stops interception and environmental information transmission after acquiring corresponding return messages transmitted by the cloud service center server.
After the monitoring is started, the standard of re-transmission is applied between the agricultural internet of things wireless concentrator and the cloud service center server, a handshake protocol does not need to be constructed, and the agricultural internet of things wireless concentrator timely executes the re-transmission after an instruction of the re-transmission is obtained, and the method comprises the following processes:
step 2-1: the agricultural Internet of things wireless concentrator continuously transmits information messages with message types and message statistics of environmental information;
step 2-2: the cloud service center server obtains and determines whether the message statistic of the information message of the environmental information is continuous or not;
step 2-3: when the message statistic is uninterrupted, the agricultural Internet of things wireless concentrator continuously transmits the information message of the environmental information, and when the message statistic is interrupted, the cloud service center server waits for the transmitted information message of the environmental information to be transmitted and transmits a command for re-transmission after the information message transmission is completed;
step 2-4: when the agricultural internet of things wireless concentrator does not receive the retransmission instruction, the information message of the environment information to be transmitted later is continuously transmitted until the retransmission instruction is obtained, and the agricultural internet of things wireless concentrator retransmits the information message of the environment information according to the message statistic of the information message of the environment information in the retransmission instruction; the cloud service center server determines whether the information message of the environment information is transmitted again or not according to the message type.
The agricultural internet of things wireless concentrator, cloud service center server utilize instruction error detection standard, have executed the error detection of two times to operating command and passback message respectively, guarantee when operating command and passback message transmission have the mistake, the transmission can be terminated in real time, prevent that the instruction from having the environmental information that the mistake takes place to receive and transmit the trouble, include following flow:
step 3-1: the agricultural Internet of things wireless concentrator transmits an operation instruction; if the cloud service center server does not feed back, the cloud service center server waits for a time length to transmit the operation instruction again, and if the cloud service center server still does not feed back, the cloud service center server stops transmission;
step 3-2: the cloud service center server determines whether an error-free operation instruction is received or not, and executes the step 3-3 when the error-free operation instruction is obtained, otherwise, the transmission is stopped;
step 3-3: the cloud service center server determines that the operation instruction does not need to transmit the return message, and when the return message needs to be transmitted, the cloud service center server transmits the return message, otherwise, the step 3-5 is executed;
step 3-4: the wireless concentrator of the agricultural Internet of things determines whether a faultless return message is obtained or not, and when the faultless return message is obtained, the step 3-5 is executed, otherwise, the transmission is stopped;
step 3-5: the wireless concentrator of agricultural thing networking carries out operating instruction.
In the step 3-2 and the step 3-4, an operation instruction and a return message generated during information transmission with an error detection code are respectively constructed for an operation instruction and a return message between the instruction agricultural wireless internet-of-things concentrator and the cloud service center server, the error detection code is the value of the bit phase of the operation instruction or the content of the return message generated during information transmission, and the cloud service center server and the agricultural wireless internet-of-things concentrator compare the value of the bit phase of the content of the return message with the error detection code generated during information transmission obtained by the operation instruction and the bit phase of the content of the return message to achieve error detection.
An internet of things information transfer platform, comprising:
the environment information acquisition and transmission system based on the cloud service comprises an agricultural Internet of things wireless concentrator of the environment information acquisition and transmission system based on the cloud service and a cloud service center server;
the agricultural Internet of things wireless concentrator is in communication connection with the cloud service center server.
The embodiment of the invention has the beneficial effects that:
the invention provides a system based on a handshake-free protocol, which constructs a set specification by using a transmission specification based on a handshake-free protocol, cuts environmental information into instruction information and useful environmental information in an information transmission program, and respectively executes the construction of the message forms of the instruction information and the useful environmental information, so that the transmission bandwidth and the performance of the environmental information are higher than the transmission specification based on the handshake-free protocol; because the connectionless transmission of the protocol based on handshake is unsafe, the application constructs two types of specifications on the information message transmission of the environment information and the operation instruction transmission appearing during the information transmission respectively; in the face of information message transmission of environmental information, the specification of retransmission is applied, and is different from the specification of retransmission of a protocol based on handshaking, the specification of retransmission does not need a handshaking protocol, and is a type of real-time retransmission, and the retransmission rate is improved well; because the operation instruction which appears when the retransmitted information which is received by the wireless concentrator of the agricultural internet of things is retransmitted is started, the operation instruction form which appears when the retransmitted information is retransmitted executes the structure again, the message statistic is attached besides the information of the operation instruction, and the information message of the environment information which needs to be retransmitted can be positioned by decoding the operation instruction which is generated when the wireless concentrator of the agricultural internet of things receives the retransmitted information; the transmission of the operation instruction appearing in the information transmission process is oriented, the error detection standard is applied, when the cloud service center server obtains the operation instruction and the agricultural Internet of things wireless concentrator receives the return message, double error detection is executed, and the instruction receiving and transmitting are determined to be correct. The method effectively solves the defects that in the prior art, the communication link for constructing the protocol based on handshake needs a plurality of requests, the communication link for canceling the protocol based on handshake also needs a plurality of requests, so that the transmission time is not short, and the environment information obtained by the cloud service center server is incorrect and cannot be identified because the protocol based on no handshake does not receive and transmit the identification specification.
Drawings
Fig. 1 is a flowchart of an internet of things information transfer method according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be further described with reference to the drawings and the embodiments.
As shown in fig. 1, the information transmission method of the internet of things includes:
the agricultural internet of things wireless concentrator transmits the environmental information to an environmental information cloud service center server through a network;
the mode that the agricultural internet of things wireless concentrator transmits the environmental information to the environmental information cloud service center server through the network is that the information message of the environmental information and the operation instruction format generated during information transmission are respectively created by means of a set specification taking a transmission specification based on a handshake-free protocol as a condition, and the specifications of error detection and retransmission of the environmental information are added, so that the transmission bandwidth and the transmission performance are determined. The set specification constructed by the invention is positioned in a program for information transmission of an agricultural Internet of things wireless concentrator and a cloud service center server, the environmental information after the program for information transmission is processed is assembled, a scheduling instruction of software for scheduling the program for information transmission is decoded, the processed environmental information is transmitted through a driver program execution environmental information link layer, and the assembly and the decomposition of an information message of the environmental information under the condition of a wireless network are achieved.
The specification executes special construction on an operation instruction for confirming the transmission safety; in order to distinguish different instructions, the difference between the same sequence of bits in the form of bit streams of different operation instructions is not small, the instruction is prevented from being meaningfully corrupted due to a bit loss or error during the transfer, otherwise the amount of transfer cannot be too low, thereby reducing the probability that the operation instruction is consistent with useful environment information, the number of 1's and 0's of the operation instruction is close to not generating a constant 1 or a constant 0, preventing the loss of balance, so 1101001151010,0010101111000110,0001010010010111 is selected as the operation instruction.
The information message form of the environment information comprises: the message header of the information message of the environment information is used as an initial mark, the starting point of the information message representing the environment information passes through the initial mark, the transmission amount is thirty-two bits to reduce the probability same as that of the useful environment information, and the operation instruction 1101001151010 is selected to be used as the message header; the information message transmission status of the environment information indicates whether the environment information transmission is achieved or not, wherein 00000000 is transmission achievement, and 00000000 is transmission failure; the information message capacity of the environment information is the capacity of an information message for transmitting the environment information; useful context information is the context information to be communicated; the message end segment marks the information message header of the environment information, and the operation instruction 0010101111000110 is selected to serve as the message end segment. The information message structure of the environmental information is additionally provided with message types and message statistics, the message types indicate whether the information message of the environmental information is an information message of the environment information which is transmitted again after transmission is not completed, the type of the information message of the environment information which is transmitted again is 00000001, the type of the information message of the environment information which is not transmitted again is 00000000, the message statistics amount totals the number of the information messages of the environment information which is transmitted, the message statistics amount is continuously increased until the program of the information message which is transmitted is cleared after the program of the information message is terminated, and the bit number required by the message statistics amount field is 32 bits.
The forms of the operation instruction and the return message generated during the information transmission are shown as follows:
the operation instruction comprises the following steps:
a start instruction is delivered, the bit code of which is 1010001101001011;
a delivery abort instruction whose bit code is 0101000101100100;
snoop instruction with bit code 1010111000010111;
a snoop abort instruction with bit code 1101001010010101;
the instruction is again passed with the bit code 0011011010110010;
the return message corresponding to the transmission starting instruction is a return message for starting transmission, and the bit code of the return message is 1010001101001011;
the return message corresponding to the transmission stopping instruction is a transmission stopping return message, and the bit code of the return message is 0101000101100100;
the return message corresponding to the interception instruction is an intercepted return message, and the bit code of the return message is 0101000101100100;
the return message corresponding to the interception suspended instruction is an interception suspended return message, and the bit code of the return message is 1101001010010101;
specifically, the present specification constructs three classes of instructions: transmitting, intercepting and retransmitting commands, wherein the transmitting commands mark the starting or stopping of information transmission, the intercepting commands are used for intercepting whether the transmission of the environmental information is lost or not, the intercepting commands are started after the transmission is started, and the retransmitting commands are used for transmitting requests for retransmitting without returning; the message headers of the operation instruction and the return message mark that the operation instruction and the return message pass through, and 0001010010010111 is selected as the message header; the mark of the return message in the operation instruction occurring during information transmission indicates that the operation instruction generated during information transmission does not need to make the cloud service center server return the return message, where 00000000 indicates that it is not needed, and 00000001 indicates that it is needed, and the bit of the corresponding return content in the return message is filled into the 11111111111 bit stream; the capacity of the operation instruction or the return message is the capacity of the content of the operation instruction or the return message; the error detection code of the operation instruction or the return message adds the information of the operation instruction or the return message so as to perform uncomplicated error detection on the operation instruction or the return message; the operation instruction and the return message are also provided with marks, and the marks of the operation instruction and the marks of the return message correspond one to one, so that the operation instruction and the return message can be kept consistent. That is, the transmission start instruction is consistent with the mark of the transmission started backhaul message, the transmission stop instruction is consistent with the mark of the transmission stopped backhaul message, the interception instruction is consistent with the mark of the intercepted backhaul message, and the interception stop instruction is consistent with the mark of the intercepted backhaul message.
The mode that the agricultural internet of things wireless concentrator transmits the environmental information to the environmental information cloud service center server through the network comprises the following processes:
step 1-1: the method comprises the steps that an agricultural Internet of things wireless concentrator transmits a monitoring instruction and a starting instruction;
step 1-2: the agricultural Internet of things wireless concentrator respectively starts monitoring and executes environment information transmission after acquiring corresponding return messages transmitted by the cloud service center server;
step 1-3: after the transmission is finished, the agricultural Internet of things wireless concentrator transmits an interception stopping instruction and a transmission stopping instruction;
step 1-4: and the agricultural Internet of things wireless concentrator respectively stops interception and environmental information transmission after acquiring corresponding return messages transmitted by the cloud service center server.
Therefore, by means of the protocol based on no handshake, the concurrence of the transmission bandwidth is determined by using the specification of the interception and transmission instruction and the corresponding return message, and the defect that the transmission is unsafe due to no connection of the protocol based on no handshake is overcome.
After the monitoring is started, the standard of re-transmission is applied between the agricultural internet of things wireless concentrator and the cloud service center server, a handshake protocol does not need to be constructed, and the agricultural internet of things wireless concentrator timely executes the re-transmission after an instruction of the re-transmission is obtained, and the method comprises the following processes:
step 2-1: the agricultural Internet of things wireless concentrator continuously transmits information messages with message types and message statistics of environmental information;
step 2-2: the cloud service center server obtains and determines whether the message statistic of the information message of the environmental information is continuous or not;
step 2-3: when the message statistic is uninterrupted, the agricultural Internet of things wireless concentrator continuously transmits the information message of the environmental information, and when the message statistic is interrupted, the cloud service center server waits for the transmitted information message of the environmental information to be transmitted and transmits a command for re-transmission after the information message transmission is completed; because the retransmitted instruction needs to mark the specific location of the information message of the environment information retransmitted by the wireless concentrator of the agricultural internet of things, an operation instruction generated during retransmitted information transmission is constructed for the retransmitted instruction, and the form of the operation instruction generated during retransmitted information transmission comprises message statistics and retransmitted instruction error detection codes, and no corresponding returned message exists;
step 2-4: when the agricultural internet of things wireless concentrator does not receive the retransmission instruction, the information message of the environment information to be transmitted later is continuously transmitted until the retransmission instruction is obtained, and the agricultural internet of things wireless concentrator retransmits the information message of the environment information according to the message statistic of the information message of the environment information in the retransmission instruction; the cloud service center server determines whether the information message of the environment information is transmitted again or not according to the message type.
The agricultural internet of things wireless concentrator, cloud service center server utilize instruction error detection standard, have executed the error detection of two times to operating command and passback message respectively, guarantee when operating command and passback message transmission have the mistake, the transmission can be terminated in real time, prevent that the instruction from having the environmental information that the mistake takes place to receive and transmit the trouble, include following flow:
step 3-1: the agricultural Internet of things wireless concentrator transmits an operation instruction; if the cloud service center server does not feed back, the cloud service center server waits for a time length to transmit the operation instruction again, and if the cloud service center server still does not feed back, the cloud service center server stops transmission;
step 3-2: the cloud service center server determines whether an error-free operation instruction is received or not, and executes the step 3-3 when the error-free operation instruction is obtained, otherwise, the transmission is stopped;
step 3-3: the cloud service center server determines that the operation instruction does not need to transmit the return message, and when the return message needs to be transmitted, the cloud service center server transmits the return message, otherwise, the step 3-5 is executed;
step 3-4: the wireless concentrator of the agricultural Internet of things determines whether a faultless return message is obtained or not, and when the faultless return message is obtained, the step 3-5 is executed, otherwise, the transmission is stopped;
step 3-5: the wireless concentrator of agricultural thing networking carries out operating instruction.
In the step 3-2 and the step 3-4, an operation instruction and a return message generated during information transmission with an error detection code are respectively constructed for an operation instruction and a return message between the instruction agricultural wireless internet-of-things concentrator and the cloud service center server, the error detection code is the value of the bit phase of the operation instruction or the content of the return message generated during information transmission, and the cloud service center server and the agricultural wireless internet-of-things concentrator compare the value of the bit phase of the content of the return message with the error detection code generated during information transmission obtained by the operation instruction and the bit phase of the content of the return message to achieve error detection.
In a word, under a system based on a handshake-free protocol, a set specification is constructed by using a transmission specification based on a handshake-free protocol, the specification cuts environmental information into instruction information and useful environmental information in an information transmission program, and constructs the message forms of the instruction information and the useful environmental information respectively, so that the transmission bandwidth and the performance of the environmental information are higher than those of the transmission specification based on the handshake-free protocol; because the connectionless transmission of the protocol based on handshake is unsafe, the application constructs two types of specifications on the information message transmission of the environment information and the operation instruction transmission appearing during the information transmission respectively; in the face of information message transmission of environmental information, the specification of retransmission is applied, and is different from the specification of retransmission of a protocol based on handshaking, the specification of retransmission does not need a handshaking protocol, and is a type of real-time retransmission, and the retransmission rate is improved well; because the operation instruction which appears when the retransmitted information which is received by the wireless concentrator of the agricultural internet of things is retransmitted is started, the operation instruction form which appears when the retransmitted information is retransmitted executes the structure again, the message statistic is attached besides the information of the operation instruction, and the information message of the environment information which needs to be retransmitted can be positioned by decoding the operation instruction which is generated when the wireless concentrator of the agricultural internet of things receives the retransmitted information; the transmission of the operation instruction appearing in the information transmission process is oriented, the error detection standard is applied, when the cloud service center server obtains the operation instruction and the agricultural Internet of things wireless concentrator receives the return message, double error detection is executed, and the instruction receiving and transmitting are determined to be correct.
Thing networking information transfer platform includes:
the environment information acquisition and transmission system based on the cloud service comprises a soil information sensor, a growth environment information sensor, a water environment information sensor, an agricultural internet of things wireless concentrator of the environment information acquisition and transmission system based on the cloud service, an environment information cloud service center server and a user terminal, wherein the soil information sensor, the environment information sensor and the water environment information sensor transmit acquired environment information to the agricultural internet of things wireless concentrator;
the agricultural Internet of things wireless concentrator and the environmental information cloud service center server are in communication connection with each other.
While the embodiments of the present invention have been described above in terms of procedures illustrated by the embodiments, it will be understood by those skilled in the art that the present disclosure is not limited to the embodiments described above, and that various changes, modifications, and substitutions can be made without departing from the scope of the embodiments of the present invention.