Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Dark

Collapse
SHARUR
Community Wiki DLMS/COSEM Tools
Search Sign in

What is the biggest conceptual culture shock when transitioning from Modbus/DNP3 to DLMS/COSEM?

Scheduled Pinned Locked Moved General Discussion
modbusdlmsprotocolcompariarchitecturediscussion
4 Posts 3 Posters 16 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
  • E Offline
    E Offline
    elena_rostova
    wrote on last edited by
    #1

    🛡️ Technical Redaction & Safe Harbor Warning:
    Industrial register maps and proprietary meter firmware architectures have been generalized.

    After 5 years developing Modbus RTU firmware where reading a value was as simple as function code 0x03 on register 40001, transitioning to DLMS / COSEM (IEC 62056-62 Clause 3.2) to read voltage 1.0.32.7.0.255 feels like a massive conceptual leap:

    • First, SNRM/UA handshake on HDLC layer;
    • Then, AARQ association with ACSE mechanism names and conformance blocks;
    • Then, A-XDR nested structures, scalers, unit enums, and Class 3/4 register models;
    • Finally, AES-GCM encryption with Invocation Counters.

    For embedded developers moving from flat industrial protocols to DLMS, what was the most surprising design philosophy difference?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alex_turner
      wrote on last edited by
      #2

      The fundamental divergence lies in PLC memory address mapping vs Legal Metrology Object Contracts:

      • Modbus (Process Control Philosophy):
        A register like 40001 is purely raw bytes in PLC SRAM. The protocol does not know if it represents Celsius, Volts, or RPM. It relies entirely on external static Excel mapping sheets. There is zero security, zero timestamping, and zero non-repudiation.

      • DLMS / COSEM (Self-Describing Legal Metrology Philosophy):
        Every metering value is an object instance per IEC 62056-62. A Class 3 Register (1.0.1.8.0.255) contains its value, signed scaler exponent, engineering unit enum (30 = Wh), and access permissions. Any standard client worldwide can discover and interpret the data without a manufacturer manual.

      When managing 20 million meters from 15 different vendors in a national smart grid, DLMS object standardization saves millions in integration costs.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        david_miller
        wrote on last edited by
        #3

        On the other hand, the embedded footprint cost is substantial:
        A Modbus slave needs 200 lines of C and 512 bytes of RAM.
        A compliant DLMS stack with COSEM object dictionary, A-XDR dynamic decoder, HDLC segmentation buffers, and AES-GCM cryptography requires at least 32KB RAM and 128KB Flash per Blue Book Section 4.4, driving the industry transition from 8-bit MCUs to ARM Cortex-M0+/M4.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          elena_rostova
          wrote on last edited by
          #4

          Looking closely at @alex_turner's explanation of self-describing legal contracts, the complexity makes sense now.
          Reading a scaled register value for 1.0.1.8.0.255:

          02 02 06 00 00 03 E8 12 00 1E
          

          decodes to a structure containing integer 1000, scaler 0, and unit 30 (Wh). The overhead delivers interoperability per IEC 62056-62.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups