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 2 months 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 2 months 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 2 months 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 2 months 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin