Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. DLMS COSEM Meter Simulation

DLMS COSEM Meter simulation

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Siemens-US , 28 December, 2017
Forums
Gurux DLMS for Java

Hi

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?

Thanks
Yatin
Siemens-US

Siemens-US

8 years 5 months ago

DLMS COSEM Meter simulation

Please let mw know if there is a simulator available for simulating the meter responses?

Profile picture for user Kurumi

Kurumi

8 years 5 months ago

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

Profile picture for user hassin Ayaz

hassin Ayaz

8 years 2 months ago

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

Profile picture for user Kurumi

Kurumi

8 years 2 months ago

CGXDLMSDemandRegister

Hi,

OBIS code was wrong in the example and it has been updated. Get the latest version.

BR,

Mikko

Profile picture for user hassin Ayaz

hassin Ayaz

8 years 2 months ago

DLMS COSEM Meter simulation

Dear Mr Kurumi

Thanks a lot

BR
Hassin Ayaz

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin