Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Wrong Work With RR, RNR, I Frames

Wrong work with RR, RNR, I frames

By trgv , 4 August, 2023
Forums
Gurux.DLMS

As we get RR frame with NS and NR = 0
Subtest 2: Check that the IUT is in NRM
Send an RR frame. Expect an RR frame.
This test went wrong...

Using C++ lib

Profile picture for user Kurumi

Kurumi

2 years 9 months ago

Hi, Can you tell me a little…

Hi,
Can you tell me a little bit more? Are you talking from GXDLMSDirector T_HDLC_FRAME_P2 test?

BR,
Mikko

trgv

2 years 9 months ago

In general, the library does…

In general, the library does not handle frames of this type correctly. For example, when receiving a frame with NS and NR == 0, the client or server must respond with the same frame and not increment the frame number.

Profile picture for user Kurumi

Kurumi

2 years 9 months ago

Hi, ANSI C will pass the…

Hi,

ANSI C will pass the tests because it's usually used with microcontrollers and that is the language that our clients are using.
ANSI C++ is used usually in client-side applications. I need to think should ANSI C++ also pass the DLMS tests.

BR,
Mikko

trgv

2 years 9 months ago

Since our controller…

Since our controller supports embedded linux, it was decided to use the C++ library. Here we are faced with the above problem, one of them.
Take a closer look at my PR on Github

trgv

2 years 9 months ago

In your code, when receiving…

In your code, when receiving an RR frame with N(R), the frame increment occurs, but it should not. RR should be returned with N(R) equal to the current receiver frame. If previous frame we send wasn't I frame.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin