When writing this help file, we expect that you are familiar with SNRM, UA, AARQ or AARE messages are,
and they are not explained in this manual. If you are not familiar with DLMS/COSEM, check the supported standard
IEC 62056, parts 21, 42, 46, 47, 53, 61 and 62. See the sample codes for details, how to make connection to the physical device,
and walk through all COSEM objects.
Before using DLMS/COSEM component, at least the following properties must be set:
You may also need to set IntefaceType property, when using the TCP/IP.
Also, confirm with the device manufacturer, if the device supports IEC 62056-47.
For example, Landis&Gyr devices do not support IEC 62056-47 yet, but Iskraemeco devices do.
Note!
If ClientID, ServerID or IntefaceType are wrong, the device usually does not reply at all.
For example, Landis&Gyr devices do not support IEC 62056-47 yet, but Iskraemeco devices do.
Note!
If ClientID, ServerID or IntefaceType are wrong, the device usually does not reply at all.
Initializing connection using TCP/IP
When using TCP/IP connection, there is no need to send an SNRM request. The communication is started by sending an AARQ Request.
The physical device replies to the AARQ request, by sending an AARE message.
After that, the connection is established, and any data you wish, can then be read from, or written to the physical device.
See sample code for more details."
After that, the connection is established, and any data you wish, can then be read from, or written to the physical device.
See sample code for more details."
Initializing connection using Serial port
When using Serial connection, the first thing to do, is to set the device to mode E. After that, an SNRM request is sent. The physical device
replies, by sending an UA reply. Next you should send an AARQ request, and device responses by sending an AARE response.
After that, the connection is established, and the device is sending the needed data.
See sample code for more details."
After that, the connection is established, and the device is sending the needed data.
See sample code for more details."
Walking the device tree
Because every meter has its own set of interfaces, you can use DLMS/COSEM messages to walk through the device tree. This is done by
using GetObjects method.
See sample code for more details."
See sample code for more details."
Reading from, or writing to the physical device
After the device tree is known, the COSEM objects can be read. When using Logial Name addressing, it is not necessary to walk the device tree through,
but with Short Name addressing, it is almost mandatory.
An example
Reading device clock's Logical Name
m_Cosem.Read("0.0.1.0.0", 1, 1, ObjectType.Clock, 0);
An example
Reading device clock's Logical Name
m_Cosem.Read("0.0.1.0.0", 1, 1, ObjectType.Clock, 0);
Using the components from development environment
Using from .NET | Using from Visual Basic | Using from C++