Hi,
I am also trying the same in java.
GXDLMSActionSchedule ac = new GXDLMSActionSchedule("0.0.15.0.0.255");
GXDateTime gxTime = new GXDateTime(-1, -1, 1, 0, 0, 0, 0);
byte[][] data = com.writeMethod(ac, 2, gxTime, DataType.DATETIME);
GXReplyData reply = new GXReplyData();
com.readDataBlock(data, reply);
But getting exception
gurux.dlms.GXDLMSException: Access Error : Device reports scope of access violated.
You can do it something like this:
GXDLMSActionSchedule ac = new GXDLMSActionSchedule("0.0.15.0.0.255");
GXDateTime gxTime = new GXDateTime(-1, -1, 1, 0, 0, 0, 0);
ac.setExecutionTime(new GXDateTime{ gxTime });
com.write(ac, 2);
GXReplyData reply = new GXReplyData();
com.readDataBlock(data, reply);
How to write billing date in HPL 3 Phase Meter
Hi,
You should check billing date. Try to read it first. I believe it's not clock object.
One good way to check this is if you read our billing date and then write same data back.
BR,
Mikko
Hi,
Hi,
I am also trying the same in java.
GXDLMSActionSchedule ac = new GXDLMSActionSchedule("0.0.15.0.0.255");
GXDateTime gxTime = new GXDateTime(-1, -1, 1, 0, 0, 0, 0);
byte[][] data = com.writeMethod(ac, 2, gxTime, DataType.DATETIME);
GXReplyData reply = new GXReplyData();
com.readDataBlock(data, reply);
But getting exception
gurux.dlms.GXDLMSException: Access Error : Device reports scope of access violated.
Please help
Hi,
Hi,
You can do it something like this:
GXDLMSActionSchedule ac = new GXDLMSActionSchedule("0.0.15.0.0.255");
GXDateTime gxTime = new GXDateTime(-1, -1, 1, 0, 0, 0, 0);
ac.setExecutionTime(new GXDateTime{ gxTime });
com.write(ac, 2);
GXReplyData reply = new GXReplyData();
com.readDataBlock(data, reply);
BR,
Mikko