CN109167809B - Internet of things platform docking data transmission format processing method - Google Patents

Internet of things platform docking data transmission format processing method Download PDF

Info

Publication number
CN109167809B
CN109167809B CN201810808737.4A CN201810808737A CN109167809B CN 109167809 B CN109167809 B CN 109167809B CN 201810808737 A CN201810808737 A CN 201810808737A CN 109167809 B CN109167809 B CN 109167809B
Authority
CN
China
Prior art keywords
internet
things
platform
command
packet
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.)
Active
Application number
CN201810808737.4A
Other languages
Chinese (zh)
Other versions
CN109167809A (en
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.)
Zhejiang Cangnan Instrument Group Co ltd
Original Assignee
Zhejiang Cangnan Instrument Group 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 Zhejiang Cangnan Instrument Group Co ltd filed Critical Zhejiang Cangnan Instrument Group Co ltd
Priority to CN201810808737.4A priority Critical patent/CN109167809B/en
Publication of CN109167809A publication Critical patent/CN109167809A/en
Application granted granted Critical
Publication of CN109167809B publication Critical patent/CN109167809B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for processing a data transmission format of an Internet of things platform, which is applied to data transmission of an Internet of things application control platform and an Internet of things terminal communication platform, wherein a request packet and a response packet are adopted, a packet head of the request packet defines a unique identification number of terminal equipment of the Internet of things, and a packet body of the request packet is formed by arranging a plurality of groups of commands; the head of the response packet also defines the unique identification number of the terminal equipment of the Internet of things; the Internet of things application control platform sends a request packet to the Internet of things terminal communication platform, and the Internet of things terminal communication platform replies one or more response packets. The invention breaks through the complexity of the service logic of the communication platform of the Internet of things, simplifies the transaction processing process, avoids the complicated secondary development and test process of each increase of different communication protocols, simplifies the access of the application control platform of the Internet of things and the terminal equipment, effectively saves manpower, material resources and financial resources, reduces the access cost and threshold, and improves the benefit.

Description

Internet of things platform docking data transmission format processing method
Technical Field
The invention relates to the technical field of communication of the Internet of things, in particular to a method for processing a data transmission format of a platform of the Internet of things in butt joint.
Background
In the era of 'internet +' and '2025 made in China', the development of the internet of things in China is rapid, but in the development process, the problem that the compatibility of an internet of things terminal communication platform and internet of things terminal equipment is difficult generally exists, particularly when the internet of things terminal communication platform needs to be connected with different internet of things terminal equipment protocols of different manufacturers in different industries, the compatibility is difficult, and the method mainly comprises the following items:
data points monitored by different manufacturers in different industries, required data and information to be mastered are different, so that the communication protocols of the terminal equipment of the internet of things of the manufacturers are different, and the service control and communication processing of the terminal communication platform of the internet of things are difficult;
different internet of things terminal equipment has different communication protocols, and when a new terminal equipment is added, a protocol needs to be added, an internet of things terminal communication platform needs to be developed for the second time, and a large amount of manpower, material resources and financial resources need to be spent;
different terminal devices, different communication protocols, different data formats, different service logics and different encryption algorithms cannot be used in a mixed mode, the affairs and complexity of the terminal communication platform of the internet of things are increased, and the problem and instability of system compatibility are easily caused.
Disclosure of Invention
The invention aims to solve the problems of compatibility and stability of the existing terminal communication platform of the Internet of things and improve the data transmission safety, and provides a method for processing the butt joint data transmission format of the Internet of things platform, which can realize the universality of the terminal communication platform of the Internet of things, access of different terminal equipment and different application control platforms of the Internet of things does not need secondary development, the encryption algorithm of the communication process of the application control platform of the Internet of things and the terminal equipment is flexibly matched, the terminal communication platform of the Internet of things does not restrict the terminal communication platform of the Internet of things, the terminal communication platform of the Internet of things does not process the service logic and the transaction process, only processes the data communication of the terminal equipment and the application control platform of the Internet of things, and simplifies the flow and the service complexity; different encryption algorithms are adopted among different devices, different command groups and different command packets of the same command group, so that the problem of compatibility between the Internet of things platform and the Internet of things terminal is solved, the data transmission safety is improved, even if one encryption algorithm is cracked, other encryption algorithms are not influenced, and the algorithm can be changed into other undeciphered algorithms at any time after being known to be cracked.
In order to achieve the above object, the following technical solution is adopted in the present invention, a method for processing a data transmission format of a platform of internet of things in butt joint, which is applied to data transmission of an application control platform of internet of things and a terminal communication platform of internet of things, and includes a request packet and a response packet, where the request packet format includes a request packet header and a request packet body, the request packet header defines a unique identification number of a terminal device of internet of things, the request packet body is formed by arranging multiple groups of command groups, each group of command groups includes a command packet, a communication address and a determination condition, the command packet includes six parts, namely a command stream number, a command identification number, a command packet, a command verification mode, an encryption algorithm and a public key, the communication address includes a response packet communication address start position, an address length and a comparison character, the determination condition includes a response packet determination condition start position, The character length and the comparison character are formed; the reply packet format consists of a reply packet head and a reply packet body, the reply packet head also defines the unique identification number of the terminal equipment of the Internet of things, and the reply packet body consists of five parts, namely a command serial number, a command identification number, a reply message, an encryption algorithm and a public key; the Internet of things application control platform sends a request packet to the Internet of things terminal communication platform, and the Internet of things terminal communication platform replies one or more response packets.
Preferably, the data transmission of the internet of things application control platform and the internet of things terminal communication platform adopts a method that the internet of things application control platform organizes a request packet according to a request packet format and sends the request packet to the internet of things terminal communication platform, the internet of things terminal communication platform unpacks the request packet and sends a response packet header to the internet of things terminal equipment to establish a communication channel, after the channel is successfully established, the internet of things terminal communication platform analyzes a first command group of the request packet, acquires a command and sends the command to the terminal equipment, the terminal equipment receives the command and then makes a response, the internet of things terminal communication platform receives a response message and then judges that the response message is not satisfied or retransmitted for 3 times and satisfies a condition, the internet of things terminal communication platform packages according to the response packet format and sends the response packet to the internet of things application control platform, and the internet of things terminal communication platform continues to process a second command group, and so on until all command processing is completed.
Preferably, the request packet and the response packet may adopt different encryption algorithms according to different devices, different command groups and different command packets in the same command group, the encryption algorithm is a symmetric encryption algorithm, and one or more of DES, 3DES, AES, RC2 and RC4 symmetric encryption algorithms may be adopted.
Preferably, the encryption algorithm is provided with a public key PK, the Internet of things application control platform is provided with a private key USK, the Internet of things terminal communication platform is provided with a private key MSK, and the public key PK, the private key USK and the private key MSK are all generated by the Internet of things communication platform and are applied to data communication encryption between the Internet of things application control platform and the Internet of things terminal communication platform.
Preferably, the encryption of the contents of the command message in the request packet and the response message in the response packet is agreed between the internet of things terminal device and the internet of things application control platform.
Preferably, the check mode adopts one or more of CRC check, checksum and parity check, and is applied to checking the correctness of communication data between the application control platform of the Internet of things and the terminal communication platform of the Internet of things.
Preferably, the communication address and the judgment condition are applied to the judgment of the internet of things terminal communication platform when receiving the internet of things terminal equipment response message, and whether the response message meets the condition is judged according to the judgment condition in the request packet and corresponding processing is carried out.
The formats of the request packet and the response packet in the scheme are flexibly specified in the packet or randomly specified in an encryption algorithm and a verification mode, and the general format is an externally appointed fixed encryption algorithm; the encryption algorithm and the verification mode between the same request packet command group can be different, so that commands of different terminal equipment protocols can be sent in the same request packet, and the encryption algorithm and the verification mode between the same packet or different packets of the conventional data packet are consistent; one request packet consists of a plurality of groups of command groups, while the response packet only consists of one group of response messages, one request packet has a plurality of response packets to reply, and conventionally, one request packet and one response packet; by adopting the format, the terminal communication platform of the internet of things is universal and is suitable for various terminal devices and application control platforms of the internet of things; the encryption algorithm and the check mode of the request packet can be flexibly specified without restriction, and each command in the request packet can be specified with different encryption algorithms or check modes without mutual interference.
Therefore, the invention has the following beneficial effects: the complexity of the service logic of the communication platform of the Internet of things is broken through, the transaction processing process is simplified, the tedious secondary development and test processes of different communication protocols are avoided when each communication protocol is added, the access of the application control platform of the Internet of things and the terminal equipment is simplified and difficult, the manpower, material resources and financial resources are effectively saved, the access cost and threshold are reduced, and the benefit is improved. Different encryption algorithms can be flexibly and randomly assigned among different devices, different command groups and different command packets of the same command group, the problem of compatibility of an Internet of things platform and an Internet of things terminal is solved, and meanwhile, the data transmission safety and reliability are improved.
Drawings
FIG. 1 is a diagram of a request packet structure according to the present invention.
FIG. 2 is a schematic diagram of a command set structure in the request packet body according to the present invention.
FIG. 3 is a diagram illustrating the structure of a command packet in a request packet body command group according to the present invention.
FIG. 4 is a diagram illustrating the structure of communication addresses in the command set of the request packet body according to the present invention.
FIG. 5 is a diagram illustrating the structure of the judgment condition in the command set of the request packet body according to the present invention.
Fig. 6 is a schematic diagram of the structure of the response packet of the present invention.
Fig. 7 is a flowchart of a method for transmitting and processing data of the internet of things platform.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
As shown in fig. 1 to 7, a method for processing a data transmission format of a platform of internet of things in a butt joint mode is applied to data transmission of an application control platform of internet of things and a terminal communication platform of internet of things, and a request packet and a response packet are adopted, wherein the request packet format is composed of a request packet header and a request packet body, the request packet header defines a unique identification number of terminal equipment of internet of things, the request packet body is formed by arranging a plurality of groups of command groups, each group of command groups is composed of a command packet, a communication address and a judgment condition, the command packet is composed of six parts of a command stream number, a command identification number, a command message, a command verification mode, an encryption algorithm and a public key, the communication address is composed of three parts of a communication address initial position, an address length and a comparison character of the response message, and the judgment condition is composed of three parts of a judgment condition initial position, a character length and a comparison character; the format of the response packet consists of a response packet head and a response packet body, the response packet head also defines the unique identification number of the terminal equipment of the Internet of things, and the response packet body consists of five parts, namely a command serial number, a command identification number, a response message, an encryption algorithm and a public key; the method comprises the steps that an Internet of things application control platform sends a request packet to an Internet of things terminal communication platform, and the Internet of things terminal communication platform replies one or more response packets;
the data transmission of the Internet of things application control platform and the Internet of things terminal communication platform adopts the following method that the Internet of things application control platform organizes a request packet according to a request packet format, and then the data is sent to an Internet of things terminal communication platform, the Internet of things terminal communication platform unpacks the data, and then sends a response packet head to the Internet of things terminal equipment to establish a communication channel, after the channel is successfully established, the terminal communication platform of the Internet of things analyzes a first command group of the request packet, acquires a command and sends the command to the terminal equipment, the terminal equipment responds after receiving the command, the terminal communication platform of the Internet of things judges whether the command is satisfied or not and retransmits the command for 3 times after receiving a response message, the terminal communication platform of the Internet of things packages the command according to a response packet format, sending the command to the Internet of things application control platform, and continuing to process the second command group by the Internet of things terminal communication platform, and repeating the steps until all commands are processed;
the request packet and the response packet can adopt different encryption algorithms according to different devices, different command packets and different command groups in the same command packet, the encryption algorithms are symmetrical encryption algorithms, and one or more of DES, 3DES, AES, RC2 and RC4 symmetrical encryption algorithms can be adopted;
the encryption algorithm is provided with a public key PK, the Internet of things application control platform is provided with a private key USK, the Internet of things terminal communication platform is provided with a private key MSK, and the public key PK, the private key USK and the private key MSK are all generated by the Internet of things communication platform and are applied to data communication encryption between the Internet of things application control platform and the Internet of things terminal communication platform;
encrypting the self content of the command message in the request packet and the response message in the response packet by the agreement between the Internet of things terminal equipment and the Internet of things application control platform;
the checking mode adopts one or more of CRC (cyclic redundancy check), checksum and parity check, and is applied to checking the correctness of communication data between the application control platform of the Internet of things and the terminal communication platform of the Internet of things;
and the communication address and the judgment condition are applied to the judgment of the Internet of things terminal communication platform when receiving the Internet of things terminal equipment response message, and whether the response message meets the condition is judged according to the judgment condition in the request packet and corresponding processing is carried out.
The specific use process is that, for example, a cloud service application platform is used as an internet of things application control platform, a cloud service monitoring center platform is used as an internet of things terminal communication platform, and an EVC300 wireless remote volume corrector is used as internet of things terminal equipment; firstly, an EVC300 wireless volume corrector sends a TCP protocol request to a cloud service monitoring center platform, and then a communication channel is established through three-way handshake; the cloud service monitoring center platform informs a cloud service application platform of a message that a communication channel is successfully established with the EVC300 wireless volume corrector, the cloud service application platform sends the message to the EVC300 wireless volume corrector according to a request packet rule set, the message is unpacked and then sends a first group of command groups to the EVC300 wireless volume corrector, the cloud service application platform receives the command and sends a response, then the cloud service monitoring center platform sends the command to the cloud service application platform according to a response packet rule set and sends a second group of command groups to the EVC300 wireless volume corrector, the corresponding processing is carried out, and the like until all commands are completely executed.

Claims (6)

1. A processing method of data transmission format of Internet of things platform butt joint is applied to data transmission of an application control platform and a terminal communication platform of the Internet of things, and adopts a request packet and a response packet, and is characterized in that the request packet format comprises a request packet header and a request packet body, the request packet header defines a unique identification number of terminal equipment of the Internet of things, the request packet body is formed by arranging a plurality of groups of command groups, each group of command groups comprises a command packet, a communication address and a judgment condition, the command packet comprises a command stream number, a command identification number, a command message, a command verification mode, an encryption algorithm and a public key, the communication address comprises a response message communication address initial position, an address length and a comparison character, and the judgment condition comprises a response message judgment condition initial position, an address length and a comparison character, The character length and the comparison character are formed; the reply packet format consists of a reply packet head and a reply packet body, the reply packet head also defines the unique identification number of the terminal equipment of the Internet of things, and the reply packet body consists of five parts, namely a command serial number, a command identification number, a reply message, an encryption algorithm and a public key; the Internet of things application control platform sends a request packet to the Internet of things terminal communication platform, and the Internet of things terminal communication platform replies one or more response packets;
the data transmission of the Internet of things application control platform and the Internet of things terminal communication platform adopts the following method, the Internet of things application control platform organizes a request packet according to a request packet format and sends the request packet to the Internet of things terminal communication platform, the Internet of things terminal communication platform unpacks the request packet and sends the request packet to the Internet of things terminal communication platform, then sends a response packet header to the Internet of things terminal equipment to establish a communication channel, after the channel is successfully established, the Internet of things terminal communication platform analyzes a first command group of the request packet, acquires a command and sends the command to the terminal equipment, the terminal equipment receives the command and then makes a response, the Internet of things terminal communication platform receives a response message and then judges that the response message does not meet a judgment condition, the response packet is retransmitted for 3 times and meets the judgment condition, the Internet of things terminal communication platform packages according to the response packet format and sends the response packet to the Internet of things application control platform, and the Internet of things terminal communication platform continues to process a second command group, and so on until all command processing is completed.
2. The method as claimed in claim 1, wherein the request packet and the response packet use different encryption algorithms according to different devices, different command groups, and different command packets in the same command group, and the encryption algorithm is a symmetric encryption algorithm using one or more of DES, 3DES, AES, RC2, and RC 4.
3. The method as claimed in claim 1, wherein the encryption algorithm is provided with a public key PK, the application control platform of the internet of things is provided with a private key USK, the terminal communication platform of the internet of things is provided with a private key MSK, and the public key PK, the private key USK and the private key MSK are generated by the terminal communication platform of the internet of things and are used for encrypting data communication between the application control platform of the internet of things and the terminal communication platform of the internet of things.
4. The method for processing the data transmission format of the internet of things platform in the butt joint mode according to claim 1, wherein the encryption of the contents of the command message in the request packet and the response message in the response packet is agreed between the internet of things terminal equipment and the internet of things application control platform.
5. The method for processing the transmission format of the data docked in the platform of the internet of things as claimed in claim 1, wherein the check mode adopts one or more of CRC check, checksum and parity check, and is applied to checking the correctness of the communication data between the application control platform of the internet of things and the terminal communication platform of the internet of things.
6. The method for processing the data transmission format of the platform of the internet of things in the butt joint according to claim 1, wherein the communication address and the judgment condition are applied to the judgment of the internet of things terminal communication platform when receiving the response message of the terminal equipment of the internet of things, and whether the response message meets the condition is judged according to the judgment condition in the request packet and corresponding processing is carried out.
CN201810808737.4A 2018-07-18 2018-07-18 Internet of things platform docking data transmission format processing method Active CN109167809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810808737.4A CN109167809B (en) 2018-07-18 2018-07-18 Internet of things platform docking data transmission format processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810808737.4A CN109167809B (en) 2018-07-18 2018-07-18 Internet of things platform docking data transmission format processing method

Publications (2)

Publication Number Publication Date
CN109167809A CN109167809A (en) 2019-01-08
CN109167809B true CN109167809B (en) 2021-11-26

Family

ID=64898023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810808737.4A Active CN109167809B (en) 2018-07-18 2018-07-18 Internet of things platform docking data transmission format processing method

Country Status (1)

Country Link
CN (1) CN109167809B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862123A (en) * 2019-03-29 2019-06-07 深圳开立生物医疗科技股份有限公司 Data processing method, Internet of Things module and equipment
CN112040463B (en) * 2020-08-04 2024-01-30 广州旋坤信息科技有限公司 Wireless communication network networking method and system based on LoRa equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534067A (en) * 2016-09-29 2017-03-22 安徽华速达电子科技有限公司 Intelligent control method and system based on internet of things

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761391B (en) * 2012-06-29 2015-03-04 山东海特物联网科技有限公司 Oil field Internet of Things system communication method
CN106664514B (en) * 2014-07-18 2021-02-19 康维达无线有限责任公司 Apparatus and method for establishing and performing group-group operation in M2M interface
CN105991555A (en) * 2015-02-04 2016-10-05 成都世纪华宁科技有限公司 6LoWPAN-based network connection method and system
KR102352870B1 (en) * 2015-03-09 2022-01-18 삼성전자 주식회사 Method and apparatus for controlling a electronic device in a communication system
CN105634888B (en) * 2016-01-25 2019-03-05 重庆邮电大学 A kind of smart home collaboration networking communication method and system based on VSOP agreement
WO2017138620A1 (en) * 2016-02-09 2017-08-17 株式会社 東芝 Memory device, edge device handling accumulable data, and data management method
US10887174B2 (en) * 2016-09-19 2021-01-05 Amazon Technologies, Inc. Group command management for device groups
CN107018127B (en) * 2017-03-07 2019-12-06 西安电子科技大学 Internet of things virtual gateway compatible with multiple protocols and node access authentication method
CN108093070B (en) * 2017-12-27 2020-12-18 复旦大学 Internet of things data service middleware system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534067A (en) * 2016-09-29 2017-03-22 安徽华速达电子科技有限公司 Intelligent control method and system based on internet of things

Also Published As

Publication number Publication date
CN109167809A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
US7212962B2 (en) Host-terminal emulation program, a relay program, a host-terminal emulation method, a communication program, a communication method, and a client computer
US8611342B2 (en) Telecommunications apparatus and method, storage medium, and program
JP2020519090A (en) Uplink data decompression and compression method and apparatus
CN112217906B (en) Communication method, device, equipment and storage medium combining AI and RPA
CN102377650B (en) Data transmission processing method, device and system
CN109167809B (en) Internet of things platform docking data transmission format processing method
CN104539587A (en) Thing access and group interaction method used for Internet of things
WO2016202066A1 (en) Information acquisition method, client device and service end device
US11540168B2 (en) Apparatus and methods of packet retransmission between multi-link devices
CN109688555B (en) Real-time signal data acquisition and communication system and method
KR20040028571A (en) Data communication method and information processing apparatus
CN110022374A (en) Method for connecting network, device, communication equipment and storage medium based on Internet of Things
US10153961B2 (en) Communication device, communication method, and communication system
WO2024032742A1 (en) Service processing method and apparatus, device, storage medium, and program product
CN104702596B (en) A kind of Information hiding based on data packet length and the method and system of transmission
CN113141263B (en) Upgrading method, device, system and storage medium
CN115118526B (en) VR device data migration method
CN114915555B (en) Gateway drive communication method, device, equipment and storage medium
CN111221764B (en) Cross-link data transmission method and system
WO2022134960A1 (en) Communication method and apparatus, and device
CN112995305B (en) Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof
CN112532663B (en) Household intelligent gateway login method and device
CN107948165B (en) Secure broadcast system and method based on private protocol
CN101640680A (en) Network access control method, system and device
CN114449062B (en) Interactive system and method of QKD key management system

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