CN110061990A - A kind of DTU protocol extension method - Google Patents
A kind of DTU protocol extension method Download PDFInfo
- Publication number
- CN110061990A CN110061990A CN201910321565.2A CN201910321565A CN110061990A CN 110061990 A CN110061990 A CN 110061990A CN 201910321565 A CN201910321565 A CN 201910321565A CN 110061990 A CN110061990 A CN 110061990A
- Authority
- CN
- China
- Prior art keywords
- dtu
- protocol
- xml file
- extension method
- protocol extension
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
Abstract
The present invention provides a kind of DTU protocol extension method, comprising the following steps: S1: mapping generates XML file template;S2: DTU protocol configuration is updated;S3: server configuration is updated.The beneficial effects of the invention are as follows O&M risk is reduced, the operational capability of each DTU node is efficiently used, reduces server stress, lifting system fault-tolerance;Reduce cost, it is only necessary to which the DTU for producing a kind of model passes through more new template, it will be able to be adapted to the protocol requirement of every profession and trade, greatly reduce hardware and software development and management of product cost.
Description
Technical field
The invention belongs to computer communication technology fields, more particularly, to a kind of DTU protocol extension method.
Background technique
DTU (Data Transfer unit, data transmission unit), is used exclusively for being converted to serial data into IP data
Or IP data are converted into the serial data wireless terminal device that network is transmitted by wireless communication.It is put into DTU
One has been opened the SIM card of GPRS function, and DTU can carry out data by 2G/3G/4G network and remote server after powering on
Transmission DTU is widely used in the industry fields such as electric power, environmental protection, logistics, the hydrology, meteorology, industry control.
DTU realizes the docking to industry device data to cloud as the conversion equipment in data transmission.But no
The terminal device in field of the same trade is different, and each industry requires special DTU, such as the industry spot having needs to connect PLC
Equipment, some then need to connect singlechip equipment, also only need to connect simple sensor device.Under difference connection equipment
Data protocol it is inconsistent, this makes enterprise have to produce Multiple Type DTU equipment to adapt to the protocol requirement without industry,
Or replacement agreement will remodify DTU and cloud program every time.
A kind of main stream approach for solving this above problem at present is by transparent transmission mode, and DTU directly sends out initial data
Server is given, server is directly handled initial data, and disadvantage is also especially prominent under this mode, is exactly server fortune
It is excessive to calculate pressure: equipment or sensor raw data are sent to server by numerous DTU, and server will complete different associations parallel
The parsing of view and work is calculated, docking receives for server that over-burden.
Summary of the invention
In view of the above problems, the problem to be solved in the present invention is to provide a kind of DTU protocol extension methods, using template configuration
Method provides protocol configuration rule, can be freely set the agreement composition of transmission message, can set each byte in message
Meaning.
In order to solve the above technical problems, the technical solution adopted by the present invention is that: a kind of DTU protocol extension method, including with
Lower step:
S1: mapping generates XML file template;
S2: DTU protocol configuration is updated;
S3: server configuration is updated.
Further, XML file template includes but is not limited to message header, message body and check bit, message body in step S1
Total byte length is equal to the message body length in message header.
Further, configuration composition and the shared byte length of composition, composition include but is not limited to command number, frame in message header
Number and message body length.
Further, XML file template further includes starting mark and end of identification in S1.
Further, byte length shared by meaning title and meaning title is configured in message body in order.
Further, the verification mode of check bit be CRC mode, LRC verification, Gray's code check, it is cumulative and verify or
Exclusive or check.
Further, step S2 includes that small lot updates, and small lot renewal process is that DTU is connect with host computer, host computer
It reads XML file template and is handed down to DTU, DTU receives data and updates the protocol architecture information stored in falsh.
Further, step S2 is included in is updated with DTU, is being that server reads XML file mould with DTU renewal process
Plate, and it is sent to DTU, DTU receives data and updates the protocol architecture information stored in falsh.
Further, step S3 process is that server adds XML file template, and configures using XML file template
DTU。
The advantages and positive effects of the present invention are: reducing O&M risk, the operation energy of each DTU node is efficiently used
Power reduces server stress, lifting system fault-tolerance;Reduce cost, it is only necessary to the DTU for producing a kind of model, by updating mould
Plate, it will be able to be adapted to the protocol requirement of every profession and trade, greatly reduce hardware and software development and management of product cost.
Detailed description of the invention
Fig. 1 is the protocol extension instance frames schematic diagram of one embodiment of the invention.
Specific embodiment
The present invention is further illustrated in the following with reference to the drawings and specific embodiments.
Fig. 1 shows the block schematic illustration of one embodiment of the invention, and the present embodiment is related to a kind of DTU protocol extension method,
It is used for DTU, can allow the DTU method of Extended Protocol as desired at any time, realize the docking of industry device data to cloud,
The DTU protocol extension method is provided protocol configuration rule, can be freely set the association of transmission message using template configuration method
View composition, can set the meaning of each byte in message, the equipment of different industries, it is only necessary to first configure according to protocol requirement new
Template, the template then more renewed simultaneously in equipment and cloud, DTU is packaged data according to template, disappearing after encapsulation
Breath is sent to server, and server parses received message according to template to obtain data.
A kind of above-mentioned DTU protocol extension method, specifically includes the following steps:
S1: mapping generates XML file template;
Host computer generates XML file template according to new agreement, by mapping mode.
XML file template includes but is not limited to message header, message body and check bit, wherein message header, message body, verification
Position must configure.
Wherein, configuration composition and form shared byte length in message header, composition include but is not limited to command number, frame number and
Message body length.It specifically, can be with configuration order number and its shared byte length, frame number and its shared byte in message header
Length, message body length and its shared byte length, can also be added as needed other compositions, as long as write-in title and shared
Word length.
In message body, meaning title and its shared byte length can be configured in order;Wherein, message body total byte length
The message body length that should be equal in message header.
Verification mode can use CRC mode, can choose LRC verification, Gray's code check, cumulative and verification or exclusive or
Verification.
Above-mentioned XML file template further includes starting mark and end of identification, and starting mark and end of identification can choose
Property use.
S2: DTU protocol configuration is updated;
When updating DTU protocol configuration, if small lot updates, upper computer software can be directly connected to by USB with DTU, by
The XML file template that upper computer software reads is handed down to DTU, and DTU receives data and updates the protocol architecture letter stored in falsh
Breath;
Update DTU protocol configuration when, if update DTU, then XML file template content is read by server,
It is sent to each DTU by network link, DTU receives data and updates the protocol architecture information stored in falsh.
S3: server configuration is updated.
Server adds above-mentioned XML file template, and configures the DTU using the document of agreement.
It is illustrated below with a simple communication protocol instance.
401 to 405 be a simple communication protocol instance, wherein
401 start to identify for message;
402 be message header, includes command number and data length;
403 be data field, includes 2 switch states;
404 for verification and;
405 be end of identification.
Firstly, becoming XML file template by agreement mapping, wherein
When starting identity map and arriving XML, there are three attribute: whether using, occupancy byte length and ident value.
When in agreement using mark is started, if using setting 1, set 0 if not using;Byte length is the word for starting mark
Joint number is 1 byte in this example;Ident value is the value of actual use, is 0x7e in the present embodiment, and configuration value value is 7E.
It include two attributes: command number and data length when message header is mapped to XML file template.
Command number is generally used to the function of difference message, and entitled CMD in this example occupies a byte;Data length
For the length in message data area, a byte is occupied.
Message body is data field, includes two switching values, and each switching value occupies a byte.
Verification and end of identification are consistent with marking principle is started on mapping mode, repeat no more.
In 406, configured XML file template sends the data to DTU after reading by upper computer software.
In 407, DTU receives new XML configuration file, parses this document, new XML data structure storage is arrived
In flash.XML data parsing use sequence analysis mode, the data content for needing to parse includes: nodename, node level,
Nodal community, attribute value and father node title, to ensure that the data of storage can restore the tree of XML file template.
In 408, by XML file template configuration into server, then by server by network link by XML structure number
According to DTU is sent to, notice server update success after the success of DTU more new data, the XML of server update target DTU is configured.
DTU and server will first read data structure, then according to data structure according to word after receiving the message of other side
Joint number extracts corresponding numerical value in message, thus data name needed for obtaining and its corresponding data.
The advantages and positive effects of the present invention are: reducing O&M risk, the operation energy of each DTU node is efficiently used
Power reduces server stress, lifting system fault-tolerance.Reduce cost, it is only necessary to the DTU for producing a kind of model, by updating mould
Plate, it will be able to be adapted to the protocol requirement of every profession and trade, greatly reduce hardware and software development and management of product cost.
One embodiment of the present invention has been described in detail above, but the content is only preferable implementation of the invention
Example, should not be considered as limiting the scope of the invention.It is all according to all the changes and improvements made by the present patent application range
Deng should still be within the scope of the patent of the present invention.
Claims (9)
1. a kind of DTU protocol extension method, it is characterised in that: the following steps are included:
S1: mapping generates XML file template;
S2: DTU protocol configuration is updated;
S3: server configuration is updated.
2. DTU protocol extension method according to claim 1, it is characterised in that: XML file template packet in the step S1
Message header, message body and check bit are included but are not limited to, the message body total byte length is equal to the message body in the message header
Length.
3. DTU protocol extension method according to claim 2, it is characterised in that: configuration composition and group in the message header
At shared byte length, the composition includes but is not limited to command number, frame number and message body length.
4. DTU protocol extension method according to claim 3, it is characterised in that: XML file template further includes in the S1
Start mark and end of identification.
5. according to the described in any item DTU protocol extension methods of claim 2-4, it is characterised in that: by suitable in the message body
Sequence configures byte length shared by meaning title and meaning title.
6. DTU protocol extension method according to claim 5, it is characterised in that: the verification mode of the check bit is CRC
Mode, LRC verification, Gray's code check, cumulative and verification or exclusive or check.
7. DTU protocol extension method according to claim 6, it is characterised in that: the step S2 includes that small lot updates,
The small lot renewal process is that DTU is connect with host computer, and the XML file template that the host computer reads is handed down to described
DTU, the DTU receive data and update the protocol architecture information stored in falsh.
8. DTU protocol extension method according to claim 6, it is characterised in that: the step S2 is included in DTU more
Newly, described is being that the server reads the XML file template, and is sent to the DTU with DTU renewal process, the DTU
It receives data and updates the protocol architecture information stored in the falsh.
9. DTU protocol extension method according to claim 7 or 8, it is characterised in that: the step S3 process is the clothes
Business device adds the XML file template, and configures the DTU using the XML file template.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910321565.2A CN110061990A (en) | 2019-04-19 | 2019-04-19 | A kind of DTU protocol extension method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910321565.2A CN110061990A (en) | 2019-04-19 | 2019-04-19 | A kind of DTU protocol extension method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110061990A true CN110061990A (en) | 2019-07-26 |
Family
ID=67319923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910321565.2A Pending CN110061990A (en) | 2019-04-19 | 2019-04-19 | A kind of DTU protocol extension method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110061990A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110529985A (en) * | 2019-08-29 | 2019-12-03 | 珠海格力电器股份有限公司 | The matching process and device of air-conditioner set and data transmission terminal DTU |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101820418A (en) * | 2010-03-19 | 2010-09-01 | 上海博康智能网络科技有限公司 | Universal security equipment control method for extensible protocol and system |
CN104167822A (en) * | 2014-09-02 | 2014-11-26 | 科大智能电气技术有限公司 | Parameter configuration method for distribution network automation terminal device |
CN104572221A (en) * | 2015-01-30 | 2015-04-29 | 重庆邮电大学 | Vehicle-mounted ECU (electronic control unit) online updating system and method |
CN106533764A (en) * | 2016-11-14 | 2017-03-22 | 山东浪潮云服务信息科技有限公司 | Configuration server, configuration client and configuration method and system |
CN108052086A (en) * | 2017-12-28 | 2018-05-18 | 珠海格力智能装备技术研究院有限公司 | Data collecting system |
CN109460231A (en) * | 2018-09-25 | 2019-03-12 | 北京通广龙电子科技有限公司 | Upper computer software implementation method based on XML |
CN109729072A (en) * | 2018-11-29 | 2019-05-07 | 沈阳无距科技有限公司 | Communication protocol information processing method, device and electronic equipment |
CN109768970A (en) * | 2018-12-24 | 2019-05-17 | 通号通信信息集团有限公司 | It is a kind of based on configurable puppy parc generation method |
-
2019
- 2019-04-19 CN CN201910321565.2A patent/CN110061990A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101820418A (en) * | 2010-03-19 | 2010-09-01 | 上海博康智能网络科技有限公司 | Universal security equipment control method for extensible protocol and system |
CN104167822A (en) * | 2014-09-02 | 2014-11-26 | 科大智能电气技术有限公司 | Parameter configuration method for distribution network automation terminal device |
CN104572221A (en) * | 2015-01-30 | 2015-04-29 | 重庆邮电大学 | Vehicle-mounted ECU (electronic control unit) online updating system and method |
CN106533764A (en) * | 2016-11-14 | 2017-03-22 | 山东浪潮云服务信息科技有限公司 | Configuration server, configuration client and configuration method and system |
CN108052086A (en) * | 2017-12-28 | 2018-05-18 | 珠海格力智能装备技术研究院有限公司 | Data collecting system |
CN109460231A (en) * | 2018-09-25 | 2019-03-12 | 北京通广龙电子科技有限公司 | Upper computer software implementation method based on XML |
CN109729072A (en) * | 2018-11-29 | 2019-05-07 | 沈阳无距科技有限公司 | Communication protocol information processing method, device and electronic equipment |
CN109768970A (en) * | 2018-12-24 | 2019-05-17 | 通号通信信息集团有限公司 | It is a kind of based on configurable puppy parc generation method |
Non-Patent Citations (1)
Title |
---|
茅正冲 等: "《基于构件的自动气象站嵌入式程序远程更新》", 《单片机与嵌入式系统应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110529985A (en) * | 2019-08-29 | 2019-12-03 | 珠海格力电器股份有限公司 | The matching process and device of air-conditioner set and data transmission terminal DTU |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103516551B (en) | Utilize passive pair of RFID tag to optical fiber physical port intelligent management system | |
CN108769109A (en) | Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data | |
CN102663094A (en) | IEC61970CIM model checking method | |
CN104361436B (en) | Change in the work information transfer device and its method based on three-dimensional BOM structures | |
CN112328323B (en) | Relay protection device capability description file generation system | |
CN110247967A (en) | Intelligent networking gateway and its data intelligence processing method | |
CN109150854A (en) | Dynamic and configurable communication protocol converting system based on XML file | |
CN110213756A (en) | A kind of data transmission method, device and its relevant device | |
CN103399895A (en) | System and method for processing monitoring display on basis of SVG (scalable vector graphics) | |
CN110061990A (en) | A kind of DTU protocol extension method | |
CN100514928C (en) | Method for rapidly forming dendriform topology structure of network equipment | |
CN106027674A (en) | Technology architecture of "Internet & smart manufacturing" | |
CN103905233B (en) | Realize method, system and the access network device of analog sensor plug and play | |
CN102546831A (en) | Dynamic display method for wireless sensor network topological diagram | |
CN103728957A (en) | HART (highway addressable remote transducer) field equipment management method and system based on real-time database | |
CN107085550A (en) | A kind of method and system for being used to collect application crashes information in iOS system | |
CN102609671A (en) | Identification code entering system and identification code entering method | |
CN103957266A (en) | Device centralized control method for communication system | |
CN106572174A (en) | Zigbee based intelligent RFID induction bookmark | |
CN108762824A (en) | A kind of apparatus logic processing method and processing device based on configuration file | |
CN108763127A (en) | The implementation method for the Modbus adapters that source data is mutually converted with target data | |
CN104240009A (en) | Method for managing wiring relation by bar code combination | |
WO2017041550A1 (en) | Device simulator communication method and system | |
CN107888595A (en) | A kind of embedded equipment CAN stipulations analytic methods based on XML technology | |
CN107196860A (en) | The method that network code carries out multicast transmission in SDN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190726 |
|
RJ01 | Rejection of invention patent application after publication |