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

An analysis method and analysis device technology, applied in the dynamic analysis method based on the modbus protocol, server and storage media, and the field of devices, can solve the problems of increasing development difficulty and development cost, etc., to reduce development difficulty, reduce development cost, and data analysis flexible effects

CN109120477BActive Publication Date: 2021-09-24GUANGDONG PHNIX ECO ENERGY SOLUTION
7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2021-09-24

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a dynamic parsing method, equipment, server and storage medium based on the modbus protocol. The method includes: acquiring original modbus data uploaded by the equipment; searching for a protocol mapping table corresponding to the equipment according to the original modbus data; Obtaining the function code in the original modbus data, and adopting the function code instruction corresponding to the function code to parse the original modbus data; performing the modbus address obtained by parsing with the pre-configured modbus address in the protocol mapping table Matching; when there is a pre-configured modbus address corresponding to the modbus address obtained by parsing in the protocol mapping table, assign the address value obtained by parsing to the code corresponding to the pre-configured modbus address for the upper layer The value is obtained through the encoding. Based on the invention, the flexible analysis of the protocol at the server end can be realized, and the development workload is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the modbus field, in particular to a dynamic analysis method, device, server and storage medium based on the modbus protocol. Background technique

[0002] Modbus is the world's first real bus protocol for industrial field formulated by Modicon (now a brand of Schneider Electric Company) in 1979. The modbus protocol has now become a common industrial standard, which is widely used in the communication interconnection between controllers. When communicating on a modbus network, each controller needs to know the device addresses of all controllers communicating with it in the network, identify the messages sent by the addresses, and decide what action to take. If a response is required, the controller will generate a feedback message and send it using the modbus protocol.

[0003] As the pace of the intelligent era accelerates, it becomes necessary to connect traditional modbus devices to the cloud. Although modbus is a standa...

Examples

Embodiment Construction

[0036] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0037] The first embodiment of the present invention provides a kind of dynamic analysis method based on modbus agreement, and it can be carried out by the dynamic analysis server (hereinafter referred to as server) based on modbus agreement, and comprises the following steps at least:

[0038] S101. Obtain the original modbus data uploaded by the device.

[0039] In this embodiment, the device may be a device based on the modbusRTU protocol. Wherein, the ori...