I am using the Arduino Client C example on a Landis Gyr E650, so SN. I successfully connected to the meter using IEC62056-21 Mode E on the public client (0x10) without authetication. However I cannot read the association view. What am I doing wrong?
In com_readAllObjects I added:
ret = com_getAssociationView();
if(ret != DLMS_ERROR_CODE_OK) {
GXTRACE_INT(PSTR("com_getAssociationView failed"), ret);
return ret;
}
GXTRACE_INT(PSTR("com_getAssociationView SUCCEEDED"), ret);
after the connection was made, so after ret = com_initializeConnection();
I also added code to show the request and response in readDLMSPacket(). This gives:
Part of the data is missing from the meter reply. I believe that you have read only the first frame. You need to read all data from the better before you can parse the association view.
This question is outdated,
This question is outdated, failing to read the object list was caused by an error in de library that I reported in the General discussion forum.
Hi Jeroen,
Hi Jeroen,
Part of the data is missing from the meter reply. I believe that you have read only the first frame. You need to read all data from the better before you can parse the association view.
BR,
Mikko