Demo projects

There are demo projects for C++,  C# and Java. The C++ and C# projects have been developed using  MS Visual Studio. The Java project has been developed using Eclipse.

Before using a demo project to connect to a real device, you will have to know the addressing scheme of the device as well as its COSEM context, either Short Name referencing or Logical Name referencing context.

The COSEM context depends on the device and should be directly available from the manufacturer.

If you ignore the addressing scheme, then a possible solution is to use the custom application that should be provided by your meter's manufacturer to connect to their meters and then to ''sniff'' the exchanged HDLC frames using any appropriate program as for example ''PortMon''. The first frame sent to the meter is a SNRM HDLC frame and it already contains all the required addressing information.

If you have this frame, then copy or paste it without spaces or any other characters in the following text box and click the button. This will give you the addressing information.

For example, with this (SNRM) frame...

7EA00A000200230793FB067E

...we get this result:

Addresses of the SNRM frame

As the SNRM frame goes from the client application to the meter (server), the SRC address is the client's address and the DST is the meter's address. Here, the addressing scheme uses 4 bytes, the upper address (=logical device address) is 1 (=management logical device) and the lower address (=meter's physical address) is 17.

C++ demo project

The C++ demo project is available here.

The API documentation is here.

C# demo project

The C# demo project is available here.

The corresponding documentation is here.

Java demo project

The Java demo project is available here

The corresponding documentation is here.

Additional information for eclipse setup is here.