CN109450592A - A kind of communication protocol recombination method - Google Patents

A kind of communication protocol recombination method Download PDF

Info

Publication number
CN109450592A
CN109450592A CN201811151287.2A CN201811151287A CN109450592A CN 109450592 A CN109450592 A CN 109450592A CN 201811151287 A CN201811151287 A CN 201811151287A CN 109450592 A CN109450592 A CN 109450592A
Authority
CN
China
Prior art keywords
recombination
data
register
area
setting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811151287.2A
Other languages
Chinese (zh)
Inventor
曾新武
张振环
雷刚
李桂友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Yada Electric Co Ltd
Original Assignee
Guangdong Yada Electric 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 Guangdong Yada Electric Co Ltd filed Critical Guangdong Yada Electric Co Ltd
Priority to CN201811151287.2A priority Critical patent/CN109450592A/en
Publication of CN109450592A publication Critical patent/CN109450592A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0083Formatting with frames or packets; Protocol or part of protocol for error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus

Abstract

The invention discloses a kind of communication protocol recombination methods, and recombination register setting area and data recombination zone are added in existing protocol, wherein recombination register setting area is for being arranged register information, the data recombination area is for storing register data.Communication protocol recombination method provided by the invention has scalability, low cost, the advantage of high efficiency communication process, especially when a variety of intelligence instruments are communicated using the networking of Modbus-RTU communications protocol.

Description

A kind of communication protocol recombination method
Technical field
The present invention relates to information communication processing technology field, in particular to a kind of communication protocol recombination method.
Background technique
With the development and update of intelligence instrument, many producers are faced with the replacement upgrading of new old product, in escalation process In there is a problem that new and old edition function and communication protocol are compatible, while the same equipment needs to adopt in different use occasions The performance data of collection causes to need to acquire several times when data are transmitted and read there are different, leads to data acquisition speed Rate and efficiency reduce, and are especially easy to influence data timeliness in multiple equipment networking.
Change equipment bottom communication data protocol is allowed to adapt to each occasion acquisition demand, not only increase equipment development cost and Period also increases the maintenance difficulties of equipment.
Summary of the invention
To solve the above problems, the present invention provides on the basis of not changing original communication protocol content and proposes one kind Communication protocol recombination method to solve device protocol compatibility issue, while also providing higher efficiency for data transmission and fitting It is wider with property.
To achieve the above object, the technical solution adopted by the present invention is that:
A kind of communication protocol recombination method, comprising the following steps:
1) recombination register setting area and data recombination zone, are added in existing protocol, wherein the recombination register is set Area is set for register information to be arranged, the data recombination area is for storing register data;
2), according to the setting in recombination register setting area, recombination data is successively updated to deposit data recombination area;
3) when, data communication transmission is read, data recombination area register address is directly read, to return to data after recombination Group.
Optionally, the register information includes one or more setting groups, and each setting group rises including register Beginning address, register address 1~register address N, wherein N is up to 255;
Data recombination area quantity and the setting group quantity Matching, and the data length in the data recombination area is pair Register address 1 should be set in group the sum of to register address N data byte.
Optionally, recombination register setting area is read-write region.
Communication protocol recombination method provided by the invention has scalability, low cost, the advantage of high efficiency communication process, Especially when a variety of intelligence instruments are communicated using the networking of Modbus-RTU communications protocol, and there are following features:
1) this method, which is not changed, sends code and data transmission format protocol;
2) original communication protocol content, compatible original communications protocol content are not changed;
3) do not increase original function agreement, only legacy data sequence is grouped and is reconfigured, data group has been formed Continuously;
4) recombination zone length is not limited, and each setting group length can be inconsistent;
5) original discontinuous storing data can be realized it is continuous read, can an instruction read, raising communication efficiency;
According to These characteristics, the present invention can guarantee on the compatible original base of device protocol that it is not necessary to modify logical in use Protocol format is interrogated, legacy data is re-started and is recombinated using after upper selection, to reach the high efficiency of information transmission.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is that the embodiment of the present invention realizes structure chart.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of communication protocol recombination method, comprising the following steps:
1) recombination register setting area and data recombination zone, are added in existing protocol, as shown in table 1, the recombination is posted It is 0xAC00~0xAFFF that area's register address, which is arranged, in storage, for register information to be arranged;As shown in table 2, the data weight Group area's register address is 0xB000~0xBFFF, for storing register data;
2), according to the setting in recombination register setting area, recombination data is successively updated to deposit data recombination area;
3) when, data communication transmission is read, data recombination area register address is directly read, to return to data after recombination Group.
Optionally, the register information includes one or more setting groups, and each setting group rises including register Beginning address, register address 1~register address N, wherein N is up to 255, as in table 11 recombination data of setting group storage deposit Device initial address is 0xB000, and 1 data length of data recombination area is 1 register address 1~register address N1 data of setting group Byte summation, data recombination area quantity and the setting group quantity Matching make other setting groups respectively correspond distribution corresponding Memory block, and the data length in the data recombination area is to be correspondingly arranged in group register address 1 to register address N data word The sum of section, such as data recombination zone 1, data length is that 1 register address 1~register address N1 data byte of setting group is total With.
When reading data, corresponding data recombination zone data directly can be read according to recombination data area, can once read each Setting group recombination zone data.1~N of each setting group register can be different, but all support function, each setting group leader for this agreement Degree can also be not quite similar.
Optionally, recombination register setting area is read-write region.
Table 1: recombination setting register
Table 2: recombination data register
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is defined by the appended.

Claims (3)

1. a kind of communication protocol recombination method, it is characterised in that the following steps are included:
1) recombination register setting area and data recombination zone, are added in existing protocol, wherein area is arranged in the recombination register For register information to be arranged, the data recombination area is for storing register data;
2), according to the setting in recombination register setting area, recombination data is successively updated to deposit data recombination area;
3) when, data communication transmission is read, data recombination area register address is directly read, to return to data group after recombination.
2. a kind of communication protocol recombination method as described in claim 1, it is characterised in that:
The register information includes one or more setting groups, and each setting group includes register initial address, deposit Device address 1~register address N, wherein N is up to 255;
Data recombination area quantity and the setting group quantity Matching, and the data length in the data recombination area is that correspondence is set Register address 1 is set in group the sum of to register address N data byte.
3. a kind of communication protocol recombination method as described in claim 1, it is characterised in that:
Recombination register setting area is read-write region.
CN201811151287.2A 2018-09-29 2018-09-29 A kind of communication protocol recombination method Pending CN109450592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811151287.2A CN109450592A (en) 2018-09-29 2018-09-29 A kind of communication protocol recombination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811151287.2A CN109450592A (en) 2018-09-29 2018-09-29 A kind of communication protocol recombination method

Publications (1)

Publication Number Publication Date
CN109450592A true CN109450592A (en) 2019-03-08

Family

ID=65546089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811151287.2A Pending CN109450592A (en) 2018-09-29 2018-09-29 A kind of communication protocol recombination method

Country Status (1)

Country Link
CN (1) CN109450592A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159002A (en) * 2019-12-31 2020-05-15 山东有人信息技术有限公司 Data edge acquisition method based on grouping, edge acquisition equipment and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004027596A1 (en) * 2002-09-20 2004-04-01 Atmel Corporation Apparatus and method for dynamic program decompression
CN1886711A (en) * 2003-11-26 2006-12-27 英特尔公司 Accessing private data about the state of a data processing machine from storage that is publicly accessible
CN101751327A (en) * 2008-12-04 2010-06-23 北京中电华大电子设计有限责任公司 Method for tracing embedded processor debugging
CN102638451A (en) * 2012-03-14 2012-08-15 江苏斯菲尔电气股份有限公司 Dynamic regrouping method for register list data of Modbus communication protocol
US20130346719A1 (en) * 2012-06-21 2013-12-26 Alexander I. Tomlinson Systems and methods for efficient memory access
CN106936838A (en) * 2017-03-29 2017-07-07 苏州中材建设有限公司 It is applied to the control system and control method of industrial equipment communication Protocol Conversion
CN107748728A (en) * 2017-10-09 2018-03-02 南京云悦欣自动化工程有限公司 A kind of serial communication distributor and its means of communication

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004027596A1 (en) * 2002-09-20 2004-04-01 Atmel Corporation Apparatus and method for dynamic program decompression
CN1886711A (en) * 2003-11-26 2006-12-27 英特尔公司 Accessing private data about the state of a data processing machine from storage that is publicly accessible
CN101751327A (en) * 2008-12-04 2010-06-23 北京中电华大电子设计有限责任公司 Method for tracing embedded processor debugging
CN102638451A (en) * 2012-03-14 2012-08-15 江苏斯菲尔电气股份有限公司 Dynamic regrouping method for register list data of Modbus communication protocol
US20130346719A1 (en) * 2012-06-21 2013-12-26 Alexander I. Tomlinson Systems and methods for efficient memory access
CN106936838A (en) * 2017-03-29 2017-07-07 苏州中材建设有限公司 It is applied to the control system and control method of industrial equipment communication Protocol Conversion
CN107748728A (en) * 2017-10-09 2018-03-02 南京云悦欣自动化工程有限公司 A kind of serial communication distributor and its means of communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159002A (en) * 2019-12-31 2020-05-15 山东有人信息技术有限公司 Data edge acquisition method based on grouping, edge acquisition equipment and system
CN111159002B (en) * 2019-12-31 2023-04-28 山东有人物联网股份有限公司 Data edge collection method, edge collection equipment and system based on grouping

Similar Documents

Publication Publication Date Title
CN106528786B (en) Method and system of the multi-source heterogeneous power grid big data of fast transferring to HBase
CN103177027B (en) Obtain the method and system of dynamic Feed index
CN106503276A (en) A kind of method and apparatus of the time series databases for real-time monitoring system
CN107239531A (en) A kind of extension GeoServer issues the implementation method of self-defined tile WMS services
CN106469158A (en) Method of data synchronization and device
CN104135498A (en) Cross-platform information push system and push method thereof
CN102083206B (en) Method, device and system for allocating air interface resources
CN101727502A (en) Data query method, data query device and data query system
CN106095923A (en) A kind of method and system adding data of being on the list in orderly list
CN102385526A (en) Method and device for sharing stock data among multiple processes
CN108200070A (en) A kind of method and device for generating list
CN109918425A (en) A kind of method and system realized data and import non-relational database
CN104917786A (en) Method and module for saving transmission flow during interaction of client and server
CN109450592A (en) A kind of communication protocol recombination method
CN109213820A (en) Method for realizing fusion use of multiple types of databases
CN104125300B (en) The synchronous method of separation between machine and card type home gateway service configuration data
CN102662967A (en) J2EE-technology-based design method for analysis scheme of China Unicom fixed network traffic
CN109388635A (en) A kind of data storage method of the multi-value data based on binary system and dictionary table
CN103297183A (en) Data communication method and device
CN106789978A (en) A kind of convergence system and method
CN107885822A (en) The generation method and device of a kind of operation code
CN101425096A (en) File memory method for embedded equipment
CN106250538A (en) Wechat is shared the method and system of big data
CN102156743A (en) Method for memorizing telecom mass telephone bill data
CN109068286A (en) A kind of method, medium and the equipment of information parsing

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308