We have developed a DLMS COSEM based AMR application based on DLMS COSEM specification. We want to test this applciation now by simulating the responses for various type of requests like get,set,AARQ etc. Please let me know how we can do it by using GXDLMSServerExample in java?
You can modify GXDLMSServerExample for your needs.
In PreRead you can check what OBIS code client reads and set right value.
Check PreRead and let me know if there is anything where we can help you.
I am working on dlms.cpp.server to simulate a meter .
i have understood the creation of pClock object in CGXDLMSBase::Init() function . Here the OBIS/logical name of the pClock is set in the constructor . Later at preRead you have updated the clock.
my question is why you have passed the OBIS of the clock at the creation of demand register , registerMonitor & actionSchedule type object in GXDLMSBase.cpp? below is the code of yours.
CGXDLMSDemandRegister* pDr = new CGXDLMSDemandRegister("0.0.1.0.0.255");
CGXDLMSRegisterMonitor* pRm = new CGXDLMSRegisterMonitor("0.0.1.0.0.255");
CGXDLMSActionSchedule* pActionS = new CGXDLMSActionSchedule("0.0.1.0.0.255");
and later on preRead i have to parse the obis from the CGXDLMSValueEventArg* type variable and have to update the average values and time related attributes .
I will be very thankful to you if you kindly justify my understandings
DLMS COSEM Meter simulation
Please let mw know if there is a simulator available for simulating the meter responses?
DLMS COSEM Meter simulation
Hi,
You can modify GXDLMSServerExample for your needs.
In PreRead you can check what OBIS code client reads and set right value.
Check PreRead and let me know if there is anything where we can help you.
BR,
Mikko
DLMS COSEM Meter simulation
Dear Mr Kurumi ,
I am working on dlms.cpp.server to simulate a meter .
i have understood the creation of pClock object in CGXDLMSBase::Init() function . Here the OBIS/logical name of the pClock is set in the constructor . Later at preRead you have updated the clock.
my question is why you have passed the OBIS of the clock at the creation of demand register , registerMonitor & actionSchedule type object in GXDLMSBase.cpp? below is the code of yours.
/*******************************code snippet ***********************************************/
CGXDLMSDemandRegister* pDr = new CGXDLMSDemandRegister("0.0.1.0.0.255");
CGXDLMSRegisterMonitor* pRm = new CGXDLMSRegisterMonitor("0.0.1.0.0.255");
CGXDLMSActionSchedule* pActionS = new CGXDLMSActionSchedule("0.0.1.0.0.255");
/*******************************code snippet ***********************************************/
i assume say for example if i want to emulate "Ch. 0; Sum Li Active power+ (QI+QIV)" data then i have to modify the OBIS , like this
/*******************************code snippet ***********************************************/
CGXDLMSDemandRegister* pDr = new CGXDLMSDemandRegister("1.0.1.6.0.255");
/*******************************code snippet ***********************************************/
and later on preRead i have to parse the obis from the CGXDLMSValueEventArg* type variable and have to update the average values and time related attributes .
I will be very thankful to you if you kindly justify my understandings
Thanks in advance
hassin ayaz
AplombtechBD
CGXDLMSDemandRegister
Hi,
OBIS code was wrong in the example and it has been updated. Get the latest version.
BR,
Mikko
DLMS COSEM Meter simulation
Dear Mr Kurumi
Thanks a lot
BR
Hassin Ayaz