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. Reading Gurux Association Logical Name Object.

Reading gurux association logical name object.

By labasvakaras , 24 May, 2023
Forums
Gurux.DLMS

Hello, i am trying to read association logical name object but i get Not enough memory available error.

I am trying to do as your client example says to read one bye one, but i never leave com_readDataBlock() method and com_readDataBlock() returns out of memory error. Should I read only one data block, parse it, then again read?

Profile picture for user Kurumi

Kurumi

3 years ago

Hi, Your meter doesn't…

Hi,

Your meter doesn't return all the bytes.
Some meters expect spesific frame size and if it's too small they can't handle it.
What meter you try to read?

BR,
Mikko

labasvakaras

3 years ago

My meter is: CL730S22. I…

My meter is: CL730S22. I have no problem to read association view with GXDLMSDirector, it should be possible with C also.

labasvakaras

3 years ago

also, i wanted to ask a…

also, i wanted to ask a question:

cl_getObjectsRequest() method has hardcoded one OBIS:

static unsigned char ln[] = { 0, 0, 40, 0, 0, 0xFF };

1. Is this OBIS code is always the same for all meters?
2. What if i have another association logical name OBIS? Will it read everything that is available?

Profile picture for user Kurumi

Kurumi

3 years ago

Hi, Check your settings. If…

Hi,

Check your settings. If you can read your meter with GXDLMSDirector you can read it also with ANSI C.

This hardcoded OBIS is the default association view. There might be multiple association views in one meter, but the current association is assigned when the client establishes the connection for the meter.

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin