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. Forums
  3. SNRMRequest Failed 252

SNRMRequest failed 252

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By dike10 , 28 November, 2019
Forums
Known problems

Hello,
I am trying to read from my meter using a linux computer and optics sensor. I can successfully read with GXDLMSDirector but using the same parameters with ANSI C++ library i get "SNRMRequest failed 252".
i am reading a hexing meter and the command is
$sudo ./gurux.dlms.client.bim -S /dev/ttyUSB0 -i -a High -P '00 00 00 00 00 00' -t Verbose

The iec handshake was successful but afterwards the "SNRMRequest failed 252" shows up.

what do i try?

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

The password is ASCII. Hex password is not supported at the moment. You need to hardcode it by yourself.

Are you receiving any reply from the meter for SNRMRequest?

BR,
Mikko

dike10

6 years 6 months ago

In reply to Hi, by Kurumi

Hi Mikko,

Hi Mikko,

No I am not recieving anything. Can you help with the hardcode, I am not sure what to edit in the code. I am quite new to the dlms protocol and i am not sure exactly how to hardcode the password.

Help!

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

I just try this with Debian. What distro you are using? What serial port you are using? Is that USB connected serial port?

BR,
Mikko

dike10

6 years 6 months ago

In reply to Hi, by Kurumi

Hi Mikko,

Hi Mikko,

I am using Debian. I am using USB connected serial port

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

Get the latest version. There is extra trace added.
"Failed to open serial port:".

If you see this serial port not exists or you don't have access to it.

BR,
Mikko

dike10

6 years 6 months ago

In reply to Hi, by Kurumi

hello Mikko,

hello Mikko,

I just downloaded the latest version and tried it out. here is what i got from the terminal

TX: 2F 3F 21 0D 0A
-> 2F 48 58 45 35 5C 32 48 58 45 31 32 0D 0A

TX: 06 32 35 32 0D 0A
InitializeConnection
TX: 10:24:45 7E A0 07 03 03 93 8C 11 7E
SNRMRequest failed 252.

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

There is a new version where there are more traces if the serial port open fails.
Let me know the results. Then we know better what causes this.

BR,
Mikko

dike10

6 years 6 months ago

In reply to Hi, by Kurumi

Hi Mikko,

Hi Mikko,

I just downloaded, ran make, and ran the executable in the bin folder. i still get the same trace. nothing new. still nothing, so i opened the GuruxDLMSClientExample/src/communication.cpp file and noticed which block of code throws the "SNRMRequest failed 252". kindly look at the screen shot below

Image
Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

252 is DLMS_ERROR_CODE_SEND_FAILED. This problem is happening in ReadDLMSPacket that is called from ReadDataBlock. There are new traces and you should see Write failed and error code.

There are couple of new traces added. Get the latest version from Github.

BR,
Mikko

BR,
Mikko

dike10

6 years 6 months ago

In reply to Hi, by Kurumi

Hi Mikko,

Hi Mikko,
Sorry it took this long for me to reply. I just tested the new version today and here's the new trace.

TX: 2F 3F 21 0D 0A
-> 2F 48 58 45 35 5C 32 48 58 45 31 32 0D 0A

TX: 06 32 35 32 0D 0A
Read failed. Timeout occurred.
InitializeConnection
TX: 11:30:18 7E A0 07 03 21 93 0F 01 7E
Read failed. Timeout occurred.
Read failed.
SNRMRequest failed 252.

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

What kind of USB optical probe (head) you are using? What meter do you try to read?

BR,
Mikko

dike10

6 years 6 months ago

Hello Mikko,

Hello Mikko,

I am trying to read a Hexing hxe310-kp meter and here is the link to the optical head i am using https://www.aliexpress.com/i/32454937586.html .

dike10

6 years 6 months ago

In reply to Hi, by Kurumi

Hello Mikko,

Hello Mikko,

I am trying to read a Hexing hxe310-kp meter and here is the link to the optical head i am using https://www.aliexpress.com/i/32454937586.html .

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

Please, don't post the same question several times. Our time zone is different we are out of the office at that time.

We have cable that looks very much like yours. We improved timing when moving from 300 to 9600 is made. Get the latest version and let me know if you have problems.

BR,
Mikko

Nikita

6 years 5 months ago

Hi,

Hi,
I have similar the problem.

I use for some devices lib develompment and I get so trace:

InitializeConnection
SNRMRequest failed 252.
InitializeConnection
GetAssociationView
InitializeConnection
SNRMRequest failed 252.
InitializeConnection
GetAssociationView
InitializeConnection
SNRMRequest failed 252.
InitializeConnection
GetAssociationView
InitializeConnection
SNRMRequest failed 252.

Is this normal that first try is SNRMRequest failed 252 ?
So is in 90 percent of cases.
And more I have the kernel panik in last version source.
Thanks.

Profile picture for user Kurumi

Kurumi

6 years 5 months ago

Hi Nikita,

Hi Nikita,

Please, if you have a new question, create a new topic. I'll answer your question there.

BR,
Mikko

  • 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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin