/// <summary> /// Get translator tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetTranslatorTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, TranslatorTags.Wrapper, "Wrapper"); GXDLMSTranslator.AddTag(list, TranslatorTags.Hdlc, "Hdlc"); GXDLMSTranslator.AddTag(list, TranslatorTags.PduDlms, "Pdu"); GXDLMSTranslator.AddTag(list, TranslatorTags.TargetAddress, "TargetAddress"); GXDLMSTranslator.AddTag(list, TranslatorTags.SourceAddress, "SourceAddress"); GXDLMSTranslator.AddTag(list, TranslatorTags.ListOfVariableAccessSpecification, "ListOfVariableAccessSpecification"); GXDLMSTranslator.AddTag(list, TranslatorTags.ListOfData, "ListOfData"); GXDLMSTranslator.AddTag(list, TranslatorTags.Success, "Ok"); GXDLMSTranslator.AddTag(list, TranslatorTags.DataAccessError, "DataAccessError"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeDescriptor, "AttributeDescriptor"); GXDLMSTranslator.AddTag(list, TranslatorTags.ClassId, "ClassId"); GXDLMSTranslator.AddTag(list, TranslatorTags.InstanceId, "InstanceId"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeId, "AttributeId"); GXDLMSTranslator.AddTag(list, TranslatorTags.MethodInvocationParameters, "MethodInvocationParameters"); GXDLMSTranslator.AddTag(list, TranslatorTags.Selector, "Selector"); GXDLMSTranslator.AddTag(list, TranslatorTags.Parameter, "Parameter"); GXDLMSTranslator.AddTag(list, TranslatorTags.LastBlock, "LastBlock"); GXDLMSTranslator.AddTag(list, TranslatorTags.BlockNumber, "BlockNumber"); GXDLMSTranslator.AddTag(list, TranslatorTags.RawData, "RawData"); GXDLMSTranslator.AddTag(list, TranslatorTags.MethodDescriptor, "MethodDescriptor"); GXDLMSTranslator.AddTag(list, TranslatorTags.MethodId, "MethodId"); GXDLMSTranslator.AddTag(list, TranslatorTags.Result, "Result"); GXDLMSTranslator.AddTag(list, TranslatorTags.ReturnParameters, "ReturnParameters"); GXDLMSTranslator.AddTag(list, TranslatorTags.AccessSelection, "AccessSelection"); GXDLMSTranslator.AddTag(list, TranslatorTags.Value, "Value"); GXDLMSTranslator.AddTag(list, TranslatorTags.AccessSelector, "AccessSelector"); GXDLMSTranslator.AddTag(list, TranslatorTags.AccessParameters, "AccessParameters"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeDescriptorList, "AttributeDescriptorList"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeDescriptorWithSelection, "AttributeDescriptorWithSelection"); GXDLMSTranslator.AddTag(list, TranslatorTags.ReadDataBlockAccess, "ReadDataBlockAccess"); GXDLMSTranslator.AddTag(list, TranslatorTags.WriteDataBlockAccess, "WriteDataBlockAccess"); GXDLMSTranslator.AddTag(list, TranslatorTags.Data, "Data"); GXDLMSTranslator.AddTag(list, TranslatorTags.InvokeId, "InvokeIdAndPriority"); GXDLMSTranslator.AddTag(list, TranslatorTags.LongInvokeId, "LongInvokeIdAndPriority"); GXDLMSTranslator.AddTag(list, TranslatorTags.DateTime, "DateTime"); GXDLMSTranslator.AddTag(list, TranslatorTags.CurrentTime, "CurrentTime"); GXDLMSTranslator.AddTag(list, TranslatorTags.Time, "DateTime"); GXDLMSTranslator.AddTag(list, TranslatorTags.Reason, "Reason"); GXDLMSTranslator.AddTag(list, TranslatorTags.NotificationBody, "NotificationBody"); GXDLMSTranslator.AddTag(list, TranslatorTags.DataValue, "DataValue"); GXDLMSTranslator.AddTag(list, TranslatorTags.CipheredService, "CipheredService"); GXDLMSTranslator.AddTag(list, TranslatorTags.SystemTitle, "SystemTitle"); GXDLMSTranslator.AddTag(list, TranslatorTags.DataBlock, "DataBlock"); GXDLMSTranslator.AddTag(list, TranslatorTags.TransactionId, "TransactionId"); GXDLMSTranslator.AddTag(list, TranslatorTags.OriginatorSystemTitle, "OriginatorSystemTitle"); GXDLMSTranslator.AddTag(list, TranslatorTags.RecipientSystemTitle, "RecipientSystemTitle"); GXDLMSTranslator.AddTag(list, TranslatorTags.OtherInformation, "OtherInformation"); GXDLMSTranslator.AddTag(list, TranslatorTags.KeyInfo, "KeyInfo"); GXDLMSTranslator.AddTag(list, TranslatorTags.CipheredContent, "CipheredContent"); GXDLMSTranslator.AddTag(list, TranslatorTags.AgreedKey, "AgreedKey"); GXDLMSTranslator.AddTag(list, TranslatorTags.KeyParameters, "KeyParameters"); GXDLMSTranslator.AddTag(list, TranslatorTags.KeyCipheredData, "KeyCipheredData"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeValue, "AttributeValue"); GXDLMSTranslator.AddTag(list, TranslatorTags.MaxInfoRX, "MaxInfoRX"); GXDLMSTranslator.AddTag(list, TranslatorTags.MaxInfoTX, "MaxInfoTX"); GXDLMSTranslator.AddTag(list, TranslatorTags.WindowSizeRX, "WindowSizeRX"); GXDLMSTranslator.AddTag(list, TranslatorTags.WindowSizeTX, "WindowSizeTX"); }
/// <summary> /// Get SN tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetSnTags(TranslatorOutputType type, SortedList <int, string> list) { list.Add((int)Command.ReadRequest, "ReadRequest"); list.Add((int)Command.WriteRequest, "WriteRequest"); list.Add((int)Command.WriteResponse, "WriteResponse"); list.Add((int)(Command.ReadRequest) << 8 | (byte)VariableAccessSpecification.VariableName, "VariableName"); list.Add((int)(Command.ReadRequest) << 8 | (byte)VariableAccessSpecification.ParameterisedAccess, "ParameterisedAccess"); list.Add((int)(Command.ReadRequest) << 8 | (byte)VariableAccessSpecification.BlockNumberAccess, "BlockNumberAccess"); list.Add( (int)Command.WriteRequest << 8 | (int)VariableAccessSpecification.VariableName, "VariableName"); list.Add((int)Command.ReadResponse, "ReadResponse"); list.Add((int)(Command.ReadResponse) << 8 | (byte)SingleReadResponse.DataBlockResult, "DataBlockResult"); list.Add((int)(Command.ReadResponse) << 8 | (byte)SingleReadResponse.Data, "Data"); GXDLMSTranslator.AddTag(list, Command.GetResponse, "GetResponse"); list.Add((int)(Command.GetResponse) << 8 | (byte)GetCommandType.Normal, "Normal"); list.Add((int)(Command.GetResponse) << 8 | (byte)GetCommandType.NextDataBlock, "GetResponsewithDataBlock"); list.Add((int)(Command.GetResponse) << 8 | (byte)GetCommandType.WithList, "GetResponseWithList"); GXDLMSTranslator.AddTag(list, Command.SetResponse, "SetResponse"); list.Add((int)(Command.SetResponse) << 8 | (byte)SetResponseType.Normal, "SetResponseNormal"); list.Add((int)(Command.SetResponse) << 8 | (byte)SetResponseType.DataBlock, "SetResponseDataBlock"); list.Add((int)(Command.SetResponse) << 8 | (byte)SetResponseType.LastDataBlock, "SetResponseWithLastDataBlock"); list.Add((int)(Command.SetResponse) << 8 | (byte)SetResponseType.WithList, "SetResponseWithList"); list.Add((int)Command.ReadResponse << 8 | (int)SingleReadResponse.DataAccessError, "DataAccessError"); }
/// <summary> /// Get PLC tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetPlcTags(SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.DiscoverRequest, "DiscoverRequest"); GXDLMSTranslator.AddTag(list, Command.DiscoverReport, "DiscoverReport"); GXDLMSTranslator.AddTag(list, Command.RegisterRequest, "RegisterRequest"); GXDLMSTranslator.AddTag(list, Command.PingRequest, "PingRequest"); GXDLMSTranslator.AddTag(list, Command.PingResponse, "PingResponse"); }
/// <summary> /// Get ded tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetDedTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.DedGetRequest, "ded_GetRequest"); GXDLMSTranslator.AddTag(list, Command.DedGetResponse, "ded_GetResponse"); GXDLMSTranslator.AddTag(list, Command.DedSetRequest, "ded_SetRequest"); GXDLMSTranslator.AddTag(list, Command.DedSetResponse, "ded_SetResponse"); GXDLMSTranslator.AddTag(list, Command.DedMethodRequest, "ded_ActionRequest"); GXDLMSTranslator.AddTag(list, Command.DedMethodResponse, "ded_ActionResponse"); GXDLMSTranslator.AddTag(list, Command.GeneralDedCiphering, "generalDedCiphering"); }
/// <summary> /// Get general tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetGeneralTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.Snrm, "Snrm"); GXDLMSTranslator.AddTag(list, Command.UnacceptableFrame, "UnacceptableFrame"); GXDLMSTranslator.AddTag(list, Command.DisconnectMode, "DisconnectMode"); GXDLMSTranslator.AddTag(list, Command.Ua, "Ua"); GXDLMSTranslator.AddTag(list, Command.Aarq, "AssociationRequest"); GXDLMSTranslator.AddTag(list, Command.Aare, "AssociationResponse"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ApplicationContextName, "ApplicationContextName"); GXDLMSTranslator.AddTag(list, Command.InitiateResponse, "InitiateResponse"); GXDLMSTranslator.AddTag(list, Command.InitiateRequest, "InitiateRequest"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedQualityOfService, "NegotiatedQualityOfService"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedQualityOfService, "ProposedQualityOfService"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedDlmsVersionNumber, "ProposedDlmsVersionNumber"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedMaxPduSize, "ProposedMaxPduSize"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedConformance, "ProposedConformance"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.VaaName, "VaaName"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedConformance, "NegotiatedConformance"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedDlmsVersionNumber, "NegotiatedDlmsVersionNumber"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedMaxPduSize, "NegotiatedMaxPduSize"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ConformanceBit, "ConformanceBit"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.SenderACSERequirements, "SenderACSERequirements"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ResponderACSERequirement, "ResponderACSERequirement"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingMechanismName, "MechanismName"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingMechanismName, "MechanismName"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAuthentication, "CallingAuthentication"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingAuthentication, "RespondingAuthentication"); GXDLMSTranslator.AddTag(list, Command.ReleaseRequest, "ReleaseRequest"); GXDLMSTranslator.AddTag(list, Command.ReleaseResponse, "ReleaseResponse"); GXDLMSTranslator.AddTag(list, Command.DisconnectRequest, "DisconnectRequest"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.AssociationResult, "AssociationResult"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ResultSourceDiagnostic, "ResultSourceDiagnostic"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ACSEServiceUser, "ACSEServiceUser"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ACSEServiceProvider, "ACSEServiceProvider"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAPTitle, "CallingAPTitle"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingAPTitle, "RespondingAPTitle"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.DedicatedKey, "DedicatedKey"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.UserInformation, "UserInformation"); GXDLMSTranslator.AddTag(list, Command.ConfirmedServiceError, "ConfirmedServiceError"); GXDLMSTranslator.AddTag(list, Command.InformationReport, "InformationReportRequest"); GXDLMSTranslator.AddTag(list, Command.EventNotification, "EventNotificationRequest"); GXDLMSTranslator.AddTag(list, Command.GeneralBlockTransfer, "GeneralBlockTransfer"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAeInvocationId, "CallingAEInvocationId"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CalledAeInvocationId, "CalledAEInvocationId"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingAeInvocationId, "RespondingAeInvocationId"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAeQualifier, "CallingAEQualifier"); GXDLMSTranslator.AddTag(list, Command.ExceptionResponse, "ExceptionResponse"); GXDLMSTranslator.AddTag(list, TranslatorTags.StateError, "StateError"); }
/// <summary> /// Get LN tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetLnTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.GetRequest, "GetRequest"); list.Add((int)(Command.GetRequest) << 8 | (byte)GetCommandType.Normal, "GetRequestNormal"); list.Add((int)(Command.GetRequest) << 8 | (byte)GetCommandType.NextDataBlock, "GetRequestForNextDataBlock"); list.Add((int)(Command.GetRequest) << 8 | (byte)GetCommandType.WithList, "GetRequestWithList"); GXDLMSTranslator.AddTag(list, Command.SetRequest, "SetRequest"); list.Add((int)(Command.SetRequest) << 8 | (byte)SetRequestType.Normal, "SetRequestNormal"); list.Add((int)(Command.SetRequest) << 8 | (byte)SetRequestType.FirstDataBlock, "SetRequestFirstDataBlock"); list.Add((int)(Command.SetRequest) << 8 | (byte)SetRequestType.WithDataBlock, "SetRequestWithDataBlock"); list.Add((int)(Command.SetRequest) << 8 | (byte)SetRequestType.WithList, "SetRequestWithList"); GXDLMSTranslator.AddTag(list, Command.MethodRequest, "ActionRequest"); list.Add((int)(Command.MethodRequest) << 8 | (byte)ActionRequestType.Normal, "ActionRequestNormal"); list.Add((int)(Command.MethodRequest) << 8 | (byte)ActionRequestType.NextBlock, "ActionRequestForNextDataBlock"); list.Add((int)(Command.MethodRequest) << 8 | (byte)ActionRequestType.WithList, "ActionRequestWithList"); GXDLMSTranslator.AddTag(list, Command.MethodResponse, "ActionResponse"); list.Add((int)(Command.MethodResponse) << 8 | (byte)ActionRequestType.Normal, "ActionResponseNormal"); list.Add((int)(Command.MethodResponse) << 8 | (byte)ActionRequestType.WithFirstBlock, "ActionResponseWithFirstBlock"); list.Add((int)(Command.MethodResponse) << 8 | (byte)ActionRequestType.WithList, "ActionResponseWithList"); list.Add((int)Command.DataNotification, "DataNotification"); list.Add((int)Command.GetResponse, "GetResponse"); list.Add((int)Command.GetResponse << 8 | (byte)GetCommandType.Normal, "GetResponseNormal"); list.Add((int)Command.GetResponse << 8 | (byte)GetCommandType.NextDataBlock, "GetResponsewithDataBlock"); list.Add((int)Command.GetResponse << 8 | (byte)GetCommandType.WithList, "GetResponseWithList"); list.Add((int)Command.SetResponse, "SetResponse"); list.Add((int)Command.SetResponse << 8 | (byte)SetResponseType.Normal, "SetResponseNormal"); list.Add((int)Command.SetResponse << 8 | (byte)SetResponseType.DataBlock, "SetResponseDataBlock"); list.Add((int)Command.SetResponse << 8 | (byte)SetResponseType.LastDataBlock, "SetResponseWithLastDataBlock"); list.Add((int)Command.SetResponse << 8 | (byte)SetResponseType.WithList, "SetResponseWithList"); GXDLMSTranslator.AddTag(list, Command.AccessRequest, "AccessRequest"); list.Add((int)(Command.AccessRequest) << 8 | (byte)AccessServiceCommandType.Get, "AccessRequestGet"); list.Add((int)(Command.AccessRequest) << 8 | (byte)AccessServiceCommandType.Set, "AccessRequestSet"); list.Add((int)(Command.AccessRequest) << 8 | (byte)AccessServiceCommandType.Action, "AccessRequestAction"); GXDLMSTranslator.AddTag(list, Command.AccessResponse, "AccessResponse"); list.Add((int)(Command.AccessResponse) << 8 | (byte)AccessServiceCommandType.Get, "AccessResponseGet"); list.Add((int)(Command.AccessResponse) << 8 | (byte)AccessServiceCommandType.Set, "AccessResponseSet"); list.Add((int)(Command.AccessResponse) << 8 | (byte)AccessServiceCommandType.Action, "AccessResponseAction"); list.Add((int)TranslatorTags.AccessRequestBody, "AccessRequestBody"); list.Add((int)TranslatorTags.ListOfAccessRequestSpecification, "AccessRequestSpecification"); list.Add((int)TranslatorTags.AccessRequestSpecification, "_AccessRequestSpecification"); list.Add((int)TranslatorTags.AccessRequestListOfData, "AccessRequestListOfData"); list.Add((int)TranslatorTags.AccessResponseBody, "AccessResponseBody"); list.Add((int)TranslatorTags.ListOfAccessResponseSpecification, "AccessResponseSpecification"); list.Add((int)TranslatorTags.AccessResponseSpecification, "_AccessResponseSpecification"); list.Add((int)TranslatorTags.AccessResponseListOfData, "AccessResponseListOfData"); list.Add((int)TranslatorTags.Service, "Service"); list.Add((int)TranslatorTags.ServiceError, "ServiceError"); GXDLMSTranslator.AddTag(list, Command.GatewayRequest, "GatewayRequest"); GXDLMSTranslator.AddTag(list, Command.GatewayResponse, "GatewayResponse"); }
/// <summary> /// Get glo tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetGloTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.GloInitiateRequest, "glo_InitiateRequest"); GXDLMSTranslator.AddTag(list, Command.GloInitiateResponse, "glo_InitiateResponse"); GXDLMSTranslator.AddTag(list, Command.GloGetRequest, "glo_GetRequest"); GXDLMSTranslator.AddTag(list, Command.GloGetResponse, "glo_GetResponse"); GXDLMSTranslator.AddTag(list, Command.GloSetRequest, "glo_SetRequest"); GXDLMSTranslator.AddTag(list, Command.GloSetResponse, "glo_SetResponse"); GXDLMSTranslator.AddTag(list, Command.GloMethodRequest, "glo_ActionRequest"); GXDLMSTranslator.AddTag(list, Command.GloMethodResponse, "glo_ActionResponse"); GXDLMSTranslator.AddTag(list, Command.GloReadRequest, "glo_ReadRequest"); GXDLMSTranslator.AddTag(list, Command.GloReadResponse, "glo_ReadResponse"); GXDLMSTranslator.AddTag(list, Command.GloWriteRequest, "glo_WriteRequest"); GXDLMSTranslator.AddTag(list, Command.GloWriteResponse, "glo_WriteResponse"); GXDLMSTranslator.AddTag(list, Command.GeneralGloCiphering, "GeneralGloCiphering"); }
/// <summary> /// Get glo tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetGloTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.GloInitiateRequest, "glo-initiate-request"); GXDLMSTranslator.AddTag(list, Command.GloInitiateResponse, "glo-initiate-response"); GXDLMSTranslator.AddTag(list, Command.GloGetRequest, "glo-get-request"); GXDLMSTranslator.AddTag(list, Command.GloGetResponse, "glo-get-response"); GXDLMSTranslator.AddTag(list, Command.GloSetRequest, "glo-set-request"); GXDLMSTranslator.AddTag(list, Command.GloSetResponse, "glo-set-response"); GXDLMSTranslator.AddTag(list, Command.GloMethodRequest, "glo-action-request"); GXDLMSTranslator.AddTag(list, Command.GloMethodResponse, "glo-action-response"); GXDLMSTranslator.AddTag(list, Command.GloReadRequest, "glo-read-request"); GXDLMSTranslator.AddTag(list, Command.GloReadResponse, "glo-read-response"); GXDLMSTranslator.AddTag(list, Command.GloWriteRequest, "glo-write-request"); GXDLMSTranslator.AddTag(list, Command.GloWriteResponse, "glo-write-response"); GXDLMSTranslator.AddTag(list, Command.GeneralGloCiphering, "general-glo-ciphering"); }
/// <summary> /// Get general tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetGeneralTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.Snrm, "Snrm"); GXDLMSTranslator.AddTag(list, Command.UnacceptableFrame, "UnacceptableFrame"); GXDLMSTranslator.AddTag(list, Command.DisconnectMode, "DisconnectMode"); GXDLMSTranslator.AddTag(list, Command.Ua, "Ua"); GXDLMSTranslator.AddTag(list, Command.Aarq, "AssociationRequest"); GXDLMSTranslator.AddTag(list, Command.Aare, "AssociationResponse"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ApplicationContextName, "ApplicationContextName"); GXDLMSTranslator.AddTag(list, Command.InitiateResponse, "InitiateResponse"); GXDLMSTranslator.AddTag(list, Command.InitiateRequest, "InitiateRequest"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedQualityOfService, "NegotiatedQualityOfService"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedQualityOfService, "ProposedQualityOfService"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedDlmsVersionNumber, "ProposedDlmsVersionNumber"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedMaxPduSize, "ProposedMaxPduSize"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedConformance, "ProposedConformance"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.VaaName, "VaaName"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedConformance, "NegotiatedConformance"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedDlmsVersionNumber, "NegotiatedDlmsVersionNumber"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedMaxPduSize, "NegotiatedMaxPduSize"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ConformanceBit, "ConformanceBit"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.SenderACSERequirements, "SenderACSERequirements"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ResponderACSERequirement, "ResponderACSERequirement"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingMechanismName, "MechanismName"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingMechanismName, "MechanismName"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAuthentication, "CallingAuthentication"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingAuthentication, "RespondingAuthentication"); GXDLMSTranslator.AddTag(list, Command.ReleaseRequest, "ReleaseRequest"); GXDLMSTranslator.AddTag(list, Command.ReleaseResponse, "ReleaseResponse"); GXDLMSTranslator.AddTag(list, Command.DisconnectRequest, "Disc"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.AssociationResult, "AssociationResult"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ResultSourceDiagnostic, "ResultSourceDiagnostic"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ACSEServiceUser, "ACSEServiceUser"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAPTitle, "CallingAPTitle"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingAPTitle, "RespondingAPTitle"); }
/// <summary> /// Get general tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetGeneralTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.Snrm, "Snrm"); GXDLMSTranslator.AddTag(list, Command.UnacceptableFrame, "UnacceptableFrame"); GXDLMSTranslator.AddTag(list, Command.DisconnectMode, "DisconnectMode"); GXDLMSTranslator.AddTag(list, Command.Ua, "Ua"); GXDLMSTranslator.AddTag(list, Command.Aarq, "aarq"); GXDLMSTranslator.AddTag(list, Command.Aare, "aare"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ApplicationContextName, "application-context-name"); GXDLMSTranslator.AddTag(list, Command.InitiateResponse, "InitiateResponse"); GXDLMSTranslator.AddTag(list, Command.InitiateRequest, "user-information"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedQualityOfService, "negotiated-quality-of-service"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedQualityOfService, "proposed-quality-of-service"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedDlmsVersionNumber, "proposed-dlms-version-number"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedMaxPduSize, "client-max-receive-pdu-size"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ProposedConformance, "proposed-conformance"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.VaaName, "VaaName"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedConformance, "NegotiatedConformance"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedDlmsVersionNumber, "NegotiatedDlmsVersionNumber"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.NegotiatedMaxPduSize, "NegotiatedMaxPduSize"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ConformanceBit, "ConformanceBit"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.SenderACSERequirements, "sender-acse-requirements"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ResponderACSERequirement, "responder-acse-requirements"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingMechanismName, "mechanism-name"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingMechanismName, "mechanism-name"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAuthentication, "calling-authentication-value"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingAuthentication, "responding-authentication-value"); GXDLMSTranslator.AddTag(list, Command.ReleaseRequest, "ReleaseRequest"); GXDLMSTranslator.AddTag(list, Command.ReleaseResponse, "ReleaseResponse"); GXDLMSTranslator.AddTag(list, Command.DisconnectRequest, "Disc"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.AssociationResult, "result"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ResultSourceDiagnostic, "result-source-diagnostic"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.ACSEServiceUser, "acse-service-user"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CallingAPTitle, "CallingAPTitle"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.RespondingAPTitle, "RespondingAPTitle"); GXDLMSTranslator.AddTag(list, TranslatorGeneralTags.CharString, "charstring"); }
/// <summary> /// Get translator tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetTranslatorTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, TranslatorTags.Wrapper, "Wrapper"); GXDLMSTranslator.AddTag(list, TranslatorTags.Hdlc, "Hdlc"); GXDLMSTranslator.AddTag(list, TranslatorTags.PduDlms, "xDLMS-APDU"); GXDLMSTranslator.AddTag(list, TranslatorTags.PduCse, "aCSE-APDU"); GXDLMSTranslator.AddTag(list, TranslatorTags.TargetAddress, "TargetAddress"); GXDLMSTranslator.AddTag(list, TranslatorTags.SourceAddress, "SourceAddress"); GXDLMSTranslator.AddTag(list, TranslatorTags.ListOfVariableAccessSpecification, "variable-access-specification"); GXDLMSTranslator.AddTag(list, TranslatorTags.ListOfData, "list-of-data"); GXDLMSTranslator.AddTag(list, TranslatorTags.Success, "Success"); GXDLMSTranslator.AddTag(list, TranslatorTags.DataAccessError, "data-access-result"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeDescriptor, "cosem-attribute-descriptor"); GXDLMSTranslator.AddTag(list, TranslatorTags.ClassId, "class-id"); GXDLMSTranslator.AddTag(list, TranslatorTags.InstanceId, "instance-id"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeId, "attribute-id"); GXDLMSTranslator.AddTag(list, TranslatorTags.MethodInvocationParameters, "method-invocation-parameters"); GXDLMSTranslator.AddTag(list, TranslatorTags.Selector, "selector"); GXDLMSTranslator.AddTag(list, TranslatorTags.Parameter, "parameter"); GXDLMSTranslator.AddTag(list, TranslatorTags.LastBlock, "LastBlock"); GXDLMSTranslator.AddTag(list, TranslatorTags.BlockNumber, "block-number"); GXDLMSTranslator.AddTag(list, TranslatorTags.RawData, "RawData"); GXDLMSTranslator.AddTag(list, TranslatorTags.MethodDescriptor, "cosem-method-descriptor"); GXDLMSTranslator.AddTag(list, TranslatorTags.MethodId, "method-id"); GXDLMSTranslator.AddTag(list, TranslatorTags.Result, "result"); GXDLMSTranslator.AddTag(list, TranslatorTags.ReturnParameters, "return-parameters"); GXDLMSTranslator.AddTag(list, TranslatorTags.AccessSelection, "access-selection"); GXDLMSTranslator.AddTag(list, TranslatorTags.Value, "value"); GXDLMSTranslator.AddTag(list, TranslatorTags.AccessSelector, "access-selector"); GXDLMSTranslator.AddTag(list, TranslatorTags.AccessParameters, "access-parameters"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeDescriptorList, "AttributeDescriptorList"); GXDLMSTranslator.AddTag(list, TranslatorTags.AttributeDescriptorWithSelection, "AttributeDescriptorWithSelection"); GXDLMSTranslator.AddTag(list, TranslatorTags.ReadDataBlockAccess, "ReadDataBlockAccess"); GXDLMSTranslator.AddTag(list, TranslatorTags.WriteDataBlockAccess, "WriteDataBlockAccess"); GXDLMSTranslator.AddTag(list, TranslatorTags.Data, "data"); GXDLMSTranslator.AddTag(list, TranslatorTags.InvokeId, "invoke-id-and-priority"); GXDLMSTranslator.AddTag(list, TranslatorTags.LongInvokeId, "long-invoke-id-and-priority"); GXDLMSTranslator.AddTag(list, TranslatorTags.DateTime, "date-time"); GXDLMSTranslator.AddTag(list, TranslatorTags.Reason, "Reason"); GXDLMSTranslator.AddTag(list, TranslatorTags.VariableAccessSpecification, "Variable-Access-Specification"); GXDLMSTranslator.AddTag(list, TranslatorTags.Choice, "CHOICE"); GXDLMSTranslator.AddTag(list, TranslatorTags.NotificationBody, "notification-body"); GXDLMSTranslator.AddTag(list, TranslatorTags.DataValue, "data-value"); GXDLMSTranslator.AddTag(list, TranslatorTags.InitiateError, "initiateError"); GXDLMSTranslator.AddTag(list, TranslatorTags.CipheredService, "ciphered-content"); GXDLMSTranslator.AddTag(list, TranslatorTags.SystemTitle, "system-title"); GXDLMSTranslator.AddTag(list, TranslatorTags.DataBlock, "DataBlock"); }
/// <summary> /// Get LN tags. /// </summary> /// <param name="type"></param> /// <param name="list"></param> internal static void GetLnTags(TranslatorOutputType type, SortedList <int, string> list) { GXDLMSTranslator.AddTag(list, Command.GetRequest, "get-request"); list.Add((int)Command.GetRequest << 8 | (int)GetCommandType.Normal, "get-request-normal"); list.Add((int)Command.GetRequest << 8 | (int)GetCommandType.NextDataBlock, "get-request-next"); list.Add((int)Command.GetRequest << 8 | (int)GetCommandType.WithList, "get-request-with-list"); GXDLMSTranslator.AddTag(list, Command.SetRequest, "set-request"); list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.Normal, "set-request-normal"); list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.FirstDataBlock, "set-request-first-data-block"); list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.WithDataBlock, "set-request-with-data-block"); list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.WithList, "set-request-with-list"); GXDLMSTranslator.AddTag(list, Command.MethodRequest, "action-request"); list.Add((int)Command.MethodRequest << 8 | (int)ActionRequestType.Normal, "action-request-normal"); list.Add((int)Command.MethodRequest << 8 | (int)ActionRequestType.NextBlock, "ActionRequestForNextDataBlock"); list.Add((int)Command.MethodRequest << 8 | (int)ActionRequestType.WithList, "action-request-with-list"); GXDLMSTranslator.AddTag(list, Command.MethodResponse, "action-response"); list.Add((int)Command.MethodResponse << 8 | (int)ActionResponseType.Normal, "action-response-normal"); list.Add((int)Command.MethodResponse << 8 | (int)ActionResponseType.WithFirstBlock, "action-response-with-first-block"); list.Add((int)Command.MethodResponse << 8 | (int)ActionResponseType.WithList, "action-response-with-list"); list.Add((int)TranslatorTags.SingleResponse, "single-response"); list.Add((int)Command.DataNotification, "data-notification"); GXDLMSTranslator.AddTag(list, Command.GetResponse, "get-response"); list.Add((int)Command.GetResponse << 8 | (int)GetCommandType.Normal, "get-response-normal"); list.Add((int)Command.GetResponse << 8 | (int)GetCommandType.NextDataBlock, "get-response-with-data-block"); list.Add((int)Command.GetResponse << 8 | (int)GetCommandType.WithList, "get-response-with-list"); GXDLMSTranslator.AddTag(list, Command.SetResponse, "set-response"); list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.Normal, "set-response-normal"); list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.DataBlock, "set-response-data-block"); list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.LastDataBlock, "set-response-with-last-data-block"); list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.WithList, "set-response-with-list"); GXDLMSTranslator.AddTag(list, Command.AccessRequest, "access-request"); list.Add((int)Command.AccessRequest << 8 | (int)AccessServiceCommandType.Get, "access-request-Get"); list.Add((int)Command.AccessRequest << 8 | (int)AccessServiceCommandType.Set, "access-request-set"); list.Add((int) Command.AccessRequest << 8 | (int)AccessServiceCommandType.Action, "access-request-action"); GXDLMSTranslator.AddTag(list, Command.AccessResponse, "access-response"); list.Add((int)Command.AccessResponse << 8 | (int)AccessServiceCommandType.Get, "access-response-Get"); list.Add((int)Command.AccessResponse << 8 | (int)AccessServiceCommandType.Set, "access-response-set"); list.Add((int)Command.AccessResponse << 8 | (int)AccessServiceCommandType.Action, "access-response-action"); list.Add((int)TranslatorTags.AccessRequestBody, "access-request-body"); list.Add((int)TranslatorTags.ListOfAccessRequestSpecification, "access-request-specification"); list.Add((int)TranslatorTags.AccessRequestSpecification, "Access-Request-Specification"); list.Add((int)TranslatorTags.AccessRequestListOfData, "access-request-list-of-data"); list.Add((int)TranslatorTags.AccessResponseBody, "access-response-body"); list.Add((int)TranslatorTags.ListOfAccessResponseSpecification, "access-response-specification"); list.Add((int)TranslatorTags.AccessResponseSpecification, "Access-Response-Specification"); list.Add((int)TranslatorTags.AccessResponseListOfData, "access-response-list-of-data"); list.Add((int)TranslatorTags.Service, "service"); list.Add((int)TranslatorTags.ServiceError, "service-error"); }