I am using you C++ implementation to read some DLMS meters I have around. I can read an OBIS code with FindByLn successfully, but not without it. Here a snippet of the code I am using for the both cases:
And here is the output:
InitializeConnection
GetAssociationView
Reading directly:
ret: 9
ret: 9
Reading with FindByLn:
reply: 180
reply: 4/19/2018 09:31:55
May you please help me figure it out? I want to read directly because it will be faster than using GetAssociationView before reading, as GetAssociationView takes some time.
You did not tell what you want to read, but you need to define object type and OBIS code.
If they are right meter reply error. For this reason you can't use DLMS_OBJECT_TYPE_ALL when you read
data from the meter. You can use it to find item by OBIS code.
Thank you very much, I used CGXDLMSRegister before but it gave segmentation fault, I thought it was not working, it turn out I have used a wrong OBIS code, Now CGXDLMSRegister works for all the registers I want to read. Thank you again and sorry for my silly mistake.
Directly reading an OBIS code seems to be not working [C++]
Hi,
You did not tell what you want to read, but you need to define object type and OBIS code.
If they are right meter reply error. For this reason you can't use DLMS_OBJECT_TYPE_ALL when you read
data from the meter. You can use it to find item by OBIS code.
Something like this:
CGXDLMSRegister r("1.0.9.8.7.255");
comm.Read(&o, 3, reply);
BR,
Mikko
Thank you very much, I used
Thank you very much, I used CGXDLMSRegister before but it gave segmentation fault, I thought it was not working, it turn out I have used a wrong OBIS code, Now CGXDLMSRegister works for all the registers I want to read. Thank you again and sorry for my silly mistake.
Best Regards,
Abdulrahman
Directly reading an OBIS code seems to be not working [C++]
Hi,
Thank you for let me know that you solved it.
BR,
Mikko