Message encoding-decoding method and device
An encoding method and message encoding technology, applied in the field of message encoding and decoding methods and devices, can solve the problems of lack of flexibility and portability of message encoding and decoding methods, and achieve the effect of improving flexibility and portability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] This embodiment provides a message encoding and decoding system, Figure 7 is a structural block diagram of a message encoding and decoding system according to an embodiment of the present invention, such as Figure 7 As shown, the system includes: a message format description file 71, a message format operation module 72, a message encoding module 73, a message decoding module 74, a message tree analysis and display module 75, and a message input module 76. The above structure is described in detail below:
[0062] Message format description file 71: used to store the structure of the message. It can be described according to the structural unit of the message, that is, a complete message is composed of multiple structural units, so that the structural units can be reused. The structural units of the telegram can be saved in several files according to different interface types.
[0063] Message format operation module 72: Find the description file corresponding to t...
Embodiment 2
[0070] This embodiment provides a message encoding method, Figure 8 is a flow chart of message encoding according to a preferred embodiment of the present invention, such as Figure 8 As shown, the method includes:
[0071] The following describes the cooperation between each module by explaining the encoding and decoding process of the message:
[0072] Step 802: the user invokes the encoding function in the message encoding module 73 through the input message module.
[0073] Step 804: The encoding function first constructs a packet header according to the parameters input by the user.
[0074] Step 806: Next, the encoding function calls the message structure unit parsing function in the message format operation module according to the message body structure definition in the input parameter.
[0075] Step 808: The message structure unit parsing function reads the corresponding message structure unit in the message format description file 71 and returns it to the message...
Embodiment 3
[0082] This embodiment provides a message decoding method, Figure 9 is a message decoding flow chart according to a preferred embodiment of the present invention, such as Figure 9 As shown, the method includes: a message format description file 71, a message format operation module 72, a message encoding module 73, a message decoding module 74, a message tree analysis and display module 75, and a message input module 76.
[0083] Step 902: the user invokes the decoding function through the packet tree analysis and display module 75. The decoding function splits the message into a message header and a message body, and passes to the message header decoding function and the message body decoding function in the message decoding module 73 respectively;
[0084] Step 904: the format of the message header is fixed, and the message header decoding function directly decodes the message header according to the definition;
[0085] Step 906: The message body decoding function parse...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com