how to read profile generic in gurux dlms ansi c ReadRowsByEntry

22 posts / 0 new
Last post
raghavendra
how to read profile generic in gurux dlms ansi c ReadRowsByEntry

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();

}

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

Kurumi
Kurumi's picture

Hi,

Have you read capture objects first?

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

Kurumi
Kurumi's picture

Hi,

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

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

raghavendra

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

raghavendra

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

Regards,
Raghavendra

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

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

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

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

Regards,
Raghavendra

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

Hi sir,

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

Regards,
Raghavendra