I'm working on TI - MSP 432. i am toltaly new to DLMS protocol, i took
Arduino client code from gurux library and i ported serial communication to
MSP 432. Now i can able to read the DLMS_OBJECT_TYPE_REGISTER values.
Thanks, i tried to use GuruxDLMSClientExample code, on that i am not getting any data. For me Gurux arduino example code is working fine. Can please help me how to read profile generic in Gurux arduino example code. I tried to called this function " com_readProfileGenerics(); " still it is not working, i dont know how to use where i will get the data, please help me in this.
Yes I can able to receive data from GXDLMSDirector. i just called the function "com_readProfileGenerics" i don't know what changes to be done in the function.
when i call the function it is not entering into the For loop, please find the attached screenshot
Hi,
Hi,
Check GuruxDLMSClientExample. That reads the association view from the meter and reads all the data.
You can read all objects in the same way as register.
gxData data;
int ret;
const unsigned char ln[6] = { 1,1,21,25,0,255 };
if ((ret = INIT_OBJECT(data, DLMS_OBJECT_TYPE_DATA, ln)) == 0)
{
if(com_read(BASE(data), 2) == DLMS_ERROR_CODE_OK)
{
}
}
BR,
Mikko
Hi Mikko,
Hi Mikko,
Thanks for your valuable reply, now i can able to read DLMS_OBJECT_TYPE_DATA . can you please help me how to read DLMS_OBJECT_TYPE_PROFILE_GENERIC.
Thanks & Regards
Ajmal
Hi Ajmal,
Hi Ajmal,
There are several ways to read profile generic. Check GuruxDLMSClientExample. It'll read historical data by range and entry.
BR,
Mikko
Hi Mikko,
Hi Mikko,
Thanks, i tried to use GuruxDLMSClientExample code, on that i am not getting any data. For me Gurux arduino example code is working fine. Can please help me how to read profile generic in Gurux arduino example code. I tried to called this function " com_readProfileGenerics(); " still it is not working, i dont know how to use where i will get the data, please help me in this.
Thanks & Regards
Ajmal
Hi,
Hi,
Can you try to read your meter with GXDLMSDirector? Make sure that you can read same profile generic that you try to read. Let me know what happened.
BR,
Mikko
Hi Mikko,
Hi Mikko,
Yes I can able to receive data from GXDLMSDirector. i just called the function "com_readProfileGenerics" i don't know what changes to be done in the function.
when i call the function it is not entering into the For loop, please find the attached screenshot
Thanks & Regards
Ajmal
Hi Ajmal,
Hi Ajmal,
Did you read capture columns first (attribute index 3)?
What OBIS code you try to read?
BR,
Mikko
Hi Mikko,
Hi Mikko,
Thanks for your replay. Yes, i am calling the function still i am facing the same problem. please check this is the correct way to call the function
gxProfileGeneric profile_g;
cosem_init(&profile_g.base, DLMS_OBJECT_TYPE_PROFILE_GENERIC,"0.0.99.98.0.255");
com_readProfileGenericColumns();
com_readProfileGenerics();
After calling this function in which structure i will get the data.
Thanks & Regards
Ajmal
Hi Mikko,
Hi Mikko,
Need any permission to read Profile Generic
gxProfileGeneric profile_g;
cosem_init(&profile_g.base, DLMS_OBJECT_TYPE_PROFILE_GENERIC,"0.0.99.98.0.255");
com_readProfileGenericColumns();
com_readProfileGenerics();
Thanks & Regards
Ajmal