CN110417783A - A kind of data transmission method based on Internet of Things, device, storage medium and terminal - Google Patents

A kind of data transmission method based on Internet of Things, device, storage medium and terminal Download PDF

Info

Publication number
CN110417783A
CN110417783A CN201910696140.XA CN201910696140A CN110417783A CN 110417783 A CN110417783 A CN 110417783A CN 201910696140 A CN201910696140 A CN 201910696140A CN 110417783 A CN110417783 A CN 110417783A
Authority
CN
China
Prior art keywords
equipment
data
label
decoding
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910696140.XA
Other languages
Chinese (zh)
Other versions
CN110417783B (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.)
Hua Yuan Science And Technology Ltd Of Beijing China Telecom
Original Assignee
Hua Yuan Science And Technology Ltd Of Beijing China Telecom
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 Hua Yuan Science And Technology Ltd Of Beijing China Telecom filed Critical Hua Yuan Science And Technology Ltd Of Beijing China Telecom
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

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 kind of data transmission method based on Internet of Things, device, storage medium and terminal, data transmission method includes: the message characteristic and connection features for obtaining equipment;Decoding label corresponding with the equipment is generated according to the message characteristic, generates interaction design corresponding with equipment connection according to the connection features;Decoding label corresponding with the equipment is matched according to the access verification information of the equipment, corresponding interaction design is matched according to the access verification information of the equipment;According to the matched decoding data of the tag resolution received from the equipment;It completes to transmit with the device data using the decoding label and the interaction design.By establish decoding label solve the problems, such as different communication technology, different transmission standard, different communication message Internet of Things access server.Solve different communication technology, different transmission standards, the Internet of Things interaction problems of different communication message by establishing interaction design.

Description

A kind of data transmission method based on Internet of Things, device, storage medium and terminal
Technical field
The present invention relates to internet of things field more particularly to a kind of data transmission methods based on Internet of Things, device, storage Deposit medium and terminal.
Background technique
With the development of technology of Internet of things, more and more sensors and internet of things equipment need to access cloud platform.Equipment Data are exchanged between platform to need to be coded and decoded using communication protocol.Lack that can be compatible with multiple industries a variety of at present The decoding method of communication message format.The decoding method of existing generally existing incompatibility only has resolution rules, lacks Few bidirectional communication link maintenance and interaction mechanism.
Prior art cannot achieve data sharing, and the mode for fully relying on equipment " station is multiple " realizes multiple platforms Data it is synchronous.Since the communication link quantity of equipment increases, and without friendly link maintenance.Equipment post and telecommunication tariff and consumption Electricity increases again, since equipment end does not have operating system usually because of single link maintenance failure other link datas by caused by Transmission is obstructed.The data synchronization scheme of prior art is unable to satisfy the unified requirement of each platform data.
Summary of the invention
(1) goal of the invention
The object of the present invention is to provide a kind of data transmission method based on Internet of Things, device, storage medium and terminal with Solve the problems, such as different communication technology, different transmission standard, different communication message Internet of Things access server need multiplex roles.
(2) technical solution
To solve the above problems, the first aspect of the present invention provides a kind of data transmission method based on Internet of Things, packet It includes: obtaining the message characteristic and connection features of equipment;Decoding label corresponding with the equipment is generated according to the message characteristic, Interaction design corresponding with equipment connection is generated according to the connection features;According to the access verification information of the equipment With decoding label corresponding with the equipment, corresponding interaction design is matched according to the access verification information of the equipment; According to the matched decoding data of the tag resolution received from the equipment;Utilize the decoding label and the interaction design It completes to transmit with the device data.
Further, the acquisition equipment message feature includes at least one of following: obtaining equipment message frame;It obtains Take equipment message structure;Obtain equipment message data format;Obtain functions of the equipments code;Obtain equipment conversion relation;Obtain equipment State pause judgments identification characteristics;Obtain equipment verification mode.
Further, described to include according to message characteristic generation decoding label corresponding with the device data agreement It is at least one of following: decoding label corresponding with the equipment Transmission Control Protocol is generated according to the message characteristic;According to described Message characteristic generates decoding label corresponding with the equipment udp protocol;It is generated and the equipment according to the message characteristic The corresponding decoding label of MQTT agreement;Decoding label corresponding with the equipment LWM2M agreement is generated according to the message characteristic; Decoding label corresponding with the equipment http protocol is generated according to the message characteristic.
Further, further includes: obtain the connection features of the equipment;It is generated and the equipment according to the connection features Connect corresponding interaction design;Corresponding interaction design is matched according to the access verification information of the equipment;Using described It decodes label and the interaction design is completed to transmit with the device data.
Further, the connection features for obtaining the equipment include at least one of following: obtaining the equipment Connection protocol type;Obtain the connection real-time characteristic of the equipment;Obtain the login feature of the equipment.
Further, described to carry out data transmission wrapping with the equipment using the decoding label and the interaction design It includes: when the access verification information is identity information, directly matching corresponding decoding label and interaction design, utilize institute It states decoding label and the interaction design is completed to transmit with the device data;When the access verification information is to believe with identity When the data frame of breath, the verification information is converted into using the decoding label to can recognize format, then match corresponding Interaction design is completed to transmit with the device data using the decoding label and the interaction design.
Further, the interaction design generates the number with device data transmission according to the connection features of the equipment According to specification.
Further, the data standard includes: and will transmit data packet to split into the fractionation rule of multiple subdata packets, son Data standard and the merging rule that the multiple subdata packet is spliced into the transmission data packet.
Further, further includes: the manipulation instruction of the equipment is generated according to the decoding label and the interaction design; Manipulation information is obtained, and matches manipulation instruction corresponding with the manipulation information;The equipment is controlled using the manipulation instruction.
Further, further includes: multiple manipulation instructions are combined into manipulation instruction group, utilize the manipulation instruction group One group of matching control action is executed to the equipment.
Further, further includes: the manipulation instruction group of multiple equipment is combined into manipulation instruction group, utilizes the behaviour It controls order bloc and collective's control is carried out to the multiple equipment.
According to another aspect of the present invention, a kind of data transmission device based on Internet of Things is provided, comprising: message data Acquisition module, for obtaining equipment message feature;Data acquisition module is connected, for obtaining the connection features of the equipment;It translates Code tag generation module, for generating decoding label corresponding with the equipment according to the message characteristic;Interaction design generates Module, for generating interaction design corresponding with equipment connection according to the connection features;Matching module, for according to institute The access verification information for stating equipment matches corresponding decoding label, according to the access verification information of the equipment, and matches Corresponding interaction design;Parsing module, for according to the matched decoding number of the tag resolution received from the equipment According to;Data transmission module, for completing to transmit with the device data using the decoding label and the interaction design.
Further, the message data acquisition module includes at least one of following: message frame acquisition unit, is used In acquisition equipment message frame;Message structure acquisition unit, for obtaining equipment message structure;The acquisition of message data format is single Member, for obtaining equipment message data format;Function code acquisition unit, for obtaining functions of the equipments code;Conversion relation acquisition is single Member, for obtaining equipment conversion relation;State pause judgments identification characteristics collection unit, for obtaining equipment state pause judgments identification characteristics; Verification mode acquisition unit, for obtaining equipment verification mode.
Further, the decoding tag generation module includes at least one of following: Transmission Control Protocol decodes label and generates Unit, for generating decoding label corresponding with the equipment Transmission Control Protocol according to the message characteristic;Udp protocol decodes label Generation unit, for generating decoding label corresponding with the equipment udp protocol according to the message characteristic;The decoding of MQTT agreement Label generation unit, for generating decoding label corresponding with the equipment MQTT agreement according to the message characteristic;LWM2M association View decoding label generation unit, for generating decoding label corresponding with the equipment LWM2M agreement according to the message characteristic; Http protocol decodes label generation unit, for generating decoding corresponding with the equipment http protocol according to the message characteristic Label.
Further, further includes: connection data acquisition module, for obtaining the connection features of the equipment;Interaction design Generation module, for generating interaction design corresponding with equipment connection according to the connection features;Interaction design matches mould Block for the access verification information according to the equipment, and matches corresponding interaction design;Data transmission module is used for It completes to transmit with the device data using the decoding label and the interaction design.
Further, the connection data acquisition module includes at least one of following: connection protocol type acquires mould Block, for obtaining the connection protocol type of the equipment;Real-time characteristic acquisition module is connected, for obtaining the connection of the equipment Real-time characteristic;Login feature acquisition module, for obtaining the login feature of the equipment.
Further, the data transmission module includes: immediate data transmission module, for working as the access verification information When for identity information, corresponding decoding label and interaction design are directly matched, the decoding label and the interaction are utilized Design is completed to transmit with the device data;Indirect data transmission module, for being with identity when the access verification information When the data frame of information, the verification information is converted into using the decoding label to can recognize format, then match and be corresponding to it Interaction design, utilize the decoding label and the interaction design to complete to transmit with the device data.
Further, the data transmission module using interaction design according to the connection features of the equipment generate with it is described The data standard of device data transmission.
Further, the data standard includes: and will transmit data packet to split into the fractionation rule of multiple subdata packets, son Data standard and the merging rule that the multiple subdata packet is spliced into the transmission data packet.
Further, further includes: manipulation instruction generation module, for raw according to the decoding label and the interaction design At the manipulation instruction of the equipment;Manipulation command matching module for obtaining manipulation information, and matches and the manipulation information pair The manipulation instruction answered;Tables of equipment instruction control module, for controlling the equipment using the manipulation instruction.
Further, further includes: module is seen in the generation of manipulation instruction group, for multiple manipulation instructions to be combined into manipulation Instruction group;Manipulation instruction group matching module for obtaining manipulation information, and matches manipulation instruction corresponding with the manipulation information Group;Equipment multiple instructions control module, for executing one group of matching manipulation to the equipment using the manipulation instruction group Movement.
Further, further includes: manipulation instruction group's generation module, for combining the manipulation instruction group of multiple equipment At manipulation instruction group;Manipulation instruction group's matching module for obtaining manipulation information, and matches behaviour corresponding with the manipulation information Control order bloc;More device directive control modules, for carrying out collective's control to the multiple equipment using the manipulation instruction group.
According to another aspect of the invention, a kind of computer storage medium is provided, calculating is stored on the storage medium Machine program, when described program is executed by processor the step of any one of realization above scheme the method.
According to another aspect of the invention, a kind of terminal is provided, including memory, display, processor and is stored in institute The computer program that can be run on memory and on the processor is stated, the processor is realized above-mentioned when executing described program The step of any one of scheme the method.
(3) beneficial effect
Above-mentioned technical proposal of the invention has following beneficial technical effect:
By establish decoding label solve different communication technology, different transmission standard, different communication message Internet of Things Access server needs the problem of multiplex roles, supports any type packet parsing, can access using TCP/UDP/MQTT/ The all devices of LWM2M/HTTP agreement connection;Automatic identification equipment access system, and safeguard connection.
Detailed description of the invention
Fig. 1 is the flow chart of the data transmission method of first embodiment according to the present invention;
Fig. 2 is the schematic diagram at the data transmission device interface of an optional embodiment according to the present invention;
Fig. 3 is the schematic diagram of the interaction design module operation of an optional embodiment according to the present invention;
Fig. 4 is the schematic diagram of the decoding label model operation of an optional embodiment according to the present invention.
Specific embodiment
In order to make the objectives, technical solutions and advantages of the present invention clearer, With reference to embodiment and join According to attached drawing, the present invention is described in more detail.It should be understood that these descriptions are merely illustrative, and it is not intended to limit this hair Bright range.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid this is unnecessarily obscured The concept of invention.
Obviously, described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on the present invention In embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
As long as in addition, the non-structure each other of technical characteristic involved in invention described below different embodiments It can be combined with each other at conflict.
Fig. 1 is the flow chart of the data transmission method of first embodiment according to the present invention.
In the embodiment of the present invention in a first aspect, providing a kind of data transmission method based on Internet of Things, comprising:
S1: equipment message feature and connection features are obtained;Optionally, obtain equipment message feature include in following at least It is a kind of: to obtain equipment message frame;Obtain equipment message structure;Obtain equipment message data format;Obtain functions of the equipments code;It obtains Take equipment conversion relation;Obtain equipment state pause judgments identification characteristics;Obtain equipment verification mode.Wherein, equipment state pause judgments mark Knowledge is characterized in equipment message starting character, end mark feature.Optionally, obtain equipment connection features include in following at least one Kind: obtain the connection protocol type of equipment;Obtain the connection real-time characteristic of equipment;Obtain the login feature of equipment.Wherein, in real time It is characterized in the real-time of connection type, network delay, the bit error rate;Login feature is after establishing connection for confirming equipment class The interaction of type, permission.
S2: decoding label corresponding with equipment is generated according to message characteristic, is generated according to the connection features and is set with described It is standby to connect corresponding interaction design;Optionally, generating decoding label corresponding with device data agreement according to message characteristic includes It is at least one of following: decoding label corresponding with equipment Transmission Control Protocol is generated according to message characteristic;It is generated according to message characteristic Decoding label corresponding with equipment udp protocol;Decoding label corresponding with equipment MQTT agreement is generated according to message characteristic;According to Message characteristic generates decoding label corresponding with equipment LWM2M agreement;It is generated according to message characteristic corresponding with equipment http protocol Decoding label.Decoding label is the transformation mechanism of device data agreement, and the data protocol of distinct device is converted into readable shape Formula.
S3: decoding label corresponding with equipment is matched according to the access verification information of equipment, according to the access of the equipment Verification information matches corresponding interaction design;
S4: according to matched decoding data of the tag resolution received from equipment;
S5: it completes to transmit with the device data using the decoding label and the interaction design.It specifically includes: when connecing When to enter verification information be identity information, corresponding decoding label and interaction design are directly matched, utilizes and decodes label and friendship Mutually design is completed to transmit with device data;When accessing verification information is the data frame with identity information, decoding label is utilized Verification information is converted into can recognize format, then matches corresponding interaction design, it is complete using decoding label and interaction design It is transmitted at device data.Optionally, the interaction design generates and the device data according to the connection features of the equipment The data standard of transmission.Optionally, the data standard includes: the fractionation rule that transmission data packet is split into multiple subdata packets Then, subdata specification and the merging that the multiple subdata packet is spliced into the transmission data packet are regular.Interaction design is one A tool for freely designing equipment and network service platform rules of interaction, the tool can be designed with unified mode and be sent out by equipment Rise or rules of interaction that platform is initiated, which can design the data standard of initiator, and whether design the response of recipient and The data standard of response, the specification of the tool design can describe the data communication interactive mode of equipment and network service extensively, tool Body, which can be split into multiple data packets with the big data packet of design data initiator and sent, and design the hair of every packet Data standard is sent, which can splice rule, and the merging of design data packet with multiple data packets of design data recipient Rule.
The above method solves different communication technology, different transmission standards, different communication message by establishing decoding label Internet of Things access server the problem of needing multiplex roles, support any type packet parsing, can access using TCP/UDP/ The all devices of MQTT/LWM2M/HTTP agreement connection;Automatic identification equipment access system, and safeguard connection.It is handed over by establishing Mutually design solves different communication technology, different transmission standards, the Internet of Things interaction problems of different communication message.It realizes automatic It identifies equipment access system, and safeguards connection.
Optionally, further includes: according to the manipulation instruction of decoding label and interaction design generating device;Manipulation information is obtained, And match manipulation instruction corresponding with manipulation information;Equipment is controlled using manipulation instruction.The operating process can be by that will manipulate Instruction is arranged to virtual gateway, and virtual gateway obtains manipulation information, carries out equipment manipulation.
Optionally, further includes: multiple manipulation instructions are combined into manipulation instruction group, equipment is executed using manipulation instruction group One group of matching control action.
Optionally, further includes: the manipulation instruction group of multiple equipment is combined into manipulation instruction group, group is right using manipulation instruction Multiple equipment carries out collective's control.
In the other side of the embodiment of the present invention, a kind of data transmission device based on Internet of Things is provided, comprising: message Data acquisition module, for obtaining equipment message feature;Data acquisition module is connected, the connection for obtaining the equipment is special Sign;Tag generation module is decoded, for generating decoding label corresponding with the equipment according to the message characteristic;Interaction design Generation module, for generating interaction design corresponding with equipment connection according to the connection features;Matching module is used for root Corresponding decoding label is matched according to the access verification information of the equipment, according to the access verification information of the equipment, and Match corresponding interaction design;Parsing module is used for according to the matched decoding tag resolution received from the equipment Data;Data transmission module, for completing to transmit with the device data using the decoding label and the interaction design. Optionally, the data transmission module is generated according to the connection features of the equipment using interaction design and is passed with the device data Defeated data standard.Optionally, the data standard includes: the fractionation rule that transmission data packet is split into multiple subdata packets Then, subdata specification and the merging that the multiple subdata packet is spliced into the transmission data packet are regular.Interaction design is one A tool for freely designing equipment and network service platform rules of interaction, the tool can be designed with unified mode and be sent out by equipment Rise or rules of interaction that platform is initiated, which can design the data standard of initiator, and whether design the response of recipient and The data standard of response, the specification of the tool design can describe the data communication interactive mode of equipment and network service extensively, tool Body, which can be split into multiple data packets with the big data packet of design data initiator and sent, and design the hair of every packet Data standard is sent, which can splice rule, and the merging of design data packet with multiple data packets of design data recipient Rule.
Optionally, message data acquisition module includes at least one of following: message frame acquisition unit, for obtaining Equipment message frame;Message structure acquisition unit, for obtaining equipment message structure;Message data format acquisition unit, is used for Obtain equipment message data format;Function code acquisition unit, for obtaining functions of the equipments code;Conversion relation acquisition unit, is used for Obtain equipment conversion relation;State pause judgments identification characteristics collection unit, for obtaining equipment state pause judgments identification characteristics;Verification mode Acquisition unit, for obtaining equipment verification mode.
Optionally, decoding tag generation module includes at least one of following: Transmission Control Protocol decodes label generation unit, For generating decoding label corresponding with equipment Transmission Control Protocol according to message characteristic;Udp protocol decodes label generation unit, is used for Decoding label corresponding with equipment udp protocol is generated according to message characteristic;MQTT agreement decodes label generation unit, is used for basis Message characteristic generates decoding label corresponding with equipment MQTT agreement;LWM2M agreement decodes label generation unit, for according to report Literary feature generates decoding label corresponding with equipment LWM2M agreement;Http protocol decodes label generation unit, for according to message Feature generates decoding label corresponding with equipment http protocol.
Optionally, connection data acquisition module includes at least one of following: connection protocol type acquisition module is used for Obtain the connection protocol type of equipment;Real-time characteristic acquisition module is connected, for obtaining the connection real-time characteristic of equipment;It logs in special Acquisition module is levied, for obtaining the login feature of equipment.
Optionally, data transmission module includes: immediate data transmission module, for being identity information when access verification information When, corresponding decoding label and interaction design are directly matched, using decoding label and interaction design is completed and device data Transmission;Indirect data transmission module, for utilizing decoding label when accessing verification information is the data frame with identity information Verification information is converted into can recognize format, then matches corresponding interaction design, it is complete using decoding label and interaction design It is transmitted at device data.
Optionally, further includes: manipulation instruction generation module, for the behaviour according to decoding label and interaction design generating device Control instruction;Manipulation command matching module for obtaining manipulation information, and matches manipulation instruction corresponding with manipulation information;Equipment Single instrction control module, for controlling equipment using manipulation instruction.
Optionally, further includes: module is seen in the generation of manipulation instruction group, for multiple manipulation instructions to be combined into manipulation instruction Group;Manipulation instruction group matching module for obtaining manipulation information, and matches manipulation instruction group corresponding with manipulation information;Equipment Multiple instructions control module, for executing one group of matching control action to equipment using manipulation instruction group.
Optionally, further includes: manipulation instruction group's generation module, for the manipulation instruction group of multiple equipment to be combined into manipulation Order bloc;Manipulation instruction group's matching module for obtaining manipulation information, and matches manipulation instruction group corresponding with manipulation information; More device directive control modules, for carrying out collective's control to multiple equipment using manipulation instruction group.
Fig. 2 is the schematic diagram at the data transmission device interface of an optional embodiment according to the present invention.
As shown in Fig. 2, in the other side of the embodiment of the present invention, a kind of equipment and platform universal interaction system are provided, It include: decoding label model, the data protocol and platform for establishing equipment can recognize the mutual conversion of format;Interaction design mould Block does data interaction design with what platform was arranged for building equipment;Virtual gateway module, for by the data bridge in agreement source It is connected in normal form messaging protocol;By decoding label model, interaction design module and virtual gateway module Unified Device and platform it Between data interaction.In equipment and platform interactive process, mechanism and template are formulated by interaction design module, it is ensured that interaction Validity, then by decoding the format of the interactive information of label model Unified Device and platform, after the completion of interaction, in needs When by interactive information by virtual gateway module, interactive information is sent to other platforms, thus complete equipment with it is multi-platform Interaction.
Specifically, formulating mechanism and template by interaction design module before equipment is connect with platform.Interaction design mould Block will generate the ordering rule of a plurality of message, it is ensured that interactive validity and friendly.Then by decoding label model, to every Message content carries out specific setting to realize that platform analyzing device uploads the information of message and reverting equipment meets its message lattice The information of formula.The close friend for completing to can be realized between equipment and platform after the setting of interaction design module and decoding label model hands over Mutually.To realize that single device is shared in multiple platform datas, increase virtual gateway module, void on the platform that equipment is directly connected to Quasi- gateway module can be by information point that is completing by interaction design and decoding label model solution and meeting platform data format It enjoys to multiple platforms.
It optionally, further include virtual device modules and igniter module;Virtual device modules are for establishing multi-platform data Shared, igniter module is used to build equipment and connect with platform and externally alarm.
It optionally, further include Internet of Things connection module, object model module, object engineering module and polymers list module;Internet of Things connection module For defining the access protocol of equipment;Object model module be used for quote Internet of Things connect in element definition equipment function;Object engineering Module is used to quote the product in object model to form a practical application;Polymers list module is for showing and operating equipment.
As shown in figure 3, interaction design is the tool for doing data interaction design for building equipment and platform agreement, it can basis Promoter, response mechanism are defined more packet transmission.Interaction design can build a variety of interaction mechanisms (such as hydrological monitoring data M1, M2, M3, M4, M5 in transmission protocol), to meet the transmission reliability requirement of different type equipment.It is to realize platform and more The key of reliable communication, friendly transmission between kind equipment.
As shown in figure 4, decoding label is mutual between equipment private data agreement and the recognizable format of platform for building Crossover tool.Data type conversion and encoding and decoding rule settings, Ke Yitong can be carried out according to different data protocols by decoding label Shi Shixian plurality of devices upstream data platform can recognize that platform downlink data plurality of devices can recognize.Decoding label is to realize to be somebody's turn to do System reusable, multiple access, the important ring extensively connected.
Virtual gateway is the tool for being MQTT by the Data Bridge in the source TCP/UDP/LWM2M.It can be with by virtual gateway Realize data interchange interconnection between the equipment based on TCP/UDP/LWM2M/MQTT difference connection type.It can be with by virtual gateway It realizes that the tidal data recovering of (server address) is directed toward in the different connections of TCP/UDP/LWM2M/MQTT connection, is to realize five Wan Tailian Connect the place of several keys.
Virtual unit is data (MQTT virtual gateway, the third party database, third party API) conversion for obtaining third party At the tool of the access point of the system, also can provide to third party database propelling data and API propelling data service.As automatically It stands the crawl and write-in of database, the acquisition of Internet of Things network card status can be realized by virtual unit.
Internet of Things connect be the system underlying protocol library, for defining the access protocol of equipment.Internet of Things connect according to physical device Access requires (device type, transmission mode, transport protocol, interaction mechanism etc.) can define several services, event, three kinds of attribute Basic element.Service and event are the primary full content completely interacted, and attribute is that one is carried in service and attribute completely Data.Popular says, a uplink message and its response are exactly an event, and a downlink message and its response are exactly a clothes Business, and attribute is one of several useful datas carried in upstream or downstream message.
Object model is the middle layer product library of the system, by quote Internet of Things connect in element definition equipment function.Object mould Type assembles a true product or virtual product by the multiple services of addition, event, attribute.Popular says, an object Corresponding model is exactly a product, can be according to the feature free splicing of this product itself, such as by rainfall, water level, image Three elements can be spliced into precipitation station, gaging station, image station, rainwater station, rainwater image station.
Object engineering is the top layer project library of the system, forms a practical application by the product in reference object model. Object engineering can add the product of multiple and different types into a project, and several triggers can be set and be allowed to association report It is alert.A precipitation station, a gaging station, an early warning broadcast are such as added in engineering, if rainfall can be set more than after threshold value River water level is more than the automatic broadcasting alert notification of rank starting early warning broadcast of taking care.
Polymers list is shown for access device practical in the system and operation, is the instantiation of object engineering.Equipment build a station with Project in object engineering is added for unit, and trigger therein can be selected according to practical situations and adjusts trigger In threshold value and output result.If a same engineering is used in the village Wang Cun He Li, 30mm short message is reached with rainfall in Wang Cunke and is led to Know village director " director comrade please shift elderly person of no family ", Li Cunke with rainfall reach 35mm notify headmaster " Li Laoshi, Please organize the student and the employee's hedging that interweaves ".
At the another aspect of the embodiment of the present invention, a kind of computer storage medium is provided, calculating is stored on storage medium Machine program, the step of any one of above-described embodiment method is realized when program is executed by processor.
At the another aspect of the embodiment of the present invention, a kind of terminal, including memory, display, processor and storage are provided On a memory and the computer program that can run on a processor, processor are realized any in above-described embodiment when executing program The step of one method.
The present invention is directed to protect a kind of data transmission method based on Internet of Things, comprising: obtain equipment message characteristic and Connection features;Generate corresponding with equipment decoding label according to the message characteristic, generated according to the connection features and The equipment connects corresponding interaction design;Decoding corresponding with the equipment is matched according to the access verification information of the equipment Label matches corresponding interaction design according to the access verification information of the equipment;According to the matched decoding label Parse the data received from the equipment;It completes to pass with the device data using the decoding label and the interaction design It is defeated.The Internet of Things access for solving different communication technology, different transmission standards, different communication message by establishing decoding label takes The problem of business device.
By establish interaction design solve different communication technology, different transmission standard, different communication message Internet of Things Interaction problems.
It should be understood that above-mentioned specific embodiment of the invention is used only for exemplary illustration or explains of the invention Principle, but not to limit the present invention.Therefore, that is done without departing from the spirit and scope of the present invention is any Modification, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.In addition, appended claims purport of the present invention Covering the whole variations fallen into attached claim scope and boundary or this range and the equivalent form on boundary and is repairing Change example.

Claims (22)

1. a kind of data transmission method based on Internet of Things characterized by comprising
Obtain the message characteristic and connection features of equipment;
Decoding label corresponding with the equipment is generated according to the message characteristic, is generated according to the connection features and is set with described It is standby to connect corresponding interaction design;
Decoding label corresponding with the equipment is matched according to the access verification information of the equipment, according to the access of the equipment Verification information matches corresponding interaction design;
According to the matched decoding data of the tag resolution received from the equipment;
It completes to transmit with the device data using the decoding label and the interaction design.
2. the method according to claim 1, wherein the acquisition equipment message feature include in following at least It is a kind of:
Obtain equipment message frame;
Obtain equipment message structure;
Obtain equipment message data format;
Obtain functions of the equipments code;
Obtain equipment conversion relation;
Obtain equipment state pause judgments identification characteristics;
Obtain equipment verification mode.
3. the method according to claim 1, wherein described generate and the number of devices according to the message characteristic Include at least one of following according to the corresponding decoding label of agreement:
Decoding label corresponding with the equipment Transmission Control Protocol is generated according to the message characteristic;
Decoding label corresponding with the equipment udp protocol is generated according to the message characteristic;
Decoding label corresponding with the equipment MQTT agreement is generated according to the message characteristic;
Decoding label corresponding with the equipment LWM2M agreement is generated according to the message characteristic;
Decoding label corresponding with the equipment http protocol is generated according to the message characteristic.
4. the method according to claim 1, wherein the connection features for obtaining the equipment include in following At least one:
Obtain the connection protocol type of the equipment;
Obtain the connection real-time characteristic of the equipment;
Obtain the login feature of the equipment.
5. the method according to claim 1, wherein it is described using the decoding label and the interaction design and The equipment carries out data transmission
When the access verification information is identity information, corresponding decoding label and interaction design are directly matched, is utilized The decoding label and the interaction design are completed to transmit with the device data;
When the access verification information is data frame with identity information, using the decoding label by the verification information It is converted into can recognize format, then matches corresponding interaction design, completed using the decoding label and the interaction design It is transmitted with the device data.
6. the method according to claim 1, wherein the interaction design is raw according to the connection features of the equipment At the data standard transmitted with the device data.
7. according to the method described in claim 6, it is characterized in that, the data standard includes: to split into transmission data packet Fractionation rule, subdata specification and the conjunction that the multiple subdata packet is spliced into the transmission data packet of multiple subdata packets And rule.
8. method according to claim 1-7, which is characterized in that further include:
The manipulation instruction of the equipment is generated according to the decoding label and the interaction design;
Manipulation information is obtained, and matches manipulation instruction corresponding with the manipulation information;
The equipment is controlled using the manipulation instruction.
9. according to the method described in claim 8, it is characterized by further comprising: multiple manipulation instructions are combined into manipulation Instruction group executes one group of matching control action to the equipment using the manipulation instruction group.
10. according to the method described in claim 9, it is characterized by further comprising: by the manipulation instruction group group of multiple equipment Manipulation instruction group is synthesized, collective's control is carried out to the multiple equipment using the manipulation instruction group.
11. a kind of data transmission device based on Internet of Things characterized by comprising
Message data acquisition module, for obtaining equipment message feature;
Data acquisition module is connected, for obtaining the connection features of the equipment;
Tag generation module is decoded, for generating decoding label corresponding with the equipment according to the message characteristic;
Interaction design generation module, for generating interaction design corresponding with equipment connection according to the connection features;
Matching module is set for matching corresponding decoding label according to the access verification information of the equipment according to described Standby access verification information, and match corresponding interaction design;
Parsing module, for according to the matched decoding data of the tag resolution received from the equipment;
Data transmission module, for completing to transmit with the device data using the decoding label and the interaction design.
12. device according to claim 11, which is characterized in that the message data acquisition module include in following extremely Few one kind:
Message frame acquisition unit, for obtaining equipment message frame;
Message structure acquisition unit, for obtaining equipment message structure;
Message data format acquisition unit, for obtaining equipment message data format;
Function code acquisition unit, for obtaining functions of the equipments code;
Conversion relation acquisition unit, for obtaining equipment conversion relation;
State pause judgments identification characteristics collection unit, for obtaining equipment state pause judgments identification characteristics;
Verification mode acquisition unit, for obtaining equipment verification mode.
13. device according to claim 11, which is characterized in that the decoding tag generation module include in following extremely Few one kind:
Transmission Control Protocol decodes label generation unit, for generating translate corresponding with the equipment Transmission Control Protocol according to the message characteristic Code label;
Udp protocol decodes label generation unit, for generating translate corresponding with the equipment udp protocol according to the message characteristic Code label;
MQTT agreement decodes label generation unit, corresponding with the equipment MQTT agreement for being generated according to the message characteristic Decode label;
LWM2M agreement decodes label generation unit, corresponding with the equipment LWM2M agreement for being generated according to the message characteristic Decoding label;
Http protocol decodes label generation unit, corresponding with the equipment http protocol for being generated according to the message characteristic Decode label.
14. device according to claim 11, which is characterized in that the connection data acquisition module include in following extremely Few one kind:
Connection protocol type acquisition module, for obtaining the connection protocol type of the equipment;
Real-time characteristic acquisition module is connected, for obtaining the connection real-time characteristic of the equipment;
Login feature acquisition module, for obtaining the login feature of the equipment.
15. device according to claim 11, which is characterized in that the data transmission module includes:
Immediate data transmission module, for directly matching corresponding translate when the access verification information is identity information Code label and interaction design are completed to transmit with the device data using the decoding label and the interaction design;
Indirect data transmission module, for when the access verification information is data frame with identity information, using described The verification information is converted into can recognize format by decoding label, then matches corresponding interaction design, utilizes the decoding Label and the interaction design are completed to transmit with the device data.
16. according to the method for claim 11, which is characterized in that the data transmission module is using interaction design according to institute The connection features for stating equipment generate the data standard transmitted with the device data.
17. according to the method for claim 16, which is characterized in that the data standard includes: to split transmission data packet The transmission data packet is spliced at the fractionation rule of multiple subdata packets, subdata specification and by the multiple subdata packet Merge rule.
18. the described in any item devices of 1-17 according to claim 1, which is characterized in that further include:
Manipulation instruction generation module, the manipulation for generating the equipment according to the decoding label and the interaction design refer to It enables;
Manipulation command matching module for obtaining manipulation information, and matches manipulation instruction corresponding with the manipulation information;
Tables of equipment instruction control module, for controlling the equipment using the manipulation instruction.
19. device according to claim 18, which is characterized in that further include:
Module is seen in the generation of manipulation instruction group, for multiple manipulation instructions to be combined into manipulation instruction group;
Manipulation instruction group matching module for obtaining manipulation information, and matches manipulation instruction group corresponding with the manipulation information;
Equipment multiple instructions control module, for executing one group of matching manipulation to the equipment using the manipulation instruction group Movement.
20. device according to claim 19, which is characterized in that further include:
Manipulation instruction group's generation module, for the manipulation instruction group of multiple equipment to be combined into manipulation instruction group;
Manipulation instruction group's matching module for obtaining manipulation information, and matches manipulation instruction group corresponding with the manipulation information;
More device directive control modules, for carrying out collective's control to the multiple equipment using the manipulation instruction group.
21. a kind of computer storage medium, which is characterized in that be stored with computer program, described program on the storage medium The step of any one of claim 1-10 the method is realized when being executed by processor.
22. a kind of terminal, which is characterized in that including memory, display, processor and be stored on the memory and can be The computer program run on the processor, the processor are realized any one in claim 1-10 when executing described program The step of item the method.
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 true CN110417783A (en) 2019-11-05
CN110417783B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726769A (en) * 2020-06-29 2020-09-29 南方电网数字电网研究院有限公司 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
CN111970353A (en) * 2020-08-12 2020-11-20 北京轻停网络科技有限公司 Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform
CN112187583A (en) * 2020-09-30 2021-01-05 绿盟科技集团股份有限公司 Method, device and storage medium for recognizing action information in private industrial control protocol
CN112714193A (en) * 2021-03-26 2021-04-27 深圳佳兆业科技集团有限公司 Community data processing system, method, device and equipment based on Internet of things platform
CN113572799A (en) * 2020-04-29 2021-10-29 北京金山云网络技术有限公司 Method and device for accessing equipment to control platform and server
CN113572257A (en) * 2021-06-10 2021-10-29 中国电力科学研究院有限公司 Power distribution Internet of things edge-end interaction method and system based on protocol and model matching
CN113872963A (en) * 2021-09-26 2021-12-31 中水北方勘测设计研究有限责任公司 Message protocol rapid analysis method and system based on free label splicing technology

Citations (7)

* 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
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
CN110012031A (en) * 2019-04-26 2019-07-12 中国电子科技集团公司第二十九研究所 Data message is general to automatically parse method and storage method

Patent Citations (7)

* 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
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
CN110012031A (en) * 2019-04-26 2019-07-12 中国电子科技集团公司第二十九研究所 Data message is general to automatically parse method and storage method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572799A (en) * 2020-04-29 2021-10-29 北京金山云网络技术有限公司 Method and device for accessing equipment to control platform and server
CN111726769A (en) * 2020-06-29 2020-09-29 南方电网数字电网研究院有限公司 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
CN111970353A (en) * 2020-08-12 2020-11-20 北京轻停网络科技有限公司 Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform
CN112187583A (en) * 2020-09-30 2021-01-05 绿盟科技集团股份有限公司 Method, device and storage medium for recognizing action information in private industrial control protocol
CN112714193A (en) * 2021-03-26 2021-04-27 深圳佳兆业科技集团有限公司 Community data processing system, method, device and equipment based on Internet of things platform
CN112714193B (en) * 2021-03-26 2021-07-13 深圳佳兆业科技集团有限公司 Community data processing system, method, device and equipment based on Internet of things platform
CN113572257A (en) * 2021-06-10 2021-10-29 中国电力科学研究院有限公司 Power distribution Internet of things edge-end interaction method and system based on protocol and model matching
CN113572257B (en) * 2021-06-10 2023-11-03 中国电力科学研究院有限公司 Protocol and model matching-based power distribution Internet of things side-end interaction method and system
CN113872963A (en) * 2021-09-26 2021-12-31 中水北方勘测设计研究有限责任公司 Message protocol rapid analysis method and system based on free label splicing technology
CN113872963B (en) * 2021-09-26 2023-09-29 中水北方勘测设计研究有限责任公司 Method and system for rapidly analyzing message protocol based on free label splicing technology

Also Published As

Publication number Publication date
CN110417783B (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN110417783A (en) A kind of data transmission method based on Internet of Things, device, storage medium and terminal
CN111355780B (en) Internet of things monitoring management method and system based on block chain
CN106355319A (en) Safety risk assessment system and method
CN104169898B (en) Method and apparatus for transmitting metadata as a stream between devices using JavaScript and HTML5
CN106744111A (en) Elevator repair and maintenance management system and method based on bluetooth and Mobile Data Communication Technology
JP2019535151A (en) IoT system
CN107395773A (en) A kind of Internet of Things management method and Internet of Things management platform
CN106054766A (en) Remote monitoring, detection, maintenance and management method for fire control facilities and information system
CN104093080A (en) Intelligent television remote debugging system and method
CN104992227A (en) Intelligent order-bidding system
CN202077060U (en) Network isolation data exchanger
CN103179212A (en) Intelligent community management service method and network architecture
CN105302564B (en) Network OA service control and implementation method
CN105743751A (en) Internet of Things (IOT) system applicable to smart city system
CN106657290A (en) Broadband data communication technology-based elevator Internet-of-Things system and control method
CN206298231U (en) Elevator repair and maintenance managing device based on bluetooth and Mobile Data Communication Technology
CN103971311A (en) Reasoning drill method and system based on man-machine coordination
CN106846189A (en) A kind of intellectual property interactive management system
CN105678997A (en) Internet of Things intelligent gas meter system based on smart city system
CN106791680A (en) A kind of mobile phone remote video monitoring system in outer damage source building site
TWI608442B (en) Software definition driven cloud computing network component service assembly system
CN104376440B (en) Method is automatically confirmed that based on the dispatching of power netwoks electronics order that network is issued an order
CN109445384A (en) A kind of more apparatus control systems
CN208079095U (en) A kind of elevator long distance information integrated system
CN109271454A (en) A kind of method and the network equipment that data are synchronous

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