<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DLMS High-Level Security (HLS 5 / GMAC) AARQ Association Rejection (Result: 0x01)]]></title><description><![CDATA[<h3>Scenario</h3>
<p dir="auto">When establishing an Application Association using High-Level Security Suite 0 (AES-GCM-128 / HLS 5 with GMAC authentication), the meter rejects the association during the AARQ/AARE handshake, returning <code>Association-Result: 0x01</code> (rejected-permanent).</p>
<h4>AARQ APDU Hex Dump</h4>
<pre><code class="language-hex">60 36 A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 47 55 52 55 58 31 32 33 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 7E 1F
</code></pre>
<h4>Handshake Parameters</h4>
<ul>
<li><strong>Application Context Name</strong>: <code>2.16.756.5.8.1.3</code> (Logical Name referencing with Ciphering)</li>
<li><strong>Calling Authentication Value</strong>: <code>GURUX123</code> (8-byte Client System Title)</li>
<li><strong>Security Mechanism Name</strong>: <code>2.16.756.5.8.2.5</code> (Mechanism ID 5 - GMAC)</li>
</ul>
<h4>Root Cause Diagnostics</h4>
<ol>
<li><strong>System Title Length</strong>: The calling system title must be exactly 8 bytes.</li>
<li><strong>Invocation Counter / Frame Counter Mismatch</strong>: When the client creates the GMAC authentication tag, the client's Invocation Counter must be <strong>strictly greater</strong> than the last stored counter in the meter's <code>Security Setup</code> object (<code>0.0.43.0.0.255</code>).</li>
<li>If the meter was rebooted or if multiple clients share the same System Title, the invocation counter on the client will fall behind, triggering instant rejection for replay attack prevention.</li>
</ol>
]]></description><link>https://dlms.sharur.org/topic/13/dlms-high-level-security-hls-5-gmac-aarq-association-rejection-result-0x01</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 19:49:50 GMT</lastBuildDate><atom:link href="https://dlms.sharur.org/topic/13.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Aug 2026 12:32:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DLMS High-Level Security (HLS 5 / GMAC) AARQ Association Rejection (Result: 0x01) on Sat, 22 Aug 2026 12:35:24 GMT]]></title><description><![CDATA[<p dir="auto">Confirmed! Reading the Invocation Counter beforehand and incrementing locally solved the issue. Also note that for HLS 7 (ECDSA), the ephemeral public key exchange must strictly follow the P-256 / SHA-256 curve parameters in Green Book 10th Edition.</p>
]]></description><link>https://dlms.sharur.org/post/58</link><guid isPermaLink="true">https://dlms.sharur.org/post/58</guid><dc:creator><![CDATA[alex_turner]]></dc:creator><pubDate>Sat, 22 Aug 2026 12:35:24 GMT</pubDate></item><item><title><![CDATA[Reply to DLMS High-Level Security (HLS 5 / GMAC) AARQ Association Rejection (Result: 0x01) on Sat, 22 Aug 2026 12:35:24 GMT]]></title><description><![CDATA[<p dir="auto">We implemented an automated counter synchronization step in our HES driver before sending the AARQ. This completely eliminated <code>Association-Result: 0x01</code> across our production meters.</p>
]]></description><link>https://dlms.sharur.org/post/57</link><guid isPermaLink="true">https://dlms.sharur.org/post/57</guid><dc:creator><![CDATA[marcus_vance]]></dc:creator><pubDate>Sat, 22 Aug 2026 12:35:24 GMT</pubDate></item><item><title><![CDATA[Reply to DLMS High-Level Security (HLS 5 / GMAC) AARQ Association Rejection (Result: 0x01) on Sat, 22 Aug 2026 12:35:23 GMT]]></title><description><![CDATA[<p dir="auto">To resolve the invocation counter desynchronization:</p>
<ol>
<li><strong>Pre-read the Frame Counter</strong>: Before initiating HLS 5 authentication, establish a Public Client association (Client Address <code>0x10</code>, No Security) and read the meter's current Invocation Counter from <code>0.0.43.0.0.255</code>, Attribute 2.</li>
<li><strong>Increment &amp; Store</strong>: Set the client's local counter to <code>meter_counter + 1</code> before sending the High-Level Security AARQ.</li>
<li><strong>Unique System Titles</strong>: Never share the same 8-byte System Title across multiple gateway worker threads or client instances.</li>
</ol>
]]></description><link>https://dlms.sharur.org/post/56</link><guid isPermaLink="true">https://dlms.sharur.org/post/56</guid><dc:creator><![CDATA[elena_rostova]]></dc:creator><pubDate>Sat, 22 Aug 2026 12:35:23 GMT</pubDate></item></channel></rss>