By morphheus, 29 June, 2018 Forums Gurux DLMS for Java Hi Mikko, I have this frame: <HDLC len="54" > <TargetAddress Value="1" /> <SourceAddress Value="1" /> <!--AARE frame.--> <FrameType Value="30" /> <PDU> <AssociationResponse> <ApplicationContextName Value="LN" /> <AssociationResult Value="0" /> <ResultSourceDiagnostic> <ACSEServiceUser Value="0" /> </ResultSourceDiagnostic> <InitiateResponse> <NegotiatedDlmsVersionNumber Value="6" /> <NegotiatedConformance> <ConformanceBit Name="Action" /> <ConformanceBit Name="EventNotification" /> <ConformanceBit Name="SelectiveAccess" /> <ConformanceBit Name="Set" /> <ConformanceBit Name="Get" /> <ConformanceBit Name="BlockTransferWithSetOrWrite" /> <ConformanceBit Name="BlockTransferWithGetOrRead" /> </NegotiatedConformance> <NegotiatedMaxPduSize Value="500" /> <VaaName Value="7" /> </InitiateResponse> </AssociationResponse> </PDU> </HDLC> <HDLC len="24" > <TargetAddress Value="1" /> <SourceAddress Value="1" /> <!--I frame.--> <FrameType Value="32" /> <PDU> <GetRequest> <GetRequestNormal> <InvokeIdAndPriority Value="193" /> <AttributeDescriptor> <!--ASSOCIATION_LOGICAL_NAME--> <ClassId Value="15" /> <!--0.0.40.0.0.255--> <InstanceId Value="0000280000FF" /> <AttributeId Value="2" /> </AttributeDescriptor> </GetRequestNormal> </GetRequest> </PDU> </HDLC> I would like to change this value: <!--0.0.40.0.0.255--> <HDLC len="24" > <TargetAddress Value="1" /> <SourceAddress Value="1" /> <!--I frame.--> <FrameType Value="32" /> <PDU> <GetRequest> <GetRequestNormal> <InvokeIdAndPriority Value="193" /> <AttributeDescriptor> <!--DATA--> <ClassId Value="1" /> <!--0.0.96.1.4.255--> <InstanceId Value="0000600104FF" /> <AttributeId Value="2" /> </AttributeDescriptor> </GetRequestNormal> </GetRequest> </PDU> </HDLC> BR, Morphheus Change the frame Hi Morphheus, Read data with GXDLMSDirector. Copy sent trace to the GuruxDLMSTranslator http://www.gurux.fi/GuruxDLMSTranslator?translate Press "To Conformace Test" button. Now you have frame what you want to. BR, Mikko Hi Mikko, I would like to change this value: <!--0.0.40.0.0.255--> to <!--0.0.96.1.4.255--> through to gurux.dlms.client.example (java project) Is it related to ClassId Value? How to change that on java code? BR, Morphheus SOLVED Hi Mikko, GXReplyData reply = new GXReplyData(); readDataBlock(dlms.read("0.0.96.1.4.255", ObjectType.DATA, 2), reply); BR, Morphheus Log in or register to post comments
Change the frame Hi Morphheus, Read data with GXDLMSDirector. Copy sent trace to the GuruxDLMSTranslator http://www.gurux.fi/GuruxDLMSTranslator?translate Press "To Conformace Test" button. Now you have frame what you want to. BR, Mikko
Hi Mikko, I would like to change this value: <!--0.0.40.0.0.255--> to <!--0.0.96.1.4.255--> through to gurux.dlms.client.example (java project) Is it related to ClassId Value? How to change that on java code? BR, Morphheus
SOLVED Hi Mikko, GXReplyData reply = new GXReplyData(); readDataBlock(dlms.read("0.0.96.1.4.255", ObjectType.DATA, 2), reply); BR, Morphheus
Change the frame
Hi Morphheus,
Read data with GXDLMSDirector. Copy sent trace to the GuruxDLMSTranslator
http://www.gurux.fi/GuruxDLMSTranslator?translate
Press "To Conformace Test" button.
Now you have frame what you want to.
BR,
Mikko
Hi Mikko,
I would like to change this value: <!--0.0.40.0.0.255--> to <!--0.0.96.1.4.255--> through to gurux.dlms.client.example (java project)
Is it related to ClassId Value?
How to change that on java code?
BR,
Morphheus
SOLVED
Hi Mikko,
GXReplyData reply = new GXReplyData();
readDataBlock(dlms.read("0.0.96.1.4.255", ObjectType.DATA, 2), reply);
BR,
Morphheus