Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1.1 Scope
The communication interfaces P1 and P2 (see figure 1.2) are based on the
DLMS/COSEM standard. References to the DLMS/COSEM standard are included in
section 1.3. This companion standard only includes deviations, clarifications or
additions to the standard as defined in the relevant standard documents.
1 Blue Book 12th Ed. Blue book, COSEM Identification System and Interface Classes
2 Green Book 8th Ed. Green book, DLMS/COSEM Architecture and Protocols
3 Yellow Book 4th Ed. Yellow book, DLMS/COSEM Conformance Testing Process
Remark:
The existing IEC 62056-series do not describe nor cover yet all functionality of
DLMS/COSEM required by this companion standard.
Physical device
Logical device
name
Association
object
Other
object
Other
object
2.1 Clients
The logical device has 4 associations: Public client (client Id 16), reading client (client
Id 2), management client (client Id 1), and security client (client Id 4).
These are:
- PLC
- HDLC (Optical)
DLMS/COSEM will use only the ‘pull’ mechanism for the application layer.
3.1.1 PLC
Communication profile for meters running Power Line Communications (PLC)
devices.
Physical Layer
4.1 CLIENTS
For PLC access only a secure client is defined: Security client (Id 4). Security client
will join all the access levels that are applied to clients public (16), reading (2) and
management (1).
The optical port channel does not have secure clients defined.
There are OBIS for security, but these OBIS would only be accessed by PLC channel
using Security client, and some of the attributes by public client (when it is stated).
4.3 KEYS
PLC association should use dedicated keys as a general rule for all the associations,
and as consequence for all the data transport inside the association, and having all
the messages authenticated and ciphered.
The meter must associate a frame counter to each of the encrypted keys, global
unicast key and dedicated key. The frame counter used in the global unicast key is
independent of the frame counter used with the dedicated key.
The frame counter must be increase for each protected message with the key
associated with the frame counter. Moreover, the frame counter must be reset (to
value 0) when the key is replaced or reset. In case of dedicated keys, the frame
counter must be reset to value 0 for each association.
Before the more detailed description of all the required objects for the AMM M4 type I
and M5 meters in the mentioned chapters, an overview will be given for all the
required profiles.
Further an explanation of the event handling is described in paragraph 4.3 of this
chapter for better understanding how the required objects for covering that
functionality are related to each other.
The “Activity Calendar” object defines each contract and is described in more detail
in paragraph 5.4 (Abstract objects).
Three kind of billing information are needed to achieve the technical specification for
this meter: current billing information, daily billing information and end of billing
information.
Current information collect total and rated absolute values for energy and maximum
power measured since last billing end to the actual time. Magnitudes for energy are
A+, A-, QI, QII, QIII and QIV. Units for active energy are kWh and for reactive energy
is kVArh.
Daily billing information collect an array of total and rated values for energy
magnitudes A+, A-, QI, QII, QIII and QIV. Every day, it is stored at 00:00:00 the
absolute measure if the six magnitudes. The array has a maximum of 10 registers
(10 days). The units are kWh for active energy and kVArh for reactive energy.
End of billing information is stored at billing end period. It must be stored total and
rated absolute energy values and energy measured since former billing end. The
magnitudes are active energy, reactive energy and maximum demand. There must
be at least 12 billing ends. Duration of the billing period is not necessarily one month
since end of billing period could be commanded externally (manually or through
communication). The units are kWh for active energy and kVArh for reactive energy.
For current and stored billing information, the “Data of billing Period 1” object is used.
For daily information, the “Data of billing period 2” object is used.
The “Data of billing period 1” and “Data of billing period 2” objects are described in
more detail in paragraph 5.5 (Abstract objects).
Incremental energy value means that the stored value is the energy measured in one
period time. In hourly load profile, period time is 60 min by default, but it could be use
other values from 1 to 60 minutes. The date-time stamp for the values stored is the
date-time at the end of a period time.
Added to the mentioned values it must be stored a status register with the
information about the values stored (see 4.3.5 for details).
When hourly load profile is demanded, information transmitted must include: date-
time stamp, status and energy values.
In case the synchronization delays the clock, the last measurements existing shall be
eliminated until the new programmed time is reached (or until all existing registers
are eliminated). In order to not loss energy information, the energy deleted is added
to the first register generated after synchronization.
In case the synchronization advances the clock, the profile shall be filled with zero
value and invalid status.
Likewise, in the case of daylight-saving time changes:
The S/W delay shall imply delaying the time one hour. This day 25 measures are
stored, two of them with the same hour, first one for summer and second one for
winter.
The W/S advance shall imply advance the clock one hour. This day 23 measures are
stored.
In case of power failure, registers are filled with zero value and invalid status.
The” hourly load profile values” are described in more detail in paragraph 6.4
(Electricity related objects).
The date-time stamp for the stored values is the date-time when the absolute
measure values are stored.
Added to the mentioned values it must be stored a status register with the
information about the values stored (see 4.3.5 for details).
The “Daily load profile values” are described in more detail in paragraph 6.4
(Electricity related objects).
5.3.1 Events
There are 5 groups of events. Some of them have subgroups. Each group or
subgroup has its own event log, i.e., 7 event logs.
Every event has a unique code to identify the action which has triggered it. Every
event is assigned to one event log and it is only stored there. This assignment is
fixed and can’t be changed dynamically.
3
Finished
Relating to quality items.
32 Quality 15
Events
5
Failed
Relating to Security operations
52 security 100
operations
Alarm Codes
The table below gives an overview of all possible alarms and their assignment.
Reserved Reserved Critical Alarms Non Critical Alarms
Byte 4 Byte 3 Byte 2 Byte 1
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
Neutral loss
Power failure
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
Replace battery
not used
Alarm Filters
Depending on the capabilities of the CAS not all the possible alarms are wanted.
Therefore, an alarm filter (0-0:97.98.10.255) can be programmed to mask out
unwanted alarms.
The structure of the filter is the same as for the alarm codes.
Alarm Reset
The alarms can be reset by command. In addition, all the alarms are auto-reset when
the cause that trigger it disappear except the access communication fraud detection
alarm that will be reset in the first session opened with management client from any
port.
Bit 5 Overflow: The bit is set when the value of the register overloads its
CY limit. It is considered as RES (not used) in load profile 1.
Bit 4 Clock verified: The bit is set when clock has been adjusted less
VH than the synchronization limit.
Bit 1 Power down: This bit is set to indicate that a power failure has
AL occurred.
Device ID 2 1 0-0:96.1.1.255
6.3 Clock
Clock 8 0-0:1.0.0.255
1 logical_name octet-string[6] 0000010000FF R-/R-/R-/R-
current local date and time
2 time octet-string[12] according to technical RW/R-/R-/RW
specifications
3 time_zone Long UTC+2 RW/R-/--/RW
4 status Unsigned R-/R-/--/R-
1 logical_name octet-string[6]
010000090CFF
R-/R-/--/R-
2 Value long-unsigned RW/R-/--/RW
3 Scaler_unit scal_unit_type {0,6} [min] 0 default value R-/R-/--/R-
Metering point ID 1 0-0:96.1.10.255
1 logical_name octet-string[6] 000060010AFF R-/R-/--/R-
2 value octet-string[22] Metering point ID[22] Standard Metering Point ID. RW/R-/--/RW
Active DLMS Firmware
1 1-0:0.2.0.255
identifier
1 logical_name octet-string[6] 0100000200FF R-/R-/R-/R-
Firmware version (version + Example: V1.3
2 value octet-string[5] Vvvxx
subversion) Value = V0103
R-/R-/R-/R-
Threshold for Demand close
3 0-0:94.34.70.255
to contract power
1 logical_name octet-string[6] 00005E2246FF R-/R-/--/R-
95,00 % of power contract to
2 value long-unsigned 9500 activate the demand close to RW/R-/--/RW
contract power event.
3 scaler_unit scal_unit_type {-2,56} scaler=-2, unit=% unit = contract power R-/R-/--/R-
IEC HDLC setup – Optical
23 0-0:22.0.0.255
port
1 logical_name octet-string[6] 0000160000FF R-/R-/--/R-
x=0. Total
x=10. Total rate contract 1 After a data reset only absolute value
1 logical_name octet-string[6] 01000108xxFF
x=11..14. rates contract 1
x=0 should be remained. The rest of
R-/R-/--/R-
x=20. Total rate contract 2
x=21..24 rates contract 2 the values shall be reset.
255 = current billing period
2 Value double-long-unsigned
R-/R-/--/R-
scaler=0, unit=Wh
3 scaler_unit scal_unit_type {0,30}
resolution: 000.000 kWh
R-/R-/--/R-
Active energy import (+A) Incremental Value
3 1-0:1.9.x.255
incremental
{8,0-0:1.0.0.255,2};
{1,0-0:96.10.8.255,2};
{3,1-0:1.8.0.255,2};
{3,1-0:2.8.0.255,2}; clock; AMR profile status;
3 capture_objects array
{3,1-0:5.8.0.255,2}; , A+,A-,QI,QII,QIII,QIV
R-/R-/--/R-
{3,1-0:6.8.0.255,2};
{3,1-0:7.8.0.255,2};
{3,1-0:8.8.0.255,2}
To define the behaviour of the disconnect control object for each trigger, the control
mode must be set.
Disconnect control 0…n class_id = 70, version = 0
1. remote_disconnect() m x + 0x20
2. remote_reconnect() m x + 0x28
logical_name Identifies the “Disconnect control” object instance. Identifiers are specified in
(TBD)
output_state Shows the actual physical state of the disconnect unit, i.e. if an electricity
breaker or a gas valve is open or closed.
boolean
TRUE = connected,
FALSE = disconnected
control_state Shows the internal state of the disconnect control object.
enum
(0) = Disconnected
(1) = Connected
(2) = Ready_for_reconnection
control_mode Configures the behaviour of the disconnect control object for all triggers.
Method description
PRIME PLC MAC setup: this IC holds the parameters necessary to set up
the MAC layer, see B.1.5.
PRIME PLC MAC functional parameters: this IC holds information on the
functional behaviour of the MAC layer; see B.1.6.
PRIME PLC MAC counters: this IC stores statistical information on the
operation of the MAC layer for management purposes, see B.1.7.
PRIME PLC MAC network administration data: this IC holds the parameters
related to the management of the devices connected to the network. See
B.1.8.
1. reset o x + 0x20
Attribute description
An instance of the “PRIME PLC physical layer counters” IC stores counters related to the
physical layers exchanges. The objective of these counters is to provide statistical information
for management purposes.
The attributes of this interface class shall be read only. They can be reset using the reset
method.
1. reset o
Attribute description
logical_name Identifies the “PRIME PLC physical layer counters” object instance. See B.2.
phy_stats_crc_ Holds the PIB variable 0xA0 specified in PRIME-R1.3E:
incorrect_count Number of bursts received on the physical layer for which the CRC was
incorrect.
phy_stats_crc_ Holds the PIB variable 0xA1 specified in PRIME-R1.3E:
failed_count Number of bursts received on the physical layer for which the CRC was
correct, but the Protocol field of PHY header had invalid value. This count
would reflect number of times corrupt data was received and the CRC
calculation failed to detect it.
phy_stats_tx_drop_co Holds the PIB variable 0xA2 specified in PRIME-R1.3E:
unt Number of times when the physical layer received new data to transmit
(PHY_DATA request) and had to either overwrite on existing data in its
transmit queue or drop the data in new request due to full queue.
phy_stats_rx_drop_co Holds the PIB variable 0xA3 specified in PRIME-R1.3E:
unt Number of times when the physical layer received new data on the channel
and had to either overwrite on existing data in its receive queue or drop the
newly received data due to full queue.
An instance of this interface class holds the necessary parameters to set up the PRIME PLC
MAC layer.
Attribute description
logical_name Identifies the “PRIME PLC MAC setup” object instance. SeeB.2.
mac_min_switch_ Holds the PIB variable 0x10 specified in PRIME-R1.3E:
search_time Minimum time for which a service node in Disconnected status should
scan the channel for beacons before it can broadcast PNPDU.
This attribute is not maintained in base nodes.
The unit of this attribute is seconds.
mac_max_ Holds the PIB variable 0x11 specified in PRIME-R1.3E:
promotion_pdu Maximum number of PNPDUs that may be transmitted by a service node
in a period of mac_promotion_pdu_tx_period seconds
This attribute is not maintained in base nodes.
mac_promotion_pdu_ Holds the PIB variable 0x12 specified in PRIME-R1.3E:
tx_period Time quantum for limiting the number of PNDPUs transmitted from a
service node. No more than mac_max_promotion_pdu may be
transmitted in a period of mac_promotion_pdu_tx_period.
The unit of this attribute is seconds.
mac_beacon_ Holds the PIB variable 0x13 specified in PRIME-R1.3E:
per_frame Maximum number of beacon slot that may be provisioned in a frame.
This attribute is maintained in the base node.
The attributes of this interface class belong to the functional behaviour of MAC. They provide
information on specific aspects.
Attribute description
An instance of the “PRIME PLC MAC counters” IC stores statistical information on the
operation of the MAC layer for management purposes. The attrib utes of this interface class
shall be read only. They can be reset using the reset method.
1. reset o x + 0x40
Attribute description
logical_name Identifies the “PRIME PLC MAC counters” object instance. See B.2.
mac_tx_data_ Holds the PIB variable 0x40 specified in PRIME-R1.3E:
pkt_count Count of successfully transmitted MSDUs.
mac_rx_data_ Holds the PIB variable 0x41 specified in PRIME-R1.3E:
pkt_count Count of successfully received MSDUs whose destination address was
this node.
mac_tx_ctrl_ Holds the PIB variable 0x42 specified in PRIME-R1.3E:
pkt_count Count of successfully transmitted MAC control packets.
mac_rx_ctrl_ Holds the PIB variable 0x43 specified in PRIME-R1.3E:
pkt_count Count of successfully received MAC control packets whose destination
was this node.
B.1.8.- PRIME PLC MAC network administration data (class_id: 85, version: 0)
NOTE The specification of this IC is based on Table 34 of PRIME
This IC holds the parameters related to the management of the devices connected to the
network.
1. reset o x + 0x30
Attribute description
logical_name Identifies the “PRIME PLC MAC network administration data” object
instance. See B.2.
mac_list_ Holds the PIB variable 0x52 specified in PRIME-R1.3E:
multicast_entries List of entries in multicast switching table. This list is not maintained in
service nodes in a Terminal state.
Attribute description
Attribute description
Value group C
Abstract objects (A = 0)
…
28 COSEM objects for PRIME PLC setup
…
B.2.2.- Objects for setting up the PRIME PLC Phy and MAC layers
An instance of the IC “PRIME PLC physical layer parameters” – see B.1.3 – stores the
physical layer parameters for the given service node.
An instance of the IC “PRIME PLC physical layer counters” – see B.1.4– stores counters
related to the physical layers exchanges.
An instance of the IC “PRIME PLC MAC setup” – see B.1.5–holds the necessary parameters
to set up the PRIME PLC MAC layer.
An instance of the IC “PRIME PLC MAC functional parameters” – see B.1.6 – provide
information on specific aspects concerning the functional behaviour of the MAC layer.
An instance of the IC “PRIME PLC MAC counters” – see B.1.7– stores statistical information
on the operation of the MAC layer for management purposes.
An instances of the IC “PRIME PLC MAC network administration data” – see B.1.8 – holds the
parameters related to the management of the devices connected to the network.
An instance of the IC “PRIME PLC device setup” – see B.1.8 – holds the MAC address of the
device.
An instance of the IC “PRIME PLC Application identification” – see B.1.9 – holds identification
information related to administration and maintenance of PRIME devices.
An instance of the IC “PRIME PLC CL_432 setup” – see B.1.10 – holds the addresses related
to the CL_432 layer.