CN110417783B - Data transmission method and device based on Internet of things, storage medium and terminal - Google Patents

Data transmission method and device based on Internet of things, storage medium and terminal Download PDF

Info

Publication number
CN110417783B
CN110417783B CN201910696140.XA CN201910696140A CN110417783B CN 110417783 B CN110417783 B CN 110417783B CN 201910696140 A CN201910696140 A CN 201910696140A CN 110417783 B CN110417783 B CN 110417783B
Authority
CN
China
Prior art keywords
equipment
data
decoding label
module
generating
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
CN201910696140.XA
Other languages
Chinese (zh)
Other versions
CN110417783A (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.)
BEIJING GUOXIN HUAYUAN TECHNOLOGY CO LTD
Original Assignee
BEIJING GUOXIN HUAYUAN TECHNOLOGY 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 BEIJING GUOXIN HUAYUAN TECHNOLOGY CO LTD filed Critical BEIJING GUOXIN HUAYUAN TECHNOLOGY CO LTD
Priority to CN201910696140.XA priority Critical patent/CN110417783B/en
Publication of CN110417783A publication Critical patent/CN110417783A/en
Application granted granted Critical
Publication of CN110417783B publication Critical patent/CN110417783B/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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • 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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • 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

Landscapes

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

Abstract

The invention discloses a data transmission method, a device, a storage medium and a terminal based on the Internet of things, wherein the data transmission method comprises the following steps: acquiring message characteristics and connection characteristics of equipment; generating a decoding label corresponding to the equipment according to the message characteristics, and generating an interactive design corresponding to the equipment connection according to the connection characteristics; matching a decoding label corresponding to the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment; parsing data received from the device according to the matched decoding label; and finishing data transmission with the equipment by utilizing the decoding label and the interactive design. The problem of accessing the server of the Internet of things with different communication technologies, different transmission standards and different communication messages is solved by establishing the decoding label. The problem of interaction of the Internet of things of different communication technologies, different transmission standards and different communication messages is solved by establishing an interaction design.

Description

Data transmission method and device based on Internet of things, storage medium and terminal
Technical Field
The invention relates to the technical field of Internet of things, in particular to a data transmission method, a data transmission device, a data storage medium and a data transmission terminal based on the Internet of things.
Background
With the development of the technology of the internet of things, more and more sensors and internet of things equipment need to access the cloud platform. Exchanging data between a device and a platform requires encoding and decoding using a communication protocol. At present, a coding and decoding method which can be compatible with various communication message formats in multiple industries is lacked. The existing ubiquitous non-compatible coding and decoding method only has a parsing rule and lacks a bidirectional communication link maintenance and interaction mechanism.
The prior art scheme can not realize data sharing and completely realizes data synchronization of a plurality of platforms by means of 'one station with multiple transmissions' of equipment. As the number of communication links of the device increases, no friendly link maintenance is performed. The communication charge and power consumption of the equipment are increased, and the data transmission of other links is blocked because the equipment side does not usually have an operating system due to the maintenance failure of a single link. The data synchronization scheme of the prior art cannot meet the requirement of data unification of each platform.
Disclosure of Invention
Objects of the invention
The invention aims to provide a data transmission method, a data transmission device, a storage medium and a data transmission terminal based on the Internet of things, and the data transmission method, the data transmission device, the storage medium and the data transmission terminal are used for solving the problem that an Internet of things access server with different communication technologies, different transmission standards and different communication messages needs multiple interfaces.
(II) technical scheme
In order to solve the above problem, a first aspect of the present invention provides a data transmission method based on the internet of things, including: acquiring message characteristics and connection characteristics of equipment; generating a decoding label corresponding to the equipment according to the message characteristics, and generating an interactive design corresponding to the equipment connection according to the connection characteristics; matching a decoding label corresponding to the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment; parsing data received from the device according to the matched decoding label; and finishing data transmission with the equipment by utilizing the decoding label and the interactive design.
Further, the acquiring of the device packet feature includes at least one of the following: acquiring an equipment message frame; acquiring a device message structure; acquiring a device message data format; acquiring a device function code; acquiring a device conversion relation; acquiring the initial end identification characteristics of the equipment; and acquiring a device verification mode.
Further, the generating of the decoding label corresponding to the device data protocol according to the packet feature includes at least one of the following: generating a decoding label corresponding to the TCP protocol of the equipment according to the message characteristics; generating a decoding label corresponding to the equipment UDP protocol according to the message characteristics; generating a decoding label corresponding to the MQTT protocol of the equipment according to the message characteristics; generating a decoding label corresponding to the LWM2M protocol of the equipment according to the message characteristics; and generating a decoding label corresponding to the HTTP protocol of the equipment according to the message characteristics.
Further, still include: acquiring the connection characteristics of the equipment; generating an interactive design corresponding to the equipment connection according to the connection characteristics; matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment; and finishing data transmission with the equipment by utilizing the decoding label and the interactive design.
Further, the acquiring the connection feature of the device comprises at least one of the following: acquiring the connection protocol type of the equipment; acquiring connection real-time characteristics of the equipment; obtaining login characteristics of the device.
Further, the utilizing the transcoding tag and the interactive design for data transmission with the device comprises: when the access verification information is identity information, directly matching a decoding label and an interactive design corresponding to the access verification information, and completing data transmission with the equipment by using the decoding label and the interactive design; when the access verification information is a data frame with identity information, the verification information is converted into an identifiable format by using the decoding label, then the interactive design corresponding to the verification information is matched, and the data transmission with the equipment is completed by using the decoding label and the interactive design.
Further, the interactive design generates data specifications for data transmission with the device according to the connection characteristics of the device.
Further, the data specification includes: the data transmission method comprises a splitting rule and a subdata specification for splitting a transmission data packet into a plurality of subdata packets and a merging rule for splicing the plurality of subdata packets into the transmission data packet.
Further, still include: generating a control instruction of the equipment according to the decoding label and the interactive design; acquiring control information and matching a control instruction corresponding to the control information; and controlling the equipment by using the control instruction.
Further, still include: and combining a plurality of the control instructions into a control instruction group, and executing a set of control actions matched with the equipment by using the control instruction group.
Further, still include: and combining the control instruction groups of the plurality of devices into a control instruction group, and performing collective control on the plurality of devices by using the control instruction group.
According to another aspect of the present invention, there is provided an internet of things-based data transmission device, including: the message data acquisition module is used for acquiring the message characteristics of the equipment; the connection data acquisition module is used for acquiring the connection characteristics of the equipment; a decoding label generating module, configured to generate a decoding label corresponding to the device according to the packet feature; the interactive design generating module is used for generating an interactive design corresponding to the equipment connection according to the connection characteristics; the matching module is used for matching a decoding label corresponding to the access verification information of the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment; the analysis module is used for analyzing the data received from the equipment according to the matched decoding label; and the data transmission module is used for completing data transmission with the equipment by utilizing the decoding label and the interactive design.
Further, the message data acquisition module includes at least one of the following: the message frame acquisition unit is used for acquiring the message frame of the equipment; the message structure acquisition unit is used for acquiring a device message structure; the message data format acquisition unit is used for acquiring the message data format of the equipment; the function code acquisition unit is used for acquiring a function code of the equipment; the conversion relation acquisition unit is used for acquiring the equipment conversion relation; the starting and ending identification characteristic set unit is used for acquiring the starting and ending identification characteristics of the equipment; and the verification mode acquisition unit is used for acquiring the equipment verification mode.
Further, the decoding label generating module comprises at least one of the following: a TCP protocol decoding label generating unit, configured to generate a decoding label corresponding to the TCP protocol of the device according to the message characteristic; a UDP protocol decoding label generating unit, configured to generate a decoding label corresponding to the UDP protocol of the device according to the message characteristics; the MQTT protocol decoding label generating unit is used for generating a decoding label corresponding to the MQTT protocol of the equipment according to the message characteristics; an LWM2M protocol decoding label generating unit, configured to generate a decoding label corresponding to the LWM2M protocol of the device according to the packet feature; and the HTTP decoding label generating unit is used for generating a decoding label corresponding to the equipment HTTP according to the message characteristics.
Further, still include: the connection data acquisition module is used for acquiring the connection characteristics of the equipment; the interactive design generating module is used for generating an interactive design corresponding to the equipment connection according to the connection characteristics; the interactive design matching module is used for matching the interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment; and the data transmission module is used for completing data transmission with the equipment by utilizing the decoding label and the interactive design.
Further, the connection data acquisition module comprises at least one of: the connection protocol type acquisition module is used for acquiring the connection protocol type of the equipment; the connection real-time characteristic acquisition module is used for acquiring connection real-time characteristics of the equipment; and the login characteristic acquisition module is used for acquiring the login characteristics of the equipment.
Further, the data transmission module includes: the direct data transmission module is used for directly matching a decoding label and an interactive design corresponding to the access authentication information when the access authentication information is identity information, and completing data transmission with the equipment by using the decoding label and the interactive design; and the indirect data transmission module is used for converting the verification information into an identifiable format by using the decoding label when the access verification information is a data frame with identity information, matching an interactive design corresponding to the verification information, and completing data transmission with the equipment by using the decoding label and the interactive design.
Further, the data transmission module generates data specifications for data transmission with the equipment according to the connection characteristics of the equipment by utilizing interactive design.
Further, the data specification includes: the data transmission method comprises a splitting rule and a subdata specification for splitting a transmission data packet into a plurality of subdata packets and a merging rule for splicing the plurality of subdata packets into the transmission data packet.
Further, still include: the control instruction generating module is used for generating a control instruction of the equipment according to the decoding label and the interactive design; the control command matching module is used for acquiring control information and matching a control command corresponding to the control information; and the equipment single-instruction control module is used for controlling the equipment by using the control instruction.
Further, still include: the control instruction group generating module is used for combining a plurality of control instructions into a control instruction group; the control instruction group matching module is used for acquiring control information and matching a control instruction group corresponding to the control information; and the equipment multi-instruction control module is used for executing a group of control actions matched with the equipment by utilizing the control instruction group.
Further, still include: the control instruction group generating module is used for combining the control instruction groups of the plurality of devices into a control instruction group; the control instruction group matching module is used for acquiring control information and matching a control instruction group corresponding to the control information; and the multi-device instruction control module is used for collectively controlling the plurality of devices by utilizing the control instruction group.
According to a further aspect of the present invention, there is provided a computer storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of the method of any one of the above schemes.
According to a further aspect of the present invention, there is provided a terminal comprising a memory, a display, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of the above aspects when executing the program.
(III) advantageous effects
The technical scheme of the invention has the following beneficial technical effects:
the problem that multiple interfaces are needed by access servers of the internet of things of different communication technologies, different transmission standards and different communication messages is solved by establishing the decoding labels, any type of message analysis is supported, and all devices connected by adopting TCP/UDP/MQTT/LWM2M/HTTP protocols can be accessed; and automatically identifying the equipment access system and maintaining the connection.
Drawings
Fig. 1 is a flowchart of a data transmission method according to a first embodiment of the present invention;
FIG. 2 is a schematic view of a data transfer device interface according to an alternative embodiment of the present invention;
FIG. 3 is a schematic diagram of the operation of an interaction design module according to an alternative embodiment of the present invention;
fig. 4 is a schematic diagram of the operation of a decoded label module according to an alternative embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all 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.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Fig. 1 is a flowchart of a data transmission method according to a first embodiment of the present invention.
In a first aspect of the embodiments of the present invention, a data transmission method based on the internet of things is provided, including:
s1: acquiring device message characteristics and connection characteristics; optionally, the obtaining of the device packet feature includes at least one of the following: acquiring an equipment message frame; acquiring a device message structure; acquiring a device message data format; acquiring a device function code; acquiring a device conversion relation; acquiring the initial end identification characteristics of the equipment; and acquiring a device verification mode. The device start and end identification features are device message start character and end character features. Optionally, the obtaining of the connection feature of the device includes at least one of: acquiring a connection protocol type of equipment; acquiring connection real-time characteristics of equipment; a login feature of the device is obtained. The real-time characteristics are the real-time performance of a connection mode, network delay and an error rate; the login feature is an interaction for confirming the device type, the right after the connection is established.
S2: generating a decoding label corresponding to equipment according to the message characteristics, and generating an interactive design corresponding to equipment connection according to the connection characteristics; optionally, the generating of the decoding label corresponding to the device data protocol according to the message feature includes at least one of the following: generating a decoding label corresponding to the TCP protocol of the equipment according to the message characteristics; generating a decoding label corresponding to the equipment UDP protocol according to the message characteristics; generating a decoding label corresponding to the MQTT protocol of the equipment according to the message characteristics; generating a decoding label corresponding to the LWM2M protocol of the equipment according to the message characteristics; and generating a decoding label corresponding to the HTTP protocol according to the message characteristics. The decoding label is a conversion mechanism of the data protocol of the equipment, and converts the data protocol of different equipment into a readable form.
S3: matching a decoding label corresponding to the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment;
s4: analyzing data received from the device according to the matched decoding label;
s5: and finishing data transmission with the equipment by utilizing the decoding label and the interactive design. The method specifically comprises the following steps: when the access verification information is identity information, directly matching a decoding label and an interactive design corresponding to the access verification information, and completing data transmission with equipment by using the decoding label and the interactive design; when the access verification information is a data frame with identity information, the verification information is converted into an identifiable format by using the decoding label, then the interactive design corresponding to the verification information is matched, and the data transmission with the equipment is completed by using the decoding label and the interactive design. Optionally, the interactive design generates a data specification for data transmission with the device according to a connection feature of the device. Optionally, the data specification includes: the data transmission method comprises a splitting rule and a subdata specification for splitting a transmission data packet into a plurality of subdata packets and a merging rule for splicing the plurality of subdata packets into the transmission data packet. The interactive design is a tool for freely designing interactive rules of equipment and a network service platform, the tool can design the interactive rules initiated by the equipment or initiated by the platform in a unified mode, the tool can design data specifications of an initiator and design whether a receiver responds or not and the data specifications of the response, the designed specifications of the tool can widely describe data communication interactive modes of the equipment and the network service, and particularly, the tool can also design a plurality of data packet splicing rules of a data receiver and design a merging rule of the data packets, wherein a big data packet of the data initiator is split into a plurality of data packets to be sent, and the data specification of each data packet is designed.
The method solves the problem that the access server of the Internet of things of different communication technologies, different transmission standards and different communication messages needs multiple interfaces by establishing the decoding label, supports any type of message analysis, and can access all equipment connected by adopting TCP/UDP/MQTT/LWM2M/HTTP protocol; and automatically identifying the equipment access system and maintaining the connection. The problem of interaction of the Internet of things of different communication technologies, different transmission standards and different communication messages is solved by establishing an interaction design. The access system of the automatic identification equipment is realized, and the connection is maintained.
Optionally, the method further includes: generating a control instruction of the equipment according to the decoding label and the interactive design; acquiring control information, and matching a control instruction corresponding to the control information; and controlling the equipment by using the control command. The operation process can set the control instruction into the virtual gateway, and the virtual gateway acquires the control information to control the equipment.
Optionally, the method further includes: and combining the plurality of control commands into a control command group, and executing a set of control actions matched with the equipment by using the control command group.
Optionally, the method further includes: and combining the control instruction groups of the plurality of devices into a control instruction group, and performing collective control on the plurality of devices by using the control instruction group.
In another aspect of the embodiments of the present invention, there is provided a data transmission device based on the internet of things, including: the message data acquisition module is used for acquiring the message characteristics of the equipment; the connection data acquisition module is used for acquiring the connection characteristics of the equipment; a decoding label generating module, configured to generate a decoding label corresponding to the device according to the packet feature; the interactive design generating module is used for generating an interactive design corresponding to the equipment connection according to the connection characteristics; the matching module is used for matching a decoding label corresponding to the access verification information of the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment; the analysis module is used for analyzing the data received from the equipment according to the matched decoding label; and the data transmission module is used for completing data transmission with the equipment by utilizing the decoding label and the interactive design. Optionally, the data transmission module generates a data specification for data transmission with the device according to the connection feature of the device by using an interactive design. Optionally, the data specification includes: the data transmission method comprises a splitting rule and a subdata specification for splitting a transmission data packet into a plurality of subdata packets and a merging rule for splicing the plurality of subdata packets into the transmission data packet. The interactive design is a tool for freely designing interactive rules of equipment and a network service platform, the tool can design the interactive rules initiated by the equipment or initiated by the platform in a unified mode, the tool can design data specifications of an initiator and design whether a receiver responds or not and the data specifications of the response, the designed specifications of the tool can widely describe data communication interactive modes of the equipment and the network service, and particularly, the tool can also design a plurality of data packet splicing rules of a data receiver and design a merging rule of the data packets, wherein a big data packet of the data initiator is split into a plurality of data packets to be sent, and the data specification of each data packet is designed.
Optionally, the message data acquisition module includes at least one of the following: the message frame acquisition unit is used for acquiring the message frame of the equipment; the message structure acquisition unit is used for acquiring a device message structure; the message data format acquisition unit is used for acquiring the message data format of the equipment; the function code acquisition unit is used for acquiring a function code of the equipment; the conversion relation acquisition unit is used for acquiring the equipment conversion relation; the starting and ending identification characteristic set unit is used for acquiring the starting and ending identification characteristics of the equipment; and the verification mode acquisition unit is used for acquiring the equipment verification mode.
Optionally, the decoding label generating module includes at least one of the following: a TCP protocol decoding label generating unit, which is used for generating a decoding label corresponding to the equipment TCP protocol according to the message characteristics; a UDP protocol decoding label generating unit, which is used for generating a decoding label corresponding to the UDP protocol of the device according to the message characteristics; the MQTT protocol decoding label generating unit is used for generating a decoding label corresponding to the MQTT protocol of the equipment according to the message characteristics; the decoding label generating unit of the LWM2M protocol is used for generating a decoding label corresponding to the LWM2M protocol of the equipment according to the message characteristics; and the HTTP decoding label generating unit is used for generating a decoding label corresponding to the equipment HTTP according to the message characteristics.
Optionally, the connection data acquisition module includes at least one of the following: the connection protocol type acquisition module is used for acquiring the connection protocol type of the equipment; the connection real-time characteristic acquisition module is used for acquiring the connection real-time characteristics of the equipment; and the login characteristic acquisition module is used for acquiring the login characteristics of the equipment.
Optionally, the data transmission module includes: the direct data transmission module is used for directly matching the corresponding decoding label and interactive design when the access verification information is the identity information, and completing data transmission with the equipment by utilizing the decoding label and the interactive design; and the indirect data transmission module is used for converting the verification information into a recognizable format by using the decoding label when the access verification information is a data frame with identity information, matching the interactive design corresponding to the verification information and completing data transmission with equipment by using the decoding label and the interactive design.
Optionally, the method further includes: the control instruction generating module is used for generating a control instruction of the equipment according to the decoding label and the interactive design; the control command matching module is used for acquiring control information and matching a control command corresponding to the control information; and the equipment single-instruction control module is used for controlling the equipment by utilizing the control instruction.
Optionally, the method further includes: the control instruction group generating module is used for combining a plurality of control instructions into a control instruction group; the control instruction group matching module is used for acquiring control information and matching a control instruction group corresponding to the control information; and the equipment multi-instruction control module is used for executing a group of control actions matched with the equipment by utilizing the control instruction group.
Optionally, the method further includes: the control instruction group generating module is used for combining control instruction groups of the plurality of devices into a control instruction group; the control instruction group matching module is used for acquiring control information and matching a control instruction group corresponding to the control information; and the multi-equipment instruction control module is used for collectively controlling the plurality of equipment by utilizing the control instruction group.
FIG. 2 is a schematic diagram of a data transfer device interface according to an alternative embodiment of the present invention.
As shown in fig. 2, in another aspect of the embodiment of the present invention, there is provided a device and platform universal interactive system, including: the decoding label module is used for establishing the interconversion between the data protocol of the equipment and the recognizable format of the platform; the interactive design module is used for constructing data interactive design appointed by the equipment and the platform; the virtual gateway module is used for bridging data from a protocol source into a paradigm message protocol; and data interaction between the equipment and the platform is unified through the decoding label module, the interactive design module and the virtual gateway module. In the interaction process of the equipment and the platform, a mechanism and a template are formulated through an interaction design module, the interaction effectiveness is ensured, then the format of the interaction information of the equipment and the platform is unified through a decoding label module, and after the interaction is completed, the interaction information is sent to other platforms through a virtual gateway module when needed, so that the interaction of the equipment and the multiple platforms is completed.
Specifically, the mechanism and the template are formulated by an interactive design module before the device is connected with the platform. The interaction design module generates a sequencing rule of a plurality of messages, and the effectiveness and the friendliness of interaction are ensured. Then, the contents of each message are specifically set through a decoding label module to realize that the platform analysis equipment uploads the information of the message and the reply equipment conforms to the message format of the message. And after the setting of the interactive design module and the decoding label module is completed, friendly interaction between the equipment and the platform can be realized. In order to realize data sharing of a single device on a plurality of platforms, a virtual gateway module is added on a platform directly connected with the device, and the virtual gateway module can share information which is finished by interactive design and decoding label module solution and accords with a platform data format to the plurality of platforms.
Optionally, the system further comprises a virtual device module and a trigger module; the virtual equipment module is used for establishing multi-platform data sharing, and the trigger module is used for establishing equipment and platform connection and giving an alarm to the outside.
Optionally, the system further comprises an object connection module, an object model module, an object engineering module and a polymer arm module; the object connection module is used for defining an access protocol of the equipment; the object model module is used for defining the functions of the equipment by referring to the elements in the object connection; the physical engineering module is used for citing products in the physical model to form a practical application; the polymer list module is used for displaying and operating equipment.
As shown in fig. 3, the interactive design is a tool for data interactive design agreed by the building equipment and the platform, and the multi-packet transmission can be defined according to an initiator and a response mechanism. The interaction design can be used for building various interaction mechanisms (such as M1, M2, M3, M4 and M5 in a water conservancy monitoring data transmission protocol) so as to meet the transmission reliability requirements of different types of equipment. The method is the key for realizing reliable communication and friendly transmission between the platform and various devices.
As shown in fig. 4, the decoding label is used to build a tool for interconversion between the proprietary data protocol of the device and the format recognizable by the platform. The decoding label can carry out data type conversion and coding and decoding rule setting according to different data protocols, and can simultaneously realize that a plurality of equipment uplink data platforms can be identified and a plurality of equipment downlink data platforms can be identified. The decoding label is an important ring for realizing the reusability, multi-access and wide connection of the system.
The virtual gateway is a tool for bridging data from TCP/UDP/LWM2M sources into MQTT. Data intercommunication interconnection among devices of different connection types based on TCP/UDP/LWM2M/MQTT can be realized through the virtual gateway. The data collection of different connection directions (server addresses) of the TCP/UDP/LWM2M/MQTT connection can be realized through the virtual gateway, which is the key point for realizing the number of fifty thousand connections.
The virtual device is a tool for converting data (MQTT virtual gateway, third-party database and third-party API) acquired by a third party into an access point of the system, and can also provide data pushing and API data pushing services for the third-party database. And if the automatic station database is grabbed and written in, the state of the Internet of things card can be acquired through the virtual equipment.
An association is the underlying protocol library of the system that defines the access protocols of the devices. The physical connection can define three basic elements of a plurality of services, events and attributes according to the access requirements of actual equipment (equipment type, transmission mode, transmission protocol, interaction mechanism and the like). The service and the event are all contents of one complete interaction, and the attribute is that the service and the attribute carry one complete data. In popular terms, an uplink message and its response are an event, a downlink message and its response are a service, and the attribute is one of useful data carried in the uplink or downlink message.
An object model is a middle-level product library of the system, with the elements in the reference links defining the functionality of the device. The object model assembles a real product or a virtual product by adding a plurality of services, events, attributes. In popular terms, one object model corresponds to one product, and can be freely spliced according to the characteristics of the product, for example, a rainfall station, a water level station, an image station, a rainwater station and a rainwater image station can be spliced by three elements of rainfall, water level and images.
The physical engineering is a top-level project library of the system, and a practical application is formed by citing products in the object model. Engineering can add a number of different types of products to an item and can set triggers to associate alarms. If a rainfall station, a water level station and an early warning broadcast are added in the project, the early warning broadcast automatic playing reminding notice can be started if the water level of the river channel exceeds the attention security level after the rainfall exceeds the threshold value.
The leader board is used for displaying and operating the actual access equipment in the system and is an instantiation of physical engineering. The equipment station building is added by taking projects in the physical engineering as units, and the trigger can be selected according to the actual application condition, and the threshold value and the output result in the trigger are adjusted. If the same project is used in the Wangcun and the Licun, the Wangcun can inform the principal and the subordinate of the village of ' principal and subordinate will ' through a short message when the rainfall reaches 30mm, and transfer the old with few solitary nationalities ', and the Licun can inform the primary school and the chief of ' Lilao teacher, please organize students and interweave employees to avoid risks ' when the rainfall reaches 35 mm.
In a further aspect of the embodiments of the present invention, there is provided a computer storage medium having a computer program stored thereon, the program, when executed by a processor, implementing the steps of any one of the above-described embodiments of the method.
In a further aspect of the embodiments of the present invention, there is provided a terminal, including a memory, a display, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the above-mentioned embodiments when executing the program.
The invention aims to protect a data transmission method based on the Internet of things, which comprises the following steps: acquiring message characteristics and connection characteristics of equipment; generating a decoding label corresponding to the equipment according to the message characteristics, and generating an interactive design corresponding to the equipment connection according to the connection characteristics; matching a decoding label corresponding to the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment; parsing data received from the device according to the matched decoding label; and finishing data transmission with the equipment by utilizing the decoding label and the interactive design. The problem of accessing the server of the Internet of things with different communication technologies, different transmission standards and different communication messages is solved by establishing the decoding label.
The problem of interaction of the Internet of things of different communication technologies, different transmission standards and different communication messages is solved by establishing an interaction design.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (12)

1. A data transmission method based on the Internet of things is characterized by comprising the following steps:
acquiring message characteristics and connection characteristics of equipment, wherein the message characteristics comprise: a device message framework; a device message structure; a device message data format; a device function code; equipment conversion relation; a device start end identification feature; the device verification method, wherein the device start and end identifier features are device message start identifier and end identifier features, and the connection features include: a connection protocol type of the device; connection real-time characteristics of the device; logging characteristics of the equipment, wherein the real-time characteristics are the real-time performance of a connection mode, network delay and an error rate; the login feature is interaction for confirming the type and the authority of the equipment after the connection is established;
generating a decoding label corresponding to the equipment according to the message characteristics, wherein the decoding label is used for converting equipment data protocols, converting the data protocols of different equipment into readable forms, and generating an interaction design corresponding to the equipment connection according to the connection characteristics, the interaction design is used for unifying interaction rules of the equipment and a network service platform, and the interaction design unifies interaction rules initiated by the equipment or initiated by the platform; the interactive design is also used for unifying whether the initiator and the receiver respond or not and data specifications of the response; the interactive design is also used for unifying data communication interactive modes of equipment and network services and unifying unpacking rules, splicing rules and merging rules of data;
matching a decoding label corresponding to the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment;
parsing data received from the device according to the matched decoding label;
completing data transmission with the equipment by using the decoding label and the interactive design, wherein the data transmission with the equipment by using the decoding label and the interactive design comprises the following steps:
when the access verification information is identity information, directly matching a decoding label and an interactive design corresponding to the access verification information, and completing data transmission with the equipment by using the decoding label and the interactive design;
when the access verification information is a data frame with identity information, the verification information is converted into an identifiable format by using the decoding label, then the interactive design corresponding to the verification information is matched, and the data transmission with the equipment is completed by using the decoding label and the interactive design;
generating a control instruction of the equipment according to the decoding label and the interactive design;
acquiring control information and matching a control instruction corresponding to the control information;
and controlling the equipment by using the control instruction.
2. The method of claim 1, wherein generating the transcoding tag corresponding to the device data protocol according to the packet feature comprises at least one of:
generating a decoding label corresponding to the TCP protocol of the equipment according to the message characteristics;
generating a decoding label corresponding to the equipment UDP protocol according to the message characteristics;
generating a decoding label corresponding to the MQTT protocol of the equipment according to the message characteristics;
generating a decoding label corresponding to the LWM2M protocol of the equipment according to the message characteristics;
and generating a decoding label corresponding to the HTTP protocol of the equipment according to the message characteristics.
3. The method of claim 1, wherein the data specification comprises: the data transmission method comprises a splitting rule and a subdata specification for splitting a transmission data packet into a plurality of subdata packets and a merging rule for splicing the plurality of subdata packets into the transmission data packet.
4. The method of claim 1, further comprising: and combining a plurality of the control instructions into a control instruction group, and executing a set of control actions matched with the equipment by using the control instruction group.
5. The method of claim 1, further comprising: and combining the control instruction groups of the plurality of devices into a control instruction group, and performing collective control on the plurality of devices by using the control instruction group.
6. A data transmission device based on the Internet of things is characterized by comprising:
a message data acquisition module, configured to acquire device message characteristics, where the message characteristics include: a device message framework; a device message structure; a device message data format; a device function code; equipment conversion relation; a device start end identification feature; the equipment checking mode is that the equipment starting and ending identification features are the equipment message starting character and ending character;
a connection data acquisition module for acquiring connection characteristics of the device, the connection characteristics including: a connection protocol type of the device; connection real-time characteristics of the device; logging characteristics of the equipment, wherein the real-time characteristics are the real-time performance of a connection mode, network delay and an error rate; the login feature is interaction for confirming the type and the authority of the equipment after the connection is established;
a decoding label generating module, configured to generate a decoding label corresponding to the device according to the packet feature, where the decoding label is used to convert a device data protocol and convert data protocols of different devices into a readable form;
the interactive design generation module is used for generating an interactive design corresponding to the equipment connection according to the connection characteristics, the interactive design is used for unifying interactive rules of the equipment and the network service platform, and the interactive design unifies the interactive rules initiated by the equipment or the platform; the interactive design is also used for unifying whether the initiator and the receiver respond or not and data specifications of the response; the interactive design is also used for unifying data communication interactive modes of equipment and network services and unifying unpacking rules, splicing rules and merging rules of data;
the matching module is used for matching a decoding label corresponding to the access verification information of the equipment according to the access verification information of the equipment, and matching an interactive design corresponding to the access verification information of the equipment according to the access verification information of the equipment;
the analysis module is used for analyzing the data received from the equipment according to the matched decoding label;
a data transmission module for completing data transmission with the device using the decoding label and the interactive design, the data transmission module comprising: the direct data transmission module is used for directly matching a decoding label and an interactive design corresponding to the access authentication information when the access authentication information is identity information, and completing data transmission with the equipment by using the decoding label and the interactive design; the indirect data transmission module is used for converting the verification information into an identifiable format by using the decoding label when the access verification information is a data frame with identity information, matching an interactive design corresponding to the verification information, and completing data transmission with the equipment by using the decoding label and the interactive design;
the control instruction generating module is used for generating a control instruction of the equipment according to the decoding label and the interactive design;
the control command matching module is used for acquiring control information and matching a control command corresponding to the control information;
and the equipment single-instruction control module is used for controlling the equipment by using the control instruction.
7. The apparatus of claim 6, wherein the transcoding tag generating module comprises at least one of:
a TCP protocol decoding label generating unit, configured to generate a decoding label corresponding to the TCP protocol of the device according to the message characteristic;
a UDP protocol decoding label generating unit, configured to generate a decoding label corresponding to the UDP protocol of the device according to the message characteristics;
the MQTT protocol decoding label generating unit is used for generating a decoding label corresponding to the MQTT protocol of the equipment according to the message characteristics;
an LWM2M protocol decoding label generating unit, configured to generate a decoding label corresponding to the LWM2M protocol of the device according to the packet feature;
and the HTTP decoding label generating unit is used for generating a decoding label corresponding to the equipment HTTP according to the message characteristics.
8. The apparatus of claim 6, wherein the data specification comprises: the data transmission method comprises a splitting rule and a subdata specification for splitting a transmission data packet into a plurality of subdata packets and a merging rule for splicing the plurality of subdata packets into the transmission data packet.
9. The apparatus of claim 6, further comprising:
the control instruction group generating module is used for combining a plurality of control instructions into a control instruction group;
the control instruction group matching module is used for acquiring control information and matching a control instruction group corresponding to the control information;
and the equipment multi-instruction control module is used for executing a group of control actions matched with the equipment by utilizing the control instruction group.
10. The apparatus of claim 6, further comprising:
the control instruction group generating module is used for combining the control instruction groups of the plurality of devices into a control instruction group;
the control instruction group matching module is used for acquiring control information and matching a control instruction group corresponding to the control information;
and the multi-device instruction control module is used for collectively controlling the plurality of devices by utilizing the control instruction group.
11. A computer storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-5.
12. A terminal comprising a memory, a display, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the program.
CN201910696140.XA 2019-07-30 2019-07-30 Data transmission method and device based on Internet of things, storage medium and terminal Active CN110417783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910696140.XA CN110417783B (en) 2019-07-30 2019-07-30 Data transmission method and device based on Internet of things, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910696140.XA CN110417783B (en) 2019-07-30 2019-07-30 Data transmission method and device based on Internet of things, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110417783A CN110417783A (en) 2019-11-05
CN110417783B true CN110417783B (en) 2020-06-19

Family

ID=68364244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910696140.XA Active CN110417783B (en) 2019-07-30 2019-07-30 Data transmission method and device based on Internet of things, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110417783B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572799B (en) * 2020-04-29 2023-04-07 北京金山云网络技术有限公司 Method and device for accessing equipment to control platform and server
CN111726769B (en) * 2020-06-29 2021-07-06 南方电网数字电网研究院有限公司 Communication system, method and device for miniature intelligent sensor
CN111858373A (en) * 2020-07-28 2020-10-30 杭州妙联物联网技术有限公司 Internet of things application testing method based on dynamic simulation control panel serial port protocol
CN111970353B (en) * 2020-08-12 2024-08-09 北京轻停网络科技有限公司 Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform
CN112187583B (en) * 2020-09-30 2022-03-25 绿盟科技集团股份有限公司 Method, device and storage medium for recognizing action information in private industrial control protocol
CN112714193B (en) * 2021-03-26 2021-07-13 深圳佳兆业科技集团有限公司 Community data processing system, method, device and equipment based on Internet of things platform
CN113572257B (en) * 2021-06-10 2023-11-03 中国电力科学研究院有限公司 Protocol and model matching-based power distribution Internet of things side-end interaction method and system
CN113872963B (en) * 2021-09-26 2023-09-29 中水北方勘测设计研究有限责任公司 Method and system for rapidly analyzing message protocol based on free label splicing technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826997A (en) * 2010-04-16 2010-09-08 深圳市共济科技有限公司 Communication method of newly accessed intelligent equipment, device and monitoring system
CN103747004A (en) * 2014-01-19 2014-04-23 樊建 Realizing method of internet of things communication protocol
KR20150086217A (en) * 2015-07-07 2015-07-27 주식회사 쥬크인터내셔널 User define pattern system for wireless accessory
CN108769109A (en) * 2018-04-13 2018-11-06 西安电子科技大学 Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data
CN110012031A (en) * 2019-04-26 2019-07-12 中国电子科技集团公司第二十九研究所 Data message is general to automatically parse method and storage method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639729A (en) * 2019-01-16 2019-04-16 北京科技大学 A kind of dynamic game method and device of internet of things oriented intimidation defense resource allocation
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826997A (en) * 2010-04-16 2010-09-08 深圳市共济科技有限公司 Communication method of newly accessed intelligent equipment, device and monitoring system
CN103747004A (en) * 2014-01-19 2014-04-23 樊建 Realizing method of internet of things communication protocol
KR20150086217A (en) * 2015-07-07 2015-07-27 주식회사 쥬크인터내셔널 User define pattern system for wireless accessory
CN108769109A (en) * 2018-04-13 2018-11-06 西安电子科技大学 Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data
CN110012031A (en) * 2019-04-26 2019-07-12 中国电子科技集团公司第二十九研究所 Data message is general to automatically parse method and storage method

Also Published As

Publication number Publication date
CN110417783A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110417783B (en) Data transmission method and device based on Internet of things, storage medium and terminal
CN110351257B (en) Distributed Internet of things security access system
EP2669802B1 (en) Facilitating communication between enterprise software applications
CN110855680B (en) Internet of things equipment docking method and device
CN111552568B (en) Cloud service calling method and device
CN110809026B (en) File processing method and device, electronic equipment and storage medium
CN113489805B (en) Butt joint method, device, equipment and storage medium of cloud desktop system
CN105302564B (en) Network OA service control and implementation method
CN105530277A (en) Method and device for cooperative work of devices
CN108833578A (en) The method and relevant device of duplex communication are carried out based on FIFO name pipeline
CN103973763A (en) Terminal control system and gateway
KR102025631B1 (en) Gateway server for relaying between iot device on non-tcp/ip network and iot server based on onem2m and method thereof
CN117336035A (en) Management coordination method of side equipment based on gateway of Internet of things
CN108989157B (en) Method and device for controlling intelligent equipment
CN104426715A (en) Distributed testing tool control method
CN105323128A (en) Method, device and system for connecting front-end device to server
CN113949728B (en) Method for synchronizing different platform devices, first platform and second platform
CN115514771A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN115658218A (en) Method, device, equipment and storage medium for edge equipment to access cloud
CN114979212A (en) Agent service construction method, device and system for equipment to access Internet of things platform
CN105357287B (en) The mobile sms service end of compatible SNMP and SMI-S a kind of and system
CN114885012A (en) System access method and system of Internet of things platform
CN114125732A (en) Message processing method and device, storage medium and electronic equipment
CN104635661A (en) Data transmission device and data transmission method
KR20200032380A (en) Apparatus and method for connecting chatbot

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