Hi ...
I am.. try to reading profile generic data, below is the code snippet i have tried..
GXDLMSProfileGeneric gp = new GXDLMSProfileGeneric("1.0.94.91.0.255");
GXReplyData reply_data = new GXReplyData();
byte[][] temp = mClient.read(gp, 3);
for (byte[] it : temp) {
readDataBlock(temp, reply_data);
}
if (gp.getDataType(3) == DataType.NONE) {
gp.setDataType(3, reply_data.getValueType());
}
mClient.updateValue(gp, 3, reply_data.getValue());
byte[][] temp1 = mClient.read(gp, 2);
for (byte[] it : temp1) {
readDataBlock(temp1, reply_data);
}
if (gp.getDataType(2) == DataType.NONE) {
gp.setDataType(2, reply_data.getValueType());
}
mClient.updateValue(gp, 2, reply_data.getValue());
GXDLMSProfileGeneric gpScalar = new GXDLMSProfileGeneric("1.0.94.91.3.255");
byte[][] temp2 = mClient.read(gpScalar, 3);
for (byte[] it : temp2) {
readDataBlock(temp2, reply_data);
}
if (gpScalar.getDataType(3) == DataType.NONE) {
gpScalar.setDataType(3, reply_data.getValueType());
}
mClient.updateValue(gpScalar, 3, reply_data.getValue());
byte[][] temp4 = mClient.read(gpScalar, 2);
for (byte[] it : temp4) {
readDataBlock(temp4, reply_data);
}
if (gpScalar.getDataType(2) == DataType.NONE) {
gpScalar.setDataType(2, reply_data.getValueType());
}
mClient.updateValue(gpScalar, 2, reply_data.getValue());
first question Is this the write way to get profile generic data and its scalar values? or there is better way or readymade methods to read package recieved from the meter.
It's always better to read scalers and units before and save them an example to the file.
In that way, you don't need to read them from the meter every time again and again.
Please, create a new topic if you have a new question.
Yes, you can use bluetooth with Gurux lib.
You need to handle data reading and writing from bluetooth.
While trying to fetch Profile Generic by using Gurux DLMS Android I am getting following error:
Read Capture Objects first. (Snap of error is attached)
Please let me know how to get around this error. Please provide the code changes required if any and where that needs to be done.
Reading profile generic
Hi,
It's always better to read scalers and units before and save them an example to the file.
In that way, you don't need to read them from the meter every time again and again.
BR,
Mikko
Read meter on bluetooth
Hi...
Meter is giving data over bluetooth, how can i use gurux library
Read meter on bluetooth
Hi Bhavjinder,
Please, create a new topic if you have a new question.
Yes, you can use bluetooth with Gurux lib.
You need to handle data reading and writing from bluetooth.
BR,
Mikko
Reading profile generic
Hi Mikko,
While trying to fetch Profile Generic by using Gurux DLMS Android I am getting following error:
Read Capture Objects first. (Snap of error is attached)
Please let me know how to get around this error. Please provide the code changes required if any and where that needs to be done.
Thanks
Reading profile generic
Hi,
I believe that meter returns empty collection for capture objects. Can you read this meter with GXDLMSDirector?
BR,
Mikko
Reading profile generic
Hi Mikko,
I am able to read all data of profile generic using DLMS Director. Please suggest how to do the same using app.
Thanks,
Deepanshu