Descriptor-based protocol message and data interaction method and system
A protocol message and interaction method technology, applied in the field of embedded communication, can solve the problems of difficult development, high module coupling, difficult upgrade and maintenance, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0055] Taking the header of a protocol in the State Grid as an example, the protocol stipulates that the message contains the following fields:
[0056] (1) Start character: fixed value 68H, 1 byte
[0057] (2) Byte length L: including protocol identification and user data length, consisting of 2 bytes, as shown in Table 1;
[0058] Table 1
[0059] D7 D6 D5 D4 D3 D2 D1 D0 D15 D14 D13 D12 D11 D10 D9 D8
[0060] (2a) The protocol identification is represented by the two-digit code D0~D1 in Table 1;
[0061] (2b) User data length L1: composed of D2 to D15, indicating the total number of bytes.
[0062] (3) Start character: fixed value 68H, 1 byte
[0063] Then the corresponding descriptors are as follows:
[0064] (1){attrib=const, value=0x68, modelName="", bitsN=8, funcName=ConstCode,}
[0065](2a){attrib=var, value=1, modelName="", bitsN=2, funcName=ProtoCode,}
[0066] (2b){attrib=var, value=0, funcName=PackLength, bitsN=14, modelName="",...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


