A method and device for improving DL / T 698.45 protocol transmission efficiency
By obtaining the object short identifier and removing the data self-parsing part, the combination generates a streamlined DL/T 698.45 protocol, which solves the problem of low transmission efficiency caused by protocol coding redundancy and achieves more efficient data transmission.
Patent Information
- Application Number
- CN202111231557.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-10-22
AI Technical Summary
The encoding method of the DL/T 698.45 protocol is highly redundant, resulting in large message lengths and low transmission efficiency. It is especially difficult to apply on devices with limited resources or limited bandwidth.
By obtaining the object short identifier, removing the data self-parsing part of the application service, combining the object short identifier and the simplified application service, a simplified DL/T 698.45 protocol is generated for data transmission, using hexadecimal encoding and matching attribute descriptors to reduce Encoding length.
It significantly reduces the byte length of data transmission and improves transmission efficiency. It is especially suitable for devices with a small number of objects and simple services, such as sensing devices.
Smart Images

Figure CN114884927B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data coding, and in particular to a method and device for improving the transmission efficiency of the DL / T698.45 protocol. Background Art
[0002] The full name of the DL / T 698.45 protocol is "DL / T 698.45-2017 Electric Energy Information Collection and Management System Part 4-5: Communication Protocol-Object-Oriented Data Exchange Protocol", hereinafter referred to as the "DL / T 698.45 protocol", which is the communication protocol currently used in the electric energy information collection and management system in the power industry. It has been widely used in measuring equipment, user stations, etc. As the protocol is used more and more widely, new problems have also been brought about. On some devices with limited resources or bandwidth or the pursuit of efficient communication, due to the large redundancy of the DL / T 698.45 protocol encoding method, the message length is large and the transmission efficiency is low. Therefore, an efficient and concise encoding method is needed to reduce the application difficulty and improve the transmission efficiency. Summary of the invention
[0003] To solve the above problems, the present application provides a method for improving the transmission efficiency of the DL / T 698.45 protocol, comprising:
[0004] Get the object short identifier in the DL / T698.45 protocol mapping table;
[0005] Obtain the read, set and operate application services corresponding to the object short identifier;
[0006] Removing the self-analyzed part of the data of the application service to obtain a simplified application service;
[0007] The object short identifier and the simplified application service are combined to obtain a simplified DL / T698.45 protocol, and data transmission is performed through the simplified DL / T698.45 protocol.
[0008] Preferably, obtaining the object short identifier in the DL / T698.45 protocol mapping table includes:
[0009] The DL / T698.45 protocol mapping table pregenerates the object short identifier of the protocol;
[0010] The object short identifier is obtained through the DL / T698.45 protocol mapping table, and the object short identifier is represented by hexadecimal coding.
[0011] Preferably, the data self-analysis part of the application service is removed to obtain a simplified application service, including:
[0012] The data related to describing the data attributes in the application service is removed from the parsing part, and the data body in the application service is retained.
[0013] Preferably, the protocol object short identifier and the simplified application service are combined to obtain a simplified DL / T698.45 protocol, including:
[0014] The protocol object short identifier is matched with the property descriptor and method descriptor in the simplified application service to obtain the simplified DL / T698.45 protocol.
[0015] The present application also provides a device for improving the transmission efficiency of the DL / T698.45 protocol, including:
[0016] An object short identifier acquisition unit, used for acquiring an object short identifier in a DL / T698.45 protocol mapping table;
[0017] An application service acquisition unit, used to acquire the read, set and operate application services corresponding to the object short identifier;
[0018] A self-analyzing part removing unit, used to remove the self-analyzing part of the data of the application service to obtain a simplified application service;
[0019] The data transmission unit is used to combine the object short identifier and the simplified application service to obtain the simplified DL / T698.45 protocol, and perform data transmission through the simplified DL / T698.45 protocol.
[0020] Preferably, the object short identifier obtaining unit includes:
[0021] An object short identifier generating subunit is used for pre-generating an object short identifier of the protocol in a DL / T698.45 protocol mapping table;
[0022] The object short identifier acquisition subunit is used to acquire the object short identifier through the DL / T698.45 protocol mapping table, and the object short identifier is represented by hexadecimal coding.
[0023] Preferably, the self-analyzing part removal unit comprises:
[0024] The data related to describing the data attributes in the application service is removed from the parsing part, and the data body in the application service is retained.
[0025] Preferably, the data transmission unit comprises:
[0026] The matching subunit is used to match the protocol object short identifier with the property descriptor and method descriptor in the simplified application service to obtain the simplified DL / T698.45 protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of a method for improving the transmission efficiency of the DL / T 698.45 protocol according to an embodiment of the present application;
[0028] Figure 2 It is a schematic diagram of a device for improving 698.45 protocol transmission efficiency in DL / T provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0030] Figure 1 is a flow chart of a method for improving the transmission efficiency of the DL / T 698.45 protocol according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0031] Step S101, obtaining the object short identifier in the DL / T698.45 protocol mapping table.
[0032] At present, the byte length of the object identifier (OI) of the DL / T 698.45 protocol is a long integer, which results in a larger message length and reduced transmission performance.
[0033] In the present application, the DL / T698.45 protocol mapping table pregenerates the object short identifier of the protocol, and then the object short identifier is obtained through the DL / T698.45 protocol mapping table, and the object short identifier is represented by hexadecimal encoding. The object short identifier (OI) of the DL / T 698.45 protocol consists of one byte and its format definition is shown in Table 1.
[0034] Table 1 Object short identifier definition
[0035]
[0036] Since the objects of the DL / T 698.45 protocol are defined using short identifiers, the objects of the DL / T 698.45 protocol are also called short objects.
[0037] The DL / T698.45 protocol mapping table is obtained through an object mapping method, which includes a relationship mapping between an object identifier OI, an object attribute descriptor OAD, an object method descriptor OMD, and a short object identifier SOI, a short object attribute descriptor SOAD, and a short object method descriptor SOMD in this application.
[0038] At present, the byte length of the object identifier (OI) of the DL / T 698.45 protocol is a short integer with a 2-byte hexadecimal code, and the object attribute descriptor OAD and the object method descriptor OMD are both represented by a 4-byte hexadecimal code. Since OI, OAD, and OMD in the DL / T 698.45 protocol are the basic parts of the entire protocol, reducing their encoding length will help improve transmission efficiency.
[0039] In this application, short object identifier SOI is used instead of OI, short object attribute descriptor SOAD is used instead of OAD, and short object method descriptor SOMD is used instead of OMD.
[0040] The short object identifier SOI consists of one byte and is represented by hexadecimal encoding. Its representation range is reduced 256 times compared to OI. It can be used for devices that do not require a large number of objects.
[0041] The description method of the short object attribute descriptor SOAD is shown in Table 2, which consists of two bytes, which is half the size of the original OAD. The description method of the short object description method descriptor SOMD is shown in Table 3, which consists of 2 bytes, which is half the size of the original OMD.
[0042] Table 2 SOAD data type definitions
[0043]
[0044] Table 3 SOMD data type definition
[0045]
[0046] Step S102: Obtain the reading, setting and operating application services corresponding to the object short identifier.
[0047] Application layer services based on short object identifiers include client services (Client-APDU) and server services (Server-APDU), as shown in Tables 4 and 5.
[0048] Table 4 Client-APDU definition
[0049]
[0050] Table 5 Server-APDU definition
[0051]
[0052]
[0053] Obtain the read, set and operate application services corresponding to the object short identifier, including the client service including read request, set request and operation request, and the server service including read response, set response and operation response. See Table 6 to Table 11.
[0054] 1. Request to read GET-Request
[0055] Table 6 GET-Request data type definition
[0056]
[0057] 2. Response reading GET-Response
[0058] Table 7 GET-Response1 data type definition
[0059]
[0060] 3. Set-Request
[0061] Table 8 SET-Request data type definition
[0062]
[0063] 4. SET-Response
[0064] Table 9 SET-Response data type definition
[0065]
[0066]
[0067] 5. ACTION-Request
[0068] Table 10 ACTION-Request data type definition
[0069]
[0070] 6. ACTION-Response
[0071] Table 11 ACTION-Response data type definition
[0072]
[0073] Step S103, removing the data of the application service from the parsing part to obtain a simplified application service.
[0074] The data related to describing the data attributes in the application service is removed from the parsing part, and the data body in the application service is retained.
[0075] Before the application of the object short identifier, the data body in the DL / T698.45 protocol message is self-parsed, and the data is described by the data type, the number of structure elements, etc. In this application, the data body omits the description data such as the data type and the number of structure elements, reducing the encoding length. Before the application of the object short identifier, the data parsing of the response message does not need to rely on the request message for parsing. The response message needs to carry the relevant content of the request message, which increases the message length. In this application, the response message omits the relevant content of the request message such as the object attribute descriptor OAD and the method descriptor OMD, reducing the encoding length, and can still be parsed through the context association between the request message and the response message.
[0076] Step S104: Combine the object short identifier and the simplified application service to obtain a simplified DL / T698.45 protocol, and perform data transmission through the simplified DL / T698.45 protocol.
[0077] The protocol object short identifier is matched with the attribute descriptor and method descriptor in the simplified application service to obtain the simplified DL / T698.45 protocol, and data is transmitted through the simplified DL / T698.45 protocol, thereby improving the transmission efficiency. The simplified DL / T698.45 protocol is suitable for devices with a small number of objects and simple services, which are generally sensor devices, and are not suitable for electric meters or collection terminals.
[0078] Best practices for specific applications
[0079] 1. Read request
[0080] Request: 11 01 03 00
[0081] 11——
[11] GET-Request
[0082] 01 03——SOAD
[0083] 00——Time stamp field
[0084] Response: 91 01 00 01 00 00
[0085] 91——
[145] GET-Response
[0086] 01——There is data
[0087] 00 01——The protocol version number is 0001
[0088] 00——Follow-up reporting information domain
[0089] 00——Time stamp field
[0090] The corresponding byte length of the application general identification read request is as follows:
[0091] Request: 05 01 01 44 00 03 00 00
[0092] Response: 85 01 01 44 00 03 00 01 16 00 01
[0093] Comparing the byte lengths of the regular identifier and the short identifier, the results are as follows:
[0094] conventional The present invention Percentage savings ask 8 bytes 4 bytes 50% response 11 bytes 6 bytes 45%
[0095] 2. Set up the request
[0096] Request: 12 01 06 07E5 03 13 04 08 05 00 00 89 00
[0097] 12——
[12] SET-Request
[0098] 01 06——SOAD
[0099] 07E5 03 13 04 08 05 00 00 89——date_time: 2021-03-19 08:05:00:137
[0100] 00——Time stamp field
[0101] Response: 92 00 00 00
[0102] 92——
[146] SET-Response
[0103] 00 - Success
[0104] 00——Follow-up reporting information domain
[0105] 00——Time stamp field
[0106] The corresponding byte length of the application general identification setting request is as follows:
[0107] Send: 06 01 02 40 00 07 00 1B E5 03 13 04 08 05 00 00 89 00
[0108] Response: 86 01 02 40 00 07 00 00 00 00
[0109] Comparing the byte lengths of the regular identifier and the short identifier, the results are as follows:
[0110]
[0111]
[0112] 3. Operation Request
[0113] Request: 13 01 01 00 00
[0114] 13——
[13] ACTION-Request
[0115] 01 01——SOMD
[0116] 00——Method parameters
[0117] 00——Time stamp field
[0118] Response: 93 00 00 00 00
[0119] 93——
[147] ACTION-Response
[0120] 00 - Success
[0121] 00——Results
[0122] 00——Follow-up reporting information domain
[0123] 00——Time stamp field
[0124] The corresponding byte length of the application general identification operation request is as follows:
[0125] Send: 07 01 05 00 10 01 00 0F 00 00
[0126] Response: 87 01 05 00 10 01 00 00 00 00 00
[0127] Comparing the byte lengths of the regular identifier and the short identifier, the results are as follows:
[0128] conventional The present invention Percentage savings ask 10 bytes 5 bytes 50% response 11 bytes 5 bytes 55%
[0129] It can be seen from the above embodiments that the byte length of the short object of the DL / T 698.45 protocol is significantly shorter than that of the conventional identifier when it is called. Through the method for improving the transmission efficiency of the DL / T 698.45 protocol provided by the present application, the encoding method of the DL / T 698.45 protocol is efficient and concise, and the data transmission efficiency is improved. The problem that the encoding method of the DL / T 698.45 protocol in the prior art is relatively redundant, resulting in a large message length and low transmission efficiency is solved.
[0130] Based on the same inventive concept, the present application also provides a device 200 for improving the transmission efficiency of the DL / T 698.45 protocol, such as Figure 2 As shown, including:
[0131] The object short identifier acquisition unit 210 is used to acquire the object short identifier in the DL / T698.45 protocol mapping table;
[0132] An application service acquisition unit 220 is used to acquire the read, set and operate application services corresponding to the object short identifier;
[0133] A self-analyzing part removing unit 230, configured to remove the self-analyzing part of the data of the application service to obtain a simplified application service;
[0134] The data transmission unit 240 is used to combine the object short identifier and the simplified application service to obtain a simplified DL / T698.45 protocol, and perform data transmission through the simplified DL / T698.45 protocol.
[0135] Preferably, the object short identifier obtaining unit includes:
[0136] An object short identifier generating subunit is used for pre-generating an object short identifier of the protocol in a DL / T698.45 protocol mapping table;
[0137] The object short identifier acquisition subunit is used to acquire the object short identifier through the DL / T698.45 protocol mapping table, and the object short identifier is represented by hexadecimal coding.
[0138] Preferably, the self-analyzing part removal unit comprises:
[0139] The data related to describing the data attributes in the application service is removed from the parsing part, and the data body in the application service is retained.
[0140] Preferably, the data transmission unit comprises:
[0141] The matching subunit is used to match the protocol object short identifier with the property descriptor and method descriptor in the simplified application service to obtain the simplified DL / T698.45 protocol.
[0142] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0143] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalents that do not depart from the spirit and scope of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for improving the transmission efficiency of DL / T698.45 protocol, characterized in that: include: Get the object short identifier in the DL / T698.45 protocol mapping table; Obtain the read, set and operate application services corresponding to the object short identifier; The data self-analysis part of the application service is removed to obtain a simplified application service, including: Removing the self-parsed portion of the data related to describing the data attributes in the application service, and retaining the data body in the application service; Combining the object short identifier and the simplified application service to obtain a simplified DL / T698.45 protocol, and performing data transmission through the simplified DL / T698.45 protocol, including: The protocol object short identifier is matched with the property descriptor and method descriptor in the simplified application service to obtain the simplified DL / T698.45 protocol.
2. The method according to claim 1, characterized in that Get the short identifier of the object in the DL / T698.45 protocol mapping table, including: The DL / T698.45 protocol mapping table pregenerates the object short identifier of the protocol; The object short identifier is obtained through the DL / T698.45 protocol mapping table, and the object short identifier is represented by hexadecimal coding.
3. A device for improving the transmission efficiency of DL / T698.45 protocol, characterized in that: include: An object short identifier acquisition unit, used for acquiring an object short identifier in a DL / T698.45 protocol mapping table; An application service acquisition unit, used to acquire the read, set and operate application services corresponding to the object short identifier; The self-analysis part removing unit is used to remove the self-analysis part of the data of the application service to obtain a simplified application service, including: Removing the self-parsed portion of the data related to describing the data attributes in the application service, and retaining the data body in the application service; A data transmission unit, used for combining the object short identifier and the simplified application service to obtain a simplified DL / T698.45 protocol, and performing data transmission through the simplified DL / T698.45 protocol, including: The matching subunit is used to match the protocol object short identifier with the property descriptor and method descriptor in the simplified application service to obtain the simplified DL / T698.45 protocol.
4. The device according to claim 3, characterized in that The object short identifier acquisition unit includes: An object short identifier generating subunit is used for pre-generating an object short identifier of the protocol in a DL / T698.45 protocol mapping table; The object short identifier acquisition subunit is used to acquire the object short identifier through the DL / T698.45 protocol mapping table, and the object short identifier is represented by hexadecimal coding.
