Communication protocol information description universal model based on XML format and design method thereof
A communication protocol and general model technology, applied in the computer field, can solve problems such as low development efficiency, poor versatility, and difficult maintenance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Such as figure 1 As shown, the general model of communication protocol information description based on XML format includes application layer, protocol initialization unit, buffer creation unit, underlying communication module, decoder Decoder and encoder Encoder; where:
[0045]The protocol initialization unit is used to read the XMLParser field information in the configuration XML file and load data, and parse the data into node device object Device, data frame object PD0 and data object Signal according to the specific data type, and to obtain the data type to initialize;
[0046] The buffer area creation unit creates a continuous buffer area according to the data memory length information of the obtained data frame object PD0, as a data pool used in common when the underlying communication module is written and the application layer data is read;
[0047] After the underlying communication module receives a new data frame in the data pool, it extracts the frame hea...
Embodiment 2
[0059] More specifically, such as figure 2 As shown, a general model design method for communication protocol information description based on XML format is provided, including the following steps:
[0060] S1: The protocol initialization unit reads the XMLParser field information in the configuration XML file and loads data, parses the data into node device object Device, data frame object PD0 and data object Signal according to the specific data type, and initializes the obtained data type;
[0061] S2: The buffer area creation unit creates a continuous buffer area according to the obtained data memory length information of the data frame object PD0, as a data pool commonly used when the underlying communication module is written and the application layer data is read;
[0062] S3: After the underlying communication module receives a new data frame in the data pool, it extracts the frame header information PdoID of the data frame, and queries the data frame object PD0 accor...
Embodiment 3
[0075] More specifically, on the basis of Embodiment 1 and Embodiment 2, the design process of a model is specifically described, specifically:
[0076] 1. Information description model design
[0077] The information description of the data signal Signal in the communication protocol is a key link to realize the configurability of the system construction. By abstracting the attributes of the data signal, the information description structure of the data signal is established, as shown in Table 1.
[0078] Table 1 Information description model of data signal (Signal)
[0079]
[0080]
[0081] 2. Architecture decomposition
[0082] For complex large-scale software systems, software architecture decomposition is an essential key step and an effective means to identify architectural elements. The basis of software architecture decomposition is business segmentation and functional decomposition.
[0083] The operating principle of this general communication software mod...
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