CN109120477B - Dynamic analysis method, device, server and storage medium based on modbus protocol - Google Patents

Dynamic analysis method, device, server and storage medium based on modbus protocol Download PDF

Info

Publication number
CN109120477B
CN109120477B CN201810939586.6A CN201810939586A CN109120477B CN 109120477 B CN109120477 B CN 109120477B CN 201810939586 A CN201810939586 A CN 201810939586A CN 109120477 B CN109120477 B CN 109120477B
Authority
CN
China
Prior art keywords
modbus
address
protocol
mapping table
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810939586.6A
Other languages
Chinese (zh)
Other versions
CN109120477A (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.)
Guangdong PHNIX Eco Energy Solution Ltd
Original Assignee
Guangdong PHNIX Eco Energy Solution 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 PHNIX Eco Energy Solution Ltd filed Critical Guangdong PHNIX Eco Energy Solution Ltd
Priority to CN201810939586.6A priority Critical patent/CN109120477B/en
Publication of CN109120477A publication Critical patent/CN109120477A/en
Application granted granted Critical
Publication of CN109120477B publication Critical patent/CN109120477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a dynamic analysis method, equipment, a server and a storage medium based on a modbus protocol, wherein the method comprises the following steps: acquiring original modbus data uploaded by equipment; searching a protocol mapping table corresponding to the equipment according to the original modbus data; acquiring a function code in the original modbus data, and analyzing the original modbus data by adopting a function code instruction corresponding to the function code; matching the modbus address obtained by analysis with a pre-configured modbus address in the protocol mapping table; and when a preconfigured modbus address corresponding to the obtained modbus address through analysis exists in the protocol mapping table, assigning the address value obtained through analysis to a code corresponding to the preconfigured modbus address, so that an upper layer end can take values through the code. Based on the invention, the flexible analysis of the protocol at the server side can be realized, and the development workload is reduced.

Description

Dynamic analysis method, device, server and storage medium based on modbus protocol
Technical Field
The invention relates to the field of modbus, in particular to a dynamic analysis method, a dynamic analysis device, a dynamic analysis server and a storage medium based on modbus protocol.
Background
modbus is the first global bus protocol for industrial field purposes established by Modicon (now a brand of schneider electric company) in 1979. The modbus protocol has become a common industry standard that is widely used for communication interconnects between controllers. When communicating over a modbus network, each controller needs to know the device addresses of all controllers in the network with which it is communicating, recognize messages sent by address, and decide what action to take place. If a response is required, the controller will generate a feedback message and send it out using the modbus protocol.
As the pace of the smart era speeds up, the cloud becomes necessary for traditional modbus devices. modbus is a standard protocol, but due to good expansibility, each product of each manufacturer may have different content in the protocol, so that when the cloud is analyzed, a plurality of sets of protocols need to be analyzed according to different content, and each new product needs to have a certain amount of development tasks, thereby increasing the development difficulty and the development cost.
Disclosure of Invention
In view of the above, the present invention provides a dynamic analysis method, apparatus, server and storage medium based on modbus protocol, which implement flexible analysis of the protocol at the server side and reduce development cost.
The embodiment of the invention provides a dynamic analysis method based on a modbus protocol, which comprises the following steps:
acquiring original modbus data uploaded by equipment;
searching a protocol mapping table corresponding to the equipment according to the original modbus data; the protocol mapping table comprises a pre-configured modbus address, a code corresponding to the modbus address and a code meaning corresponding to the code;
acquiring function codes in the original modbus data, and analyzing the original modbus data by adopting function code instructions corresponding to the function codes to obtain a modbus address and a corresponding address value of the original modbus data;
matching the modbus address obtained by analysis with a pre-configured modbus address in the protocol mapping table;
and when a preconfigured modbus address corresponding to the obtained modbus address through analysis exists in the protocol mapping table, assigning the address value obtained through analysis to a code corresponding to the preconfigured modbus address, so that an upper layer end can take values through the code.
Preferably, prior to obtaining raw modbus data uploaded by a device, further comprising:
obtaining modbus protocol content formulated based on equipment;
generating a protocol mapping table according to a modbus address, codes and code meanings corresponding to the codes defined by a user based on the contents of the modbus protocol; wherein the encoding meaning uniquely corresponds to the encoding.
Preferably, the step of searching for the protocol mapping table corresponding to the device according to the original modbus data specifically includes:
and acquiring bar code information corresponding to the equipment according to the first N bits of the data head of the original modbus data, and inquiring a protocol mapping table corresponding to the equipment according to the bar code information.
Preferably, the method further comprises the following steps:
and when the protocol mapping table corresponding to the equipment cannot be inquired according to the bar code information, generating an unresolvable indication and sending the unresolvable indication to a related management terminal.
Preferably, the method further comprises the following steps:
and when the pre-configured modbus address corresponding to the obtained modbus address through analysis does not exist in the protocol mapping table, discarding the address value.
The embodiment of the invention also provides a dynamic analysis device based on the modbus protocol, which comprises:
the device comprises a data acquisition unit, a data processing unit and a processing unit, wherein the data acquisition unit is used for acquiring original modbus data uploaded by equipment;
the searching unit is used for searching a protocol mapping table corresponding to the equipment according to the original modbus data; the protocol mapping table comprises a pre-configured modbus address, a code corresponding to the modbus address and a code meaning corresponding to the code;
the analysis unit is used for acquiring function codes in the original modbus data and analyzing the original modbus data by adopting function code instructions corresponding to the function codes so as to acquire a modbus address of the original modbus data and a corresponding address value;
the address matching unit is used for matching the modbus address obtained by analysis with a pre-configured modbus address in the protocol mapping table;
and the assignment unit is used for assigning the address value obtained by analysis to the code corresponding to the preconfigured modbus address when the preconfigured modbus address corresponding to the obtained modbus address exists in the protocol mapping table, so that the upper layer end can take values through the code.
Preferably, the searching unit is specifically configured to obtain barcode information corresponding to the device according to the first N bits of the data header of the original modbus data, and query a protocol mapping table corresponding to the device according to the barcode information.
Preferably, the method further comprises the following steps:
and the address value discarding unit is used for discarding the address value when a pre-configured modbus address corresponding to the obtained modbus address through analysis does not exist in the protocol mapping table.
The embodiment of the invention also provides a dynamic analysis server based on the modbus protocol, which comprises a processor and a memory, wherein the memory is internally stored with a computer program, and the computer program is configured to be executed by the processor, so that the dynamic analysis method based on the modbus protocol can be realized
The embodiment of the invention also provides a computer-readable storage medium, which includes a stored computer program, and when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the above dynamic analysis method based on modbus protocol.
In the above embodiment, for a device, the unique corresponding identifier of the protocol mapping table created by the server is a modbus address; for the upper layer end (such as a web front end, a WeChat end and an APP end), the unique corresponding identifier is a code; when protocol analysis is carried out, the server carries out analysis according to the modbus address, and assigns an address value to a corresponding code according to the modbus address and the modbus address configured in advance by the protocol mapping table; and the upper layer end takes values according to the codes, and when the bottom layer protocol changes, only the modbus address in the protocol mapping table needs to be updated. Based on the structure, for the upper layer end, the development difficulty is greatly reduced, the corresponding modbus protocol analysis is not needed to be carried out on each upper layer end, and the upper layer end only needs to take values according to the unified codes and does not worry about the change of the modbus address; for the server, data analysis becomes flexible, code change is not needed, and development cost is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a modbus protocol-based dynamic parsing method according to a first embodiment of the present invention.
Fig. 2 is a schematic diagram of an edit of a protocol mapping table according to a first embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a modbus protocol-based dynamic analysis apparatus according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A first embodiment of the present invention provides a modbus protocol-based dynamic parsing method, which can be executed by a modbus protocol-based dynamic parsing server (hereinafter referred to as a server), and at least includes the following steps:
s101, obtaining original modbus data uploaded by the equipment.
In this embodiment, the device may be a device based on modbusRTU protocol. The original modbus data uploaded by the equipment at least comprises slave station addresses, function codes, modbus addresses and corresponding equipment data.
S102, searching a protocol mapping table corresponding to the equipment according to the original modbus data; the protocol mapping table comprises a pre-configured modbus address, a code corresponding to the modbus address and a code meaning corresponding to the code.
In this embodiment, for different devices or products, during device development, corresponding modbus protocol content may be formulated for the device, for example, a function point corresponding to a modbus address may be defined. Meanwhile, at the server, a user can configure and generate a set of corresponding protocol mapping table according to the formulated protocol content. The protocol mapping table includes a pre-configured modbus address, a code corresponding to the modbus address, and a code meaning (which may be a chinese meaning or an english meaning, and the present invention is not limited specifically) corresponding to the code.
S103, acquiring function codes in the original modbus data, and analyzing the original modbus data by adopting function code instructions corresponding to the function codes to acquire the modbus address of the original modbus data and corresponding address values.
And S104, matching the modbus address obtained by analysis with a preset modbus address in the protocol mapping table.
And S105, when a preconfigured modbus address corresponding to the obtained modbus address through analysis exists in the protocol mapping table, assigning the address value obtained through analysis to a code corresponding to the preconfigured modbus address, so that an upper layer end can take values through the code.
In order to facilitate understanding of the embodiments of the present invention, the following describes an application of the embodiments of the present invention by taking a practical example as an example.
Assume that, for a certain device, a protocol mapping table corresponding to the device exists on a server, where as shown in fig. 2, in the protocol mapping table, one preconfigured modbus address is 1001, a corresponding code is p, and the code corresponds to on/off.
Of course, it should be noted that a protocol mapping table may be preconfigured with a plurality of modbus addresses, each modbus address corresponds to a code, and each code corresponds to a related code meaning, which is not described herein again.
The original modbus data reported by the equipment is assumed to be:
63 10 10 01 00 01 02 00 01 XX XX
where 63 denotes slave address, the first 10 denotes function code, 1001 following function code 10 denotes modbus address, followed by specific data. The function codes can adopt standard function codes adopted by a modbus protocol, and can also be self-defined.
In this embodiment, when receiving the raw modbus data, the server first obtains the protocol mapping table corresponding to the device, then reads the function code (i.e., 10) of the device, and uses the function code instruction corresponding to the function code to parse the raw modbus data.
In this embodiment, after parsing, the server may obtain that the modbus address corresponding to the raw modbus data is 1001 and the address value is 0001 (e.g., indicating power on).
Next, the server searches whether a preconfigured modbus address of 1001 exists in the protocol mapping table. If so, the server assigns the address value 0001 to the corresponding code. As can be seen from fig. 2, if a preconfigured modbus address 1001 exists in the protocol mapping table and the corresponding code is p, the server assigns an address value 0001 to the code p.
In this embodiment, the upper layer end (e.g., the web front end, the wechat end, and the APP end) may perform value calculation through encoding, for example, when the upper layer end calculates a value p, the obtained value is 0001, which indicates power-on.
In this embodiment, if the device is improved subsequently, for example, in a subsequent machine model, the function point corresponding to the modbus address 1002 is defined as on/off, only 1001 needs to be updated to 1002 in the protocol mapping table, and the corresponding code p is not changed. Because the upper layer end takes the value of p, the upper layer end does not need to be improved, namely the upper layer end does not need to be correspondingly updated or developed, and thus, the workload and the development difficulty of development are greatly reduced.
To sum up, in the dynamic analysis method based on the modbus protocol according to the first embodiment of the present invention, for a device, a unique corresponding identifier of a protocol mapping table created by a server is a modbus address; for the upper layer end (such as a web front end, a WeChat end and an APP end), the unique corresponding identifier is a code; when protocol analysis is carried out, the server carries out analysis according to the modbus address, and assigns an address value to a corresponding code according to the modbus address and the modbus address configured in advance by the protocol mapping table; and the upper layer end takes values according to the codes, and when the bottom layer protocol changes, only the modbus address in the protocol mapping table needs to be updated. Based on the structure, for the upper layer end, the development difficulty is greatly reduced, the corresponding modbus protocol analysis is not needed to be carried out on each upper layer end, and the upper layer end only needs to take values according to the unified codes and does not worry about the change of the modbus address; for the server, data analysis becomes flexible, code change is not needed, and development cost is reduced.
Preferably, the step of searching for the protocol mapping table corresponding to the device according to the original modbus data specifically includes:
and acquiring bar code information corresponding to the equipment according to the first N bits of the data head of the original modbus data, and inquiring a protocol mapping table corresponding to the equipment according to the bar code information.
In this embodiment, the first N bits (for example, the first 12 bits) of the original modbus data header represent barcode information, and the barcode information corresponds to the device and the protocol mapping table one to one, so that the protocol mapping table corresponding to the device can be obtained through the barcode information, and it is ensured that the protocol mapping table corresponding to the device can be accurately obtained.
Preferably, the method further comprises the following steps:
and when the protocol mapping table corresponding to the equipment cannot be inquired according to the bar code information, generating an unresolvable indication and sending the unresolvable indication to a related management terminal.
In this embodiment, if the protocol mapping table corresponding to the device is not queried according to the barcode information, the protocol mapping table corresponding to the device may not exist on the server or an analysis error occurs, and at this time, the server generates an analysis incapability indication and sends the analysis incapability indication to a related management terminal to notify a related manager.
Preferably, the method further comprises the following steps:
and when the pre-configured modbus address corresponding to the obtained modbus address through analysis does not exist in the protocol mapping table, discarding the address value.
Referring to fig. 3, a second embodiment of the present invention further provides a dynamic parsing apparatus based on modbus protocol, including:
the device comprises a data acquisition unit 10, a processing unit and a processing unit, wherein the data acquisition unit is used for acquiring original modbus data uploaded by equipment;
a searching unit 20, configured to search, according to the original modbus data, a protocol mapping table corresponding to the device; the protocol mapping table comprises a pre-configured modbus address, a code corresponding to the modbus address and a code meaning corresponding to the code;
the analysis unit 30 is used for acquiring function codes in the original modbus data and analyzing the original modbus data by adopting a function code instruction corresponding to the function codes to acquire a modbus address of the original modbus data and a corresponding address value;
the address matching unit 40 is configured to match the modbus address obtained through analysis with a pre-configured modbus address in the protocol mapping table;
and the assigning unit 50 is configured to assign the address value obtained through analysis to the code corresponding to the preconfigured modbus address when the preconfigured modbus address corresponding to the modbus address obtained through analysis exists in the protocol mapping table, so that an upper layer end can take values through the code.
Preferably, the method further comprises the following steps:
the device comprises a protocol content acquisition unit, a processing unit and a processing unit, wherein the protocol content acquisition unit is used for acquiring modbus protocol content formulated based on equipment;
the device comprises a protocol mapping table generating unit, a storage unit and a processing unit, wherein the protocol mapping table generating unit is used for generating a protocol mapping table according to a modbus address, codes and code meanings corresponding to the codes, which are defined by a user based on the contents of the modbus protocol; wherein the encoding meaning uniquely corresponds to the encoding.
Preferably, the searching unit 20 is specifically configured to obtain barcode information corresponding to the device according to the first N bits of the data header of the original modbus data, and query a protocol mapping table corresponding to the device according to the barcode information.
Preferably, the method further comprises the following steps:
and the instruction sending unit is used for generating an unresolvable instruction when the protocol mapping table corresponding to the equipment cannot be inquired according to the bar code information, and sending the unresolvable instruction to a related management terminal.
Preferably, the method further comprises the following steps:
and the address value discarding unit is used for discarding the address value when a pre-configured modbus address corresponding to the obtained modbus address through analysis does not exist in the protocol mapping table.
The third embodiment of the present invention further provides a modbus protocol-based dynamic parsing server, which includes a processor and a memory, where the memory stores a computer program, and the computer program is configured to be executed by the processor, so as to implement the modbus protocol-based dynamic parsing method as described above.
The fourth embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the modbus protocol-based dynamic parsing method described above.
Illustratively, the computer program may be divided into one or more units, which are stored in the memory and executed by the processor to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments describing the execution process in the computer program server.
The modbus protocol based dynamic resolution server may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a modbus protocol based dynamic resolution server and does not constitute a limitation of a modbus protocol based dynamic resolution server, and may include more or fewer components than shown, or some components in combination, or different components, e.g., the modbus protocol based dynamic resolution server may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the control center of the modbus protocol-based dynamic resolution server connects the various parts of the overall modbus protocol-based dynamic resolution server using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the modbus protocol-based dynamic resolution server by executing or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modbus protocol-based dynamic resolution server integrated unit can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the processes in the method according to the embodiments of the present invention may also be implemented by executing a computer program to control related hardware, where the computer program may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the embodiments of the method may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A dynamic analysis method based on a modbus protocol is characterized by comprising the following steps:
acquiring original modbus data uploaded by equipment;
searching a protocol mapping table corresponding to the equipment according to the original modbus data; the protocol mapping table comprises a pre-configured modbus address, a code corresponding to the modbus address and a code meaning corresponding to the code;
acquiring function codes in the original modbus data, and analyzing the original modbus data by adopting function code instructions corresponding to the function codes to obtain a modbus address and a corresponding address value of the original modbus data;
matching the modbus address obtained by analysis with a pre-configured modbus address in the protocol mapping table;
and when a preconfigured modbus address corresponding to the obtained modbus address through analysis exists in the protocol mapping table, assigning the address value obtained through analysis to a code corresponding to the preconfigured modbus address, so that an upper layer end can take values through the code.
2. A modbus protocol-based dynamic profiling method according to claim 1, further comprising, prior to obtaining raw modbus data uploaded by a device:
obtaining modbus protocol content formulated based on equipment;
generating a protocol mapping table according to a modbus address, codes and code meanings corresponding to the codes defined by a user based on the contents of the modbus protocol; wherein the encoding meaning uniquely corresponds to the encoding.
3. A modbus protocol-based dynamic parsing method according to claim 1, wherein the step of finding a protocol mapping table corresponding to the device according to the raw modbus data is specifically as follows:
and acquiring bar code information corresponding to the equipment according to the first N bits of the data head of the original modbus data, and inquiring a protocol mapping table corresponding to the equipment according to the bar code information.
4. A modbus protocol-based dynamic resolution method according to claim 3, further comprising:
and when the protocol mapping table corresponding to the equipment cannot be inquired according to the bar code information, generating an unresolvable indication and sending the unresolvable indication to a related management terminal.
5. A modbus protocol-based dynamic resolution method according to claim 1, further comprising:
and when the pre-configured modbus address corresponding to the obtained modbus address through analysis does not exist in the protocol mapping table, discarding the address value.
6. A dynamic analysis device based on modbus protocol is characterized by comprising:
the device comprises a data acquisition unit, a data processing unit and a processing unit, wherein the data acquisition unit is used for acquiring original modbus data uploaded by equipment;
the searching unit is used for searching a protocol mapping table corresponding to the equipment according to the original modbus data; the protocol mapping table comprises a pre-configured modbus address, a code corresponding to the modbus address and a code meaning corresponding to the code;
the analysis unit is used for acquiring function codes in the original modbus data and analyzing the original modbus data by adopting function code instructions corresponding to the function codes so as to acquire a modbus address of the original modbus data and a corresponding address value;
the address matching unit is used for matching the modbus address obtained by analysis with a pre-configured modbus address in the protocol mapping table;
and the assignment unit is used for assigning the address value obtained by analysis to the code corresponding to the preconfigured modbus address when the preconfigured modbus address corresponding to the obtained modbus address exists in the protocol mapping table, so that the upper layer end can take values through the code.
7. The modbus protocol-based dynamic analysis device according to claim 6, wherein the lookup unit is specifically configured to obtain barcode information corresponding to the device according to the first N bits of the data header of the original modbus data, and query a protocol mapping table corresponding to the device according to the barcode information.
8. A modbus protocol-based dynamic profiling apparatus according to claim 6, further comprising:
and the address value discarding unit is used for discarding the address value when a pre-configured modbus address corresponding to the obtained modbus address through analysis does not exist in the protocol mapping table.
9. A modbus protocol-based dynamic profiling server, comprising a processor and a memory, the memory having stored therein a computer program configured to, when executed by the processor, implement a modbus protocol-based dynamic profiling method according to any one of claims 1 to 5.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls a device on which the computer-readable storage medium resides to perform a modbus protocol-based dynamic parsing method of any one of claims 1-5.
CN201810939586.6A 2018-08-16 2018-08-16 Dynamic analysis method, device, server and storage medium based on modbus protocol Active CN109120477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810939586.6A CN109120477B (en) 2018-08-16 2018-08-16 Dynamic analysis method, device, server and storage medium based on modbus protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810939586.6A CN109120477B (en) 2018-08-16 2018-08-16 Dynamic analysis method, device, server and storage medium based on modbus protocol

Publications (2)

Publication Number Publication Date
CN109120477A CN109120477A (en) 2019-01-01
CN109120477B true CN109120477B (en) 2021-09-24

Family

ID=64851880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810939586.6A Active CN109120477B (en) 2018-08-16 2018-08-16 Dynamic analysis method, device, server and storage medium based on modbus protocol

Country Status (1)

Country Link
CN (1) CN109120477B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918062A (en) * 2019-03-01 2019-06-21 南京科谷智能科技有限公司 Modbus protocol analysis method based on Java language
CN110007887B (en) * 2019-04-11 2022-08-23 广州驷骏精密设备股份有限公司 Display method based on spliced screen, spliced screen and spliced screen system
CN112995133B (en) * 2021-02-02 2023-04-18 深圳市科陆电子科技股份有限公司 Analysis method, device and system based on modbus protocol
CN114691540B (en) * 2022-03-22 2023-03-31 无锡雪浪数制科技有限公司 Method, system and storage medium for optimizing modbus protocol data reading
CN114978797A (en) * 2022-05-16 2022-08-30 深圳渊联技术有限公司 Data transmission method and system
CN116489536B (en) * 2023-05-06 2024-02-13 北京众谊越泰科技有限公司 Efficient point location acquisition method and device based on modbusRTU protocol communication

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702584A (en) * 2013-12-10 2015-06-10 中国科学院沈阳自动化研究所 Modbus communication access control method based on rule self-learning
CN105306463A (en) * 2015-10-13 2016-02-03 电子科技大学 Modbus TCP intrusion detection method based on support vector machine
CN105786800A (en) * 2016-03-23 2016-07-20 苏州数字地图信息科技股份有限公司 Police standard address acquiring method and system
CN106131164A (en) * 2016-07-01 2016-11-16 北京百度网讯科技有限公司 Carry out data processing method and the device of protocol analysis beyond the clouds
CN106209843A (en) * 2016-07-12 2016-12-07 工业和信息化部电子工业标准化研究院 A kind of data flow anomaly towards Modbus agreement analyzes method
CN106712902A (en) * 2016-12-19 2017-05-24 上海东软载波微电子有限公司 Modbus protocol file encoding method, Modbus protocol file decoding method, encoder and decoder
US9800646B1 (en) * 2014-05-13 2017-10-24 Senseware, Inc. Modification of a sensor data management system to enable sensors as a service

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702584A (en) * 2013-12-10 2015-06-10 中国科学院沈阳自动化研究所 Modbus communication access control method based on rule self-learning
US9800646B1 (en) * 2014-05-13 2017-10-24 Senseware, Inc. Modification of a sensor data management system to enable sensors as a service
CN105306463A (en) * 2015-10-13 2016-02-03 电子科技大学 Modbus TCP intrusion detection method based on support vector machine
CN105786800A (en) * 2016-03-23 2016-07-20 苏州数字地图信息科技股份有限公司 Police standard address acquiring method and system
CN106131164A (en) * 2016-07-01 2016-11-16 北京百度网讯科技有限公司 Carry out data processing method and the device of protocol analysis beyond the clouds
CN106209843A (en) * 2016-07-12 2016-12-07 工业和信息化部电子工业标准化研究院 A kind of data flow anomaly towards Modbus agreement analyzes method
CN106712902A (en) * 2016-12-19 2017-05-24 上海东软载波微电子有限公司 Modbus protocol file encoding method, Modbus protocol file decoding method, encoder and decoder

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Design and Realization of Modbus Protocol Based on Embedded Linux System;PENG Dao-gang,ZHANG Hao,YANG Li,LI Hui;《The 2008 International Conference on Embedded Software and Systems Symposia (ICESS2008)》;20080919;全文 *
基于Modbus协议的可通信智能断路器设计与实现;罗轶峰;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20110315;全文 *

Also Published As

Publication number Publication date
CN109120477A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN109120477B (en) Dynamic analysis method, device, server and storage medium based on modbus protocol
CN109218133B (en) Network speed testing system, method, device and computer readable storage medium
CN112954045B (en) Data transmission method, device, medium and electronic equipment in node
JP6355275B2 (en) Realization method of broadband bus setting management in industrial Internet site
CN113039498A (en) Method for commissioning field devices in an industrial system network
CN111580869A (en) Data communication method and system based on OPC UA
CN110704115A (en) Method, device and system for configuring BMC (baseboard management controller) of server
CN113419597A (en) Working method, equipment and medium of arbitrary waveform generator
CN105656643B (en) Method and equipment for performing compatible management based on network configuration protocol
CN112466303A (en) Device discovery method, device, storage medium, and electronic apparatus
CN110865834B (en) Application program interface updating method and device, readable storage medium and terminal equipment
CN113708957B (en) Configuration method, terminal device and medium for server BMC
CN111026047B (en) Software configuration method and device
CN109788034B (en) Configuration method for gateway access equipment, electronic equipment and storage medium
CN112272244A (en) Router WAN end IPv6 internet mode configuration method and device
CN110505075B (en) Device management method and related device
US11640152B2 (en) Method and device for providing service for a programmable logic controller
CN113992739B (en) Local area network OTA firmware upgrading device, method and system
CN115268951A (en) Installation method, device, equipment and storage medium of operating system
CN115208951A (en) Request processing method and device, electronic equipment and computer readable storage medium
CN114090074A (en) Method and device for configuring operating environment, storage medium and electronic device
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN112637151A (en) Data message transmission method, terminal device, server and storage medium
CN110971461B (en) Sensor node configuration method and system based on Internet of things
CN117376300A (en) Message all-channel sending method and device, electronic equipment and storage medium

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