Search in sources :

Example 1 with DlmsGsmDiagnostic

use of org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsGsmDiagnostic in project open-smart-grid-platform by OSGP.

the class DlmsObjectConfigSmr51 method initObjects.

@Override
List<DlmsObject> initObjects() {
    final List<DlmsObject> objectList = super.initObjects();
    // Additional GsmDiagnostic objects for SMR5.1
    final DlmsObject gsmDiagnosticGprs = new DlmsGsmDiagnostic(GSM_DIAGNOSTIC, "0.0.25.6.0.255", CommunicationMethod.GPRS);
    final DlmsObject gsmDiagnosticCdma = new DlmsGsmDiagnostic(GSM_DIAGNOSTIC, "0.1.25.6.0.255", CommunicationMethod.CDMA);
    final DlmsObject gsmDiagnosticLteM = new DlmsGsmDiagnostic(GSM_DIAGNOSTIC, "0.2.25.6.0.255", CommunicationMethod.LTE_M);
    objectList.addAll(Arrays.asList(gsmDiagnosticGprs, gsmDiagnosticCdma, gsmDiagnosticLteM));
    // Additional clear mbus status for SMR5.1
    final DlmsObject readMBusStatus = new DlmsObject(READ_MBUS_STATUS, InterfaceClass.EXTENDED_REGISTER.id(), "0.<c>.24.2.6.255");
    final DlmsObject clearMBusStatus = new DlmsObject(CLEAR_MBUS_STATUS, InterfaceClass.DATA.id(), "0.<c>.94.31.10.255");
    final DlmsObject clientSetupMBus = new DlmsObject(CLIENT_SETUP_MBUS, InterfaceClass.MBUS_CLIENT.id(), "0.<c>.24.1.0.255");
    objectList.addAll(Arrays.asList(readMBusStatus, clearMBusStatus, clientSetupMBus));
    // Additional auxiliary event log objects for SMR5.1
    final DlmsObject auxiliaryEventLogCode = new DlmsData(AUXILIARY_EVENT_CODE, "0.0.96.11.6.255");
    objectList.add(auxiliaryEventLogCode);
    final List<DlmsCaptureObject> captureObjectsAuxiliaryEvents = Arrays.asList(DlmsCaptureObject.create(this.getClock(objectList)), DlmsCaptureObject.create(auxiliaryEventLogCode));
    objectList.add(new DlmsProfile(AUXILIARY_EVENT_LOG, "0.0.99.98.6.255", captureObjectsAuxiliaryEvents, ASYNCHRONOUSLY, ABSTRACT));
    return objectList;
}
Also used : DlmsGsmDiagnostic(org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsGsmDiagnostic) DlmsProfile(org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsProfile) DlmsObject(org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsObject) DlmsData(org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsData)

Aggregations

DlmsData (org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsData)1 DlmsGsmDiagnostic (org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsGsmDiagnostic)1 DlmsObject (org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsObject)1 DlmsProfile (org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.dlmsobjectconfig.model.DlmsProfile)1