I am developing android application which is communicate with the meter using Optical Probe. I need to know how to get values of obis codes under profile generic obis codes in my case 1.0.98.1.0.255,1.0.99.1.0.255,1.0.99.2.0.255 those are my obis codes to read in profile generic. When i want to read those values in android application i am getting empty object array named as Object[0]@4636,LIFO,....like wise data was printing in android app or some times it is showing 'READ CAPTURE OBJECTS FIRST'. But when i read the profile generic data in DLMS Director by selecting time range to 'ALL' i am getting all the data perfectly. So please tell me how to read profile generic values like DLMS Director in android application. I am facing this issue from past 2 days please help me with is
You need to read captured objects (attribute index 3) first. Then you can read buffer (attribute index 2).
After you have read data from the meter you can see read values in the buffer.
Like this:
GXDLMSProfileGeneric p = new GXDLMSProfileGeneric("OBIS code");
//Read captured objects.
readObject(p, 2);
//
readRowsByRange(p, start time, end time);
//You can get data from here:
b.getBuffer();
How to read Profile generic values in gurux dlms android
Hi,
You need to read attribute index 3 first. It describes captured columns. Then you can read attribute 2. It contains data rows. It's array.
BR,
Mikko
How to read Profile generic values in gurux dlms android
Hai,
Will you explain me clearly. Attribute index 3 means third value in the list of populated obis codes correct.??
How to read Profile generic values in gurux dlms android
Hi,
You need to read captured objects (attribute index 3) first. Then you can read buffer (attribute index 2).
After you have read data from the meter you can see read values in the buffer.
Like this:
GXDLMSProfileGeneric p = new GXDLMSProfileGeneric("OBIS code");
//Read captured objects.
readObject(p, 2);
//
readRowsByRange(p, start time, end time);
//You can get data from here:
b.getBuffer();
BR,
Mikko
How to read Profile generic values in gurux dlms android
Hai,
Ok i'll try and get back to you