CN111818040A - Method for realizing communication by Internet of things transmission standard protocol - Google Patents

Method for realizing communication by Internet of things transmission standard protocol Download PDF

Info

Publication number
CN111818040A
CN111818040A CN202010639866.2A CN202010639866A CN111818040A CN 111818040 A CN111818040 A CN 111818040A CN 202010639866 A CN202010639866 A CN 202010639866A CN 111818040 A CN111818040 A CN 111818040A
Authority
CN
China
Prior art keywords
data
platform
protocol
internet
communication
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
Application number
CN202010639866.2A
Other languages
Chinese (zh)
Inventor
张林剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uccc Suzhou Co ltd
Original Assignee
Uccc Suzhou Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Uccc Suzhou Co ltd filed Critical Uccc Suzhou Co ltd
Priority to CN202010639866.2A priority Critical patent/CN111818040A/en
Publication of CN111818040A publication Critical patent/CN111818040A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a method for realizing communication of an Internet of things transmission standard protocol, which belongs to the technical field of computers and communication dial-out services and comprises the following steps: s1: designing a platform communication protocol enumeration type; s2: designing platform communication protocol content; s3: a serialization platform communication protocol; s4: and (6) protocol resolution. The method is characterized in that equipment registration information or equipment reporting data information is distinguished through a first byte of a data message, a CRC (cyclic redundancy check) rule is set at a fixed position of the message to ensure validity of data, meanwhile, a data point table section, a register address and a corresponding value are added at the fixed position, configuration is added at a platform end for the first time of data, a corresponding attribute name and a specific attribute value can be immediately mapped, data consistency and data format consistency of different transmission protocols are improved, the protocol of the equipment end can be in seamless and rapid butt joint with the platform, the equipment is flexibly controlled in real time, reporting frequency is modified, and it can be ensured that uplink and downlink of the data can obtain response at the first time.

Description

Method for realizing communication by Internet of things transmission standard protocol
Technical Field
The invention relates to the technical field of computers and communication dial-out services, in particular to a method for realizing communication by using an Internet of things transmission standard protocol.
Background
Communication is very common and critical to the internet of things, and both a short-distance wireless transmission technology and a mobile communication technology affect the development of the internet of things. In communication, the communication protocol is particularly important, and is the rule and convention that must be followed by two entities to complete communication or service. In the internet of things, the internet of things protocols are generally divided into two categories, one is a transmission protocol and the other is a communication protocol. The transmission protocol is generally responsible for networking and communication among devices in the subnet; the communication protocol is mainly a device communication protocol operating on the traditional internet TCP/IP protocol and is responsible for data exchange and communication of the devices through the internet. Due to the fact that a large amount of research and development cost and time are brought by butt joint of a terminal device, the terminal device cannot be on line quickly, and delayed release of products is caused. How to quickly dock a product is the most important task at present for many companies. Therefore, how to improve the research and development efficiency and the production efficiency and increase the attention of the platform. For this reason, communication is realized based on the standard protocol of the internet of things.
Disclosure of Invention
The invention aims to provide a communication method for realizing the transmission standard protocol of the Internet of things, which is characterized in that a data point table segment, a register address and a corresponding value are added at a fixed position, data is additionally configured at a platform end at the first time, a corresponding attribute name and a specific attribute value can be immediately mapped, the data consistency is improved, the data format consistency of different transmission protocols is improved, the protocol of an equipment end can be in seamless and quick butt joint with the platform, the equipment is flexibly controlled in real time, the reporting frequency is modified, and the uplink and downlink of the data can be ensured to obtain response at the first time, so that the problems in the background technology are solved.
In order to achieve the purpose, the invention provides the following technical scheme: the method for realizing communication by the Internet of things transmission standard protocol comprises the following steps:
s1: designing a platform communication protocol enumeration type;
s2: designing platform communication protocol content;
s3: a serialization platform communication protocol;
s4: and (6) protocol resolution.
Further, in S1, the transmitted data packet is generally divided into two types, namely, attribute reporting and event alarm reporting, and the attribute reporting period of the general device is determined according to the function of the device terminal.
Further, in S2, whether the device registration information or the device report data information is distinguished by the first byte of the data packet, and a CRC check rule is set at a fixed position of the packet to ensure validity of data validity.
Further, aiming at supporting UDP, TCP and MQTT mainstream Internet of things protocols by adopting a vertx frame in S3, integrating the vertx frame through a springboot frame, starting a UDP server and a client, continuously sending data packets to a platform end by a hardware device through an NB card to contact the Internet through socket communication, and realizing original return according to received ip and a port.
Further, for the case that in S4, both bidirectional socket communications are hexadecimal data packets, both the platform and the device side need to parse according to the standard protocol format, the platform side adopts a Buffer object to operate the hexadecimal data packets, a data point table segment, a register address and a corresponding value are added at a fixed position, and the data of the point table needs to be added and configured at the platform side at the first time, so that the corresponding attribute name and the specific attribute value can be mapped immediately.
Compared with the prior art, the invention has the beneficial effects that: according to the method for realizing communication of the transmission standard protocol of the Internet of things, as the hexadecimal data is mutually transmitted between the equipment of the Internet of things and the platform, the format of data transmitted by the two parties needs to be restricted, the specific format of the standard protocol message is adopted, the transmitted data message is generally divided into an attribute reporting type and an event (alarm) reporting type, and the attribute reporting period of the common equipment is determined according to the function of the equipment terminal. Whether the equipment registration information or the equipment reported data information is distinguished through the first byte of the data message, and a CRC (cyclic redundancy check) rule is set at a fixed position of the message to ensure validity of data validity. Meanwhile, a data point table segment, a register address and a corresponding value are added at a fixed position, the data of the point table needs to be added and configured at a platform end at the first time, so that a corresponding attribute name and a specific attribute value can be immediately mapped, the data consistency can be improved, the data format consistency of different transmission protocols can be improved, products can be quickly docked, the protocol of an equipment end can be seamlessly and quickly docked with the platform, the development and design of a service platform are concentrated, the equipment can be flexibly controlled in real time, the platform modifies the reporting frequency, and therefore the data uplink and downlink can be ensured to obtain response at the first time.
Drawings
FIG. 1 is a block diagram of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the method for implementing communication by using the transmission standard protocol of the internet of things includes the following steps:
the method comprises the following steps: designing a platform communication protocol enumeration type, wherein a transmitted data message is generally divided into an attribute reporting type and an event alarm reporting type, and an attribute reporting period of a common device is determined according to the function of a device terminal;
step two: designing platform communication protocol content, distinguishing equipment registration information or equipment reported data information through a first byte of a data message, and setting a CRC (cyclic redundancy check) rule at a fixed position of the message to ensure validity of data validity;
step three: a serialized platform communication protocol implemented using a vertx framework to support UDP, TCP, MQTT, a TCP transmission control protocol being a connection-oriented, reliable, byte stream-based transport layer communication protocol, TCP being intended to adapt to a layered protocol hierarchy supporting multi-network applications, providing reliable communication services between pairs of processes in host computers connected to different but interconnected computer communication networks by means of TCP, TCP assuming it can obtain simple, possibly unreliable, datagram services from lower-level protocols, the mainstream internet of things protocol, the MQTT telemetry transport protocol, which mainly provides two message modes of subscription/distribution, being more compact, lightweight, easy to use, particularly suitable for message distribution in a restricted environment, a standard transport protocol belonging to the internet of things, in many cases, including in a restricted environment, such as: the machine-to-machine communication and the Internet of things are widely used in medical equipment, smart homes and some miniaturized equipment through satellite link communication sensors and occasional dialing, a vertx frame is integrated through a springboot frame, a UDP (user Datagram protocol) server side and a client side are started, through socket communication, hardware equipment contacts the Internet through an NB (NB) card to continuously send data packets to a platform side, original return can be achieved according to received ip and ports, an existing spring project is integrated with Vert.x, the high efficiency of the Vert.x can be experienced, the universality of spring is also considered, the learning and using cost of the Vert.x is reduced, and smooth transition from spring to Vert.x can be achieved. The project web layer uses a vert.x-web frame, an asynchronous Service layer is added between the web layer and a traditional spring Service layer, the asynchronous Service layer is realized by using a Service Proxies Service agent frame, the use of EventBus is simplified, and the data connection layer uses a MybatisPlus frame;
step four: protocol analysis, bidirectional socket communication is a hexadecimal data message, a platform and a device end need to analyze according to a standard protocol format, the platform end adopts a Buffer object to operate the hexadecimal data message, a data point table section, a register address and a corresponding value are added at a fixed position, the data of the point table needs to be added and configured at the platform end at the first time, and a corresponding attribute name and a specific attribute value can be immediately mapped.
The data consistency can be improved, the data format consistency of different transmission protocols can be realized, products can be quickly docked, the protocol of the equipment end can be seamlessly and quickly docked with the platform, the development and design of the service platform are concentrated, the equipment can be flexibly controlled in real time, the reporting frequency of the platform is modified, and therefore the data can be ensured to be responded at the first time in the uplink and downlink.
Header Len Data CRC,
Namely, Header LenH LeaL Datal Data2-DataN CRCL CRCH,
header is frame Header, 0xFD indicates registration packet, 0xFE indicates packet:
LeaH LenL is the byte length of Datal-DataN:
DataN is a data packet of the terminal node, and the specific format is 1.2.13:
CRCL CRCH is check code of Data 1-DataN, the check mode adopts CRC16 with low byte in front
The analysis steps are as follows:
1. judging HEADER, 0 xFE-data packet, 0 xFD-registration packet, and other packets can be judged as illegal data, and can be directly discarded without processing;
2. judging LEN which is the byte number of DATA, if the two are not equal, the DATA packet can be considered as error, the DATA packet can be directly discarded without processing;
3. if the CRC16 check code is judged to be CRC and the CRC is DATA, if the CRC and the DATA are not equal, the DATA packet can be directly discarded without processing
Figure BDA0002571112350000051
The TYPE is various flag bit sets, the ID is the final-byte complement 0 of the IMEI, the MSGID is a randomly generated unique-identifier of the message, all the bytes of reserve 16 are complement 0, and the specific report and reply messages are as follows.
Figure BDA0002571112350000052
Figure BDA0002571112350000061
CTR is a control byte and the single device operation packet includes the following LEN2DEVID MSG.
LEN2 is the length of DEVID-MSG, DEVID fills in 0, MSG is different according to operation different formats, byte number is not fixed, only one operation packet is provided for single device 0b reporting and issuing, multiple data packets can be provided for collector reporting and issuing, and device address DEVID is used to distinguish the operation packets.
In summary, the following steps: according to the method for realizing communication of the transmission standard protocol of the Internet of things, as hexadecimal data are mutually transmitted between the equipment of the Internet of things and a platform, the format of data transmitted by the two parties needs to be restricted, the specific format of a standard protocol message is adopted, the transmitted data message is generally divided into an attribute report type and an event (alarm) report type, and the attribute report period of the common equipment is determined according to the function of the equipment terminal. Whether the equipment registration information or the equipment reported data information is distinguished through the first byte of the data message, and a CRC (cyclic redundancy check) rule is set at a fixed position of the message to ensure validity of data validity. Meanwhile, a data point table segment, a register address and a corresponding value are added at a fixed position, the data of the point table needs to be added and configured at a platform end at the first time, so that a corresponding attribute name and a specific attribute value can be immediately mapped, the data consistency can be improved, the data format consistency of different transmission protocols can be improved, products can be quickly docked, the protocol of an equipment end can be seamlessly and quickly docked with the platform, the development and design of a service platform are concentrated, the equipment can be flexibly controlled in real time, the platform modifies the reporting frequency, and therefore the data uplink and downlink can be ensured to obtain response at the first time.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be able to cover the technical solutions and the inventive concepts of the present invention within the technical scope of the present invention.

Claims (5)

1. The method for realizing communication by using the transmission standard protocol of the Internet of things is characterized by comprising the following steps of:
s1: designing a platform communication protocol enumeration type;
s2: designing platform communication protocol content;
s3: a serialization platform communication protocol;
s4: and (6) protocol resolution.
2. The communication method for implementing transmission standard protocol of internet of things according to claim 1, wherein for S1, the transmitted data packet is generally divided into two types, attribute reporting and event alarm reporting, and the attribute reporting period of the general device is determined according to the function of the device terminal.
3. The communication method for implementing transmission standard protocol of internet of things according to claim 1, wherein in S2, the device registration information or the device reported data information is distinguished by a first byte of the data message, and a CRC check rule is set at a fixed position of the message to ensure validity of data validity.
4. The method for realizing communication of the transmission standard protocol of the internet of things according to claim 1, wherein in S3, a vertx frame is adopted to realize support of main internet of things protocols such as UDP, TCP and MQTT, the vertx frame is integrated through a springboot frame, a UDP server and a client are started, through socket communication, hardware equipment contacts the internet through an NB card to continuously send data packets to a platform, and original return can be realized according to received ip and a port.
5. The internet of things transmission standard protocol implementation communication method of claim 1, wherein in S4, bidirectional socket communication is a hexadecimal data packet, both the platform and the device side need to analyze according to a standard protocol format, the platform side adopts a Buffer object to operate the hexadecimal data packet, a data point table segment, a register address and a corresponding value are added at a fixed position, and point table data needs to be configured at the platform side at the first time, so that a corresponding attribute name and a specific attribute value can be mapped immediately.
CN202010639866.2A 2020-07-06 2020-07-06 Method for realizing communication by Internet of things transmission standard protocol Pending CN111818040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010639866.2A CN111818040A (en) 2020-07-06 2020-07-06 Method for realizing communication by Internet of things transmission standard protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010639866.2A CN111818040A (en) 2020-07-06 2020-07-06 Method for realizing communication by Internet of things transmission standard protocol

Publications (1)

Publication Number Publication Date
CN111818040A true CN111818040A (en) 2020-10-23

Family

ID=72856826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010639866.2A Pending CN111818040A (en) 2020-07-06 2020-07-06 Method for realizing communication by Internet of things transmission standard protocol

Country Status (1)

Country Link
CN (1) CN111818040A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235316A (en) * 2020-11-06 2021-01-15 上海舜宇恒平科学仪器有限公司 Data communication method for instrument integration
CN113015132A (en) * 2021-03-25 2021-06-22 联合汽车电子有限公司 Communication method and communication system
CN113608504A (en) * 2021-04-21 2021-11-05 北京智慧空间科技有限责任公司 Self-adaptive wind field information acquisition method and device, medium and wind power system
CN114244648A (en) * 2022-02-21 2022-03-25 浪潮通用软件有限公司 Method, device, equipment and medium for actively registering Internet of things platform by equipment
CN115484130A (en) * 2022-08-31 2022-12-16 江苏奥立信数字科技有限公司 Internet of things gateway and air compression online storage system for same

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747004A (en) * 2014-01-19 2014-04-23 樊建 Realizing method of internet of things communication protocol
CN106209812A (en) * 2016-07-04 2016-12-07 深圳市得润车联科技有限公司 A kind of method of internet-of-things terminal platform data encapsulation
WO2018059137A1 (en) * 2016-09-29 2018-04-05 中兴通讯股份有限公司 Internet of things terminal access device and method, and computer storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747004A (en) * 2014-01-19 2014-04-23 樊建 Realizing method of internet of things communication protocol
CN106209812A (en) * 2016-07-04 2016-12-07 深圳市得润车联科技有限公司 A kind of method of internet-of-things terminal platform data encapsulation
WO2018059137A1 (en) * 2016-09-29 2018-04-05 中兴通讯股份有限公司 Internet of things terminal access device and method, and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李沛;: "基于SpringBoot的职来职往小程序开发" *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235316A (en) * 2020-11-06 2021-01-15 上海舜宇恒平科学仪器有限公司 Data communication method for instrument integration
CN113015132A (en) * 2021-03-25 2021-06-22 联合汽车电子有限公司 Communication method and communication system
CN113015132B (en) * 2021-03-25 2023-09-22 联合汽车电子有限公司 Communication method and communication system
CN113608504A (en) * 2021-04-21 2021-11-05 北京智慧空间科技有限责任公司 Self-adaptive wind field information acquisition method and device, medium and wind power system
CN113608504B (en) * 2021-04-21 2022-07-19 北京智慧空间科技有限责任公司 Self-adaptive wind field information acquisition method and device, medium and wind power system
CN114244648A (en) * 2022-02-21 2022-03-25 浪潮通用软件有限公司 Method, device, equipment and medium for actively registering Internet of things platform by equipment
CN115484130A (en) * 2022-08-31 2022-12-16 江苏奥立信数字科技有限公司 Internet of things gateway and air compression online storage system for same
CN115484130B (en) * 2022-08-31 2023-11-03 江苏奥立信数字科技有限公司 Internet of things gateway and air compression online storage system for same

Similar Documents

Publication Publication Date Title
CN111818040A (en) Method for realizing communication by Internet of things transmission standard protocol
EP3654192B1 (en) Configuration management method, apparatus and device
Kumar et al. Implementation and analysis of QUIC for MQTT
US10498831B2 (en) Communication sessions at a CoAP protocol layer
US10708885B2 (en) Methods and nodes for enabling context-awareness in CoAP
US11356522B2 (en) Data transmission method, network device, terminal device, and computer readable storage medium
CN107342934A (en) A kind of mixed mode Mobile solution real-time messages method for pushing and system based on WebSocket
US10701189B2 (en) Data transmission method and apparatus
CN111092854B (en) Method for transmitting packets transmitted from a source device to a destination device
Klauck et al. Enhanced DNS message compression-Optimizing mDNS/DNS-SD for the use in 6LoWPANs
Frigieri et al. M2M protocols for constrained environments in the context of IoT: A comparison of approaches
CN102055774B (en) Based on http server and the data processing method thereof of bag process
US11055166B2 (en) Covertly storing a payload of data within a network
JP2000236348A (en) Management system of remote equipment using internet protocol
CN113794715A (en) Virtual point-to-point network data transmitting, receiving and responding method and system thereof
TW202125291A (en) Gateway device with built-in server module and communication system thereof
Chung et al. Managing heterogeneous wireless sensor networks with the session initiation protocol (SIP)
Moons Multi-Level Interoperability in Heterogeneous Low Power Wide Area
Gültunca et al. Examination and comparison of the communication protocols on the application layer in iot
US11588925B2 (en) Method for transferring large amounts of data through a telematic network in an efficient and reliable manner at a high-speed
JP2023551687A (en) Message transmission methods, systems, network devices, and storage media
CN101258724A (en) Communications interface
CN116708285A (en) Network management method, device and system
Lemlouma et al. An Easy Cellular Gateway for Providing Shared Services and Data
CN102868677A (en) Reliability transmission method of XMPP (Xmlbased Messaging and Presence Protocol) message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201023

RJ01 Rejection of invention patent application after publication