how to read profile generic in gurux dlms ansi c ReadRowsByEntry

13 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,

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

Kurumi
Kurumi's picture
Hi,

Hi,

Have you read capture objects first?

BR,
Mikko

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

raghavendra
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

Kurumi
Kurumi's picture
Hi,

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

Kurumi
Kurumi's picture
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

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

raghavendra
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

Kurumi
Kurumi's picture
Gurux dlms ansi c profile generic

Hi,

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

BR,

Mikko

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

raghavendra
Gurux dlms ansi c profile generic

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

raghavendra
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

raghavendra
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