Modbus protocol file encoding, decoding method and encoder, decoder
A coding method and file technology, applied in electrical components, digital transmission systems, bus networks, etc., can solve problems such as reducing the probability of errors, and achieve the effects of reducing decoding complexity, reducing the probability of coding errors, and reducing the probability of decoding errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0039] In the prior art, when the PC software implements the Modbus protocol, it needs to implement corresponding encoding and decoding for each protocol. When encoding a protocol, the data required by the slave device is combined into a corresponding character array according to the protocol, and the decoding is to parse the character array output from the slave device into the data required by the PC software according to the protocol. PC software needs to combine or analyze the specific composition structure of the protocol in each encoding and decoding function, and there are many data operations in the software code, which is prone to errors.
[0040] In the embodiment of the present invention, when encoding the required parameters of the sending frame corresponding to different function codes, the required parameters of the sending frame may be firstly mapped to generate a first parameter object and stored in the first parameter dictionary. Afterwards, according to the p...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


