I'm using Gurux DLMS Director to test my smart meter code having dlms functionality. i'm using STM32 micro controller. The steps I followed:
1) I added device, with manufacturer as "Saudi Electricity Company", start protocol as DLMS, logical name referencing, low level authentication and added respective details.
2) I'm testing my meter for Serial(RS485) port, so added COM port and baud rate with rspective details.
3) After adding all the details, I tried to connect with meter. Connection is formed.
But when i'm trying to perform "Read", I'm getting a response as "GetObject fail".
Can you please suggest what should I do to get response for the "Read" request.
Please, don't send notification emails. It doesn't help you to get an answer any faster.
Can you read your meter without authentication? How many objects you have implemented?
Hello Mikko,
Thank you for response. And sorry for the notification mail, I'll take care about the same.
Currently I have Implemented 500 objects. I'll try to test meter without authentication.
As per your suggestion, I have tested without authentication for 500 objects. I'm able to read all objects.
But when I'm trying with Authentication, I'm not able to read the data.
About memory, we are using internal flash and RAM memory of microcontroller STM32L476RG, which is, flash - 512KB, and SRAM - 96KB.
Have you set the password? I believe that is the problem.
Check your low authentication association view.
Do you have created two association view? One for Low authentication and one without authentication?
Yes, I have set the password, and all the security keys as well. Also created different associations for no authentication, low authentication and high authentication. Still facing problem while reading the data. Can you suggest what may be another issue?
in svr_findObject return always low authentication and in svr_isTarget return always true.
if it still fails return DLMS_SOURCE_DIAGNOSTIC_NONE in svr_validateAuthentication.
Now the password is not checked at all and connection succeeds everytime.
We are not using GuruX stack code for meter, we have our meter's code. So I have done changes suggested by you in our side of the code, but I'm getting an error message dialog box of "Frame not fully receive". Can you please help with that.
Hello Mikko,
Sorry for the delay in response. I have checked code from our side and now I'm able to get response from meter as well as the error "Frame not received fully" is also resolved.
I have tested my meter on GuruX DLMS Director for Indian Standard as well, and is working fine.
Please respond as early as
Please respond as early as possible
Hi,
Hi,
Please, don't send notification emails. It doesn't help you to get an answer any faster.
Can you read your meter without authentication? How many objects you have implemented?
BR,
Mikko
Hello Mikko,
Hello Mikko,
Thank you for response. And sorry for the notification mail, I'll take care about the same.
Currently I have Implemented 500 objects. I'll try to test meter without authentication.
Thank you.
Hi,
Hi,
If you have 500 objects it might be that you don't enough memory. How much memory you have?
Are you using malloc?
BR,
Mikko
Hello,
Hello,
As per your suggestion, I have tested without authentication for 500 objects. I'm able to read all objects.
But when I'm trying with Authentication, I'm not able to read the data.
About memory, we are using internal flash and RAM memory of microcontroller STM32L476RG, which is, flash - 512KB, and SRAM - 96KB.
Thank you and regards,
Hi Anudeep,
Hi Anudeep,
Have you set the password? I believe that is the problem.
Check your low authentication association view.
Do you have created two association view? One for Low authentication and one without authentication?
BR,
Miko
Hi Mikko,
Hi Mikko,
Yes, I have set the password, and all the security keys as well. Also created different associations for no authentication, low authentication and high authentication. Still facing problem while reading the data. Can you suggest what may be another issue?
Thanks and regards,
Hi,
Hi,
in svr_findObject return always low authentication and in svr_isTarget return always true.
if it still fails return DLMS_SOURCE_DIAGNOSTIC_NONE in svr_validateAuthentication.
Now the password is not checked at all and connection succeeds everytime.
BR,
Mikko
Hi Mikko,
Hi Mikko,
Surely I'll check with the modifications, and let you know the status.
Have a Great day!
Thanks and regards,
Hi Mikko,
Hi Mikko,
We are not using GuruX stack code for meter, we have our meter's code. So I have done changes suggested by you in our side of the code, but I'm getting an error message dialog box of "Frame not fully receive". Can you please help with that.
Have a Great Day!
Thanks and regards,
Hi,
Hi,
Frame is not fully received. You need to check what is causing that. Check that amount of the bytes is correct.
BR,
Mikko
Hello Mikko,
Hello Mikko,
Sorry for the delay in response. I have checked code from our side and now I'm able to get response from meter as well as the error "Frame not received fully" is also resolved.
I have tested my meter on GuruX DLMS Director for Indian Standard as well, and is working fine.
Thank you for your kind support!
Thanks & Regards,