When sending the SNRM trace using GXDLMSDirector it works and the communication with the meter is perfect. But in the C# library, we are not able to send it with the following configuration:
* Max payload size in transmit = 228
* Max payload size in receive = 228
* Window size in transmit = 1
* Window size in receive = 1
We are defining the GXDLMSClient as, but it doesn't seem to be a way to define the max payload size values and the window size bytes don't build up in the trace:
I managed to get a longer SNMR with MaxInfoTX, MaxInfoRX, WindowSizeTX and WindowSizeTX trace by forcing parameters but the parameters are not accessible to be changed.
Within the class GXDLMSClient of the the C# library we do find GXDLMSClient.HdlcSettings, also, we do have the class GXHdlcSettings, which contains the attributes MaxInfoTX, MaxInfoRX, WindowSizeTX and WindowSizeTX but it is not allowed to modify as you see, it has only the GET option:
public GXHdlcSettings HdlcSettings { get; }
And therefore we get default 128 value for MaxInfoRX and MaxInfoTX:
Hi,
Hi,
You can change those values from GXDLMSClient.HdlcSettings.
BR,
Mikko
Thanks for your reply Mikko,
Thanks for your reply Mikko,
I managed to get a longer SNMR with MaxInfoTX, MaxInfoRX, WindowSizeTX and WindowSizeTX trace by forcing parameters but the parameters are not accessible to be changed.
Within the class GXDLMSClient of the the C# library we do find GXDLMSClient.HdlcSettings, also, we do have the class GXHdlcSettings, which contains the attributes MaxInfoTX, MaxInfoRX, WindowSizeTX and WindowSizeTX but it is not allowed to modify as you see, it has only the GET option:
public GXHdlcSettings HdlcSettings { get; }
And therefore we get default 128 value for MaxInfoRX and MaxInfoTX:
<HDLC len="32" >
<TargetAddress Value="32767" />
<SourceAddress Value="2" />
<!--SNRM frame.-->
<FrameType Value="93" />
<PDU>
<Snrm>
<MaxInfoTX Value="128" />
<MaxInfoRX Value="128" />
<WindowSizeTX Value="1" />
<WindowSizeRX Value="1" />
</Snrm>
</PDU>
</HDLC>
In the end is it not possible to modify MaxInfoRX and MaxInfoTX to the value of 228? Is it a feature that you may foresee coming in further versions?
Kind regards
Hi Daniel,
Hi Daniel,
You can modify values like this:
GXDLMSClient client = new GXDLMSClient();
client.HdlcSettings.MaxInfoTX = 228;
client.HdlcSettings.MaxInfoRX = 228;
BR,
Mikko
Thank you very much Mikko.
Thank you very much Mikko. The SNMR worked fine.