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. How To Read Profile Generic In Gurux Dlms Ansi C ReadRowsByEntry

how to read profile generic in gurux dlms ansi c ReadRowsByEntry

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 raghavendra , 8 March, 2019
Forums
Gurux.DLMS

Hi sir,

i am trying to read profile generic data using dlms ansi c code but i am not able to read please tell me how to configure and how to pass object. now i am trying bellow mentioned way but i am not able to read proper data please tell me as much as early i am hopefully waiting for your replay

int main()
{
gxProfileGeneric reg_profile;

uart_init();
cl_init(&meterSettings,1,32,1,DLMS_AUTHENTICATION_LOW,"lnt1", DLMS_INTERFACE_TYPE_HDLC);
cosem_init(( gxObject* )&reg_profile, DLMS_OBJECT_TYPE_PROFILE_GENERIC,"0.0.99.98.0.255");
com_readRowsByEntry((gxProfileGeneric*)&reg_profile,1,1);
com_close();

}

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Hi,

Hi,

Please, don't make duplicates from the same topic.
I have answered your question here:
http://www.gurux.fi/node/13277

BR,
Mikko

raghavendra

7 years 3 months ago

Gurux dlms ansi c profile generic

When i am executing com_readrowbyentry function it is showing error "parameters are invalid" and retuns error 252
When i am debugged objectcapture and buffer size is zero but i am receiveing fram from energy meter and also when it is coming out of com_readrowbyentry the values are not updating stricture parameters but when i am reading instantaneous values com_read function not giving any error and after this function structure parameters of the object updated sorry for creating same topic 2 issues i will continue this one only please help me i am fully confuse i am tried with whatever functions given reading rows function and column function still after receiveing fram from energy meter it is going hdlc fram then it is going generic profile function to read captureobjects and buffer value but it showing both size is zero that's why it is not giving any value whatever above fram that fram i will get from the energy meter but captureobjects and buffer size showing zero and after coming out of com_readrowbyentry function it is showing error please sir tell me how to solved i am fully confused

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Hi,

Hi,

Have you read capture objects first?

BR,
Mikko

raghavendra

7 years 3 months ago

In reply to Hi, by Kurumi

Gurux dlms ansi c profile generic

using com_read(&prof_gen,3); function I tried to read generic profile but I am not getting any values may be I think I did mistake in configuration please just tell me what are the functions I want to use and configuration just send me to read one generic profile data because for gerenic profile configuration also I am using same functions whatever I am used for register type

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Hi,

Hi,

Capture objects are updated to prof_gen struct.
Historical data you can get from buffer property.

BR,
Mikko

raghavendra

7 years 2 months ago

In reply to Hi, by Kurumi

Gurux dlms ansi c profile generic

Hi sir,
I am able to read eventlog1,2, 3 and billing profile but I am not able to read eventlog4 ,5,6 and load profile why I want to change any configuration to read event log4,5,6 and load profile

Regards,
Raghavendra

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Gurux dlms ansi c profile generic

Hi,

If you can't read all the data you should contact your meter vendor and verify that those event logs are implemented. Try to read all the data from failed event logs. Sometimes read by entry or range is not implemented for all historical values.

BR,

Mikko

raghavendra

7 years 2 months ago

In reply to Gurux dlms ansi c profile generic by Kurumi

Gurux dlms ansi c profile generic

Hi sir ,
I am able to read through gurux GXDLMS Director but when I am trying to read through gurux ansci c code I am not able to read all eventlog how I can solve this issue

Regards,
Raghavendra

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Gurux dlms ansi c profile generic

Hi,

Are you reading using "Read last 0 days" or "All" in Director?

BR,

Mikko

raghavendra

7 years 2 months ago

In reply to Gurux dlms ansi c profile generic by Kurumi

Gurux dlms ansi c profile generic

Hi sir,
I am reading using count 1 and index1 first option in director

raghavendra

7 years 2 months ago

Gurux dlms ansi c profile generic

Hi sir,
Whatever I am method using in gurux GXDLMS Director is it wright. How I can read remaining log files

Regards,
Raghavendra

raghavendra

7 years 2 months ago

In reply to Gurux dlms ansi c profile generic by Kurumi

Gurux dlms ansi c profile generic

Hi sir,
I want read "All " but dlms ansci c code there is not at all implemented read_all function to read profile generic data
How I can read all data like option given in dlms director reading "All"

Regards,
Raghavendra

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

If you want to read all, you can use a normal read command. attribute index is 2. Something like:
cl_read(pg, 2);

or com_read(pg, 2);

BR,
Mikko

raghavendra

7 years 2 months ago

In reply to Hi, by Kurumi

Gurux dlms ansi c profile generic

Hi sir,

I am tried reading all profile generic data using bellow mentioned function's but I am not able to read
//Reading capture objects
Com_read(pg,3);
//Reading profile generic data
Com_read(pg,2);

And I am able to read some time using bellow mentioned function's only single row
//Capture objects reading
Com_read(pg,3);
//Reading data
Com_readrowbyentry(pg,1,1);
I am able read eventlog 1,eventlog2,eventlog3,billing profile some time I am not able to read eventlog3 and billing profile 2nd timeI am tried again and again but first time only I am able to read second time I am not able to read eventlog3 & billing profile what is the problem please tell me sir. Hopefully I am waiting for your reply

Thanking you
Regards,
Raghavendra

raghavendra

7 years 2 months ago

Gurux dlms ansi c profile generic

Hi sir ,
I am able to read continuously eventlog 1,eventlog2,eventlog3 and billing profile but I am not able to read eventlog4,eventlog5,eventlog6. Please tell me how to read in Java code I am able to read but in ansi c code I am not able to read and also using Guru director I am able to read please tell me how to read and what is the issue .I am waiting for your reply sir

Regards,
Raghavendra

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi Raghavendra,

Hi Raghavendra,

Please, don't create several questions. You need to give more info from this. Is meter returning anything or is it returning an error?

BR,

Mikko

raghavendra

7 years 2 months ago

In reply to Hi Raghavendra, by Kurumi

Gurux dlms ansi c profile generic

Hi sir,
Than you so much your response sir Meter not returning anything when I am reading eventlog 4,5,6 and one more thing how I can set server address using c function any function is there to read and set server address

Regards,
Raghavendra

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi Raghavendra,

Hi Raghavendra,

Are you sure that event logs are implemented to the meter? What if you read them with GXDLMSDirector, is meter returning anything?

BR,
Mikko

raghavendra

7 years 2 months ago

In reply to Hi Raghavendra, by Kurumi

Gurux dlms ansi c profile generic

Hi sir,
Yes, i am able to read all eventlogs data using GXDLMSDirector.

Regards,
Raghavendra

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

If you can read data with GXDLMSDirector, you need to check that OBIS code is correct. Make sure that you are reading using with same parameters and your authentication level is the same.
All profile generics are handled in the same way. It depends from the meter what kind of data is returned. Make sure that your start and endtime are same.

BR,

Mikko

raghavendra

7 years 2 months ago

gurux dlms ansi c multi drop communication

Hi sir,

thank you so much for your replay .i will check and update.

Regards,
Raghavendra

  • 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