Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Gateway Protocol

Gateway protocol

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By belen.morenate , 12 February, 2021
Forums
Gurux.DLMS

Hi all!

I am trying to use GXDLMSGateway to make my DLMS server simulator work with Gateway Protocol.
Apparently is as simple as just fill physicial device address and network id inside the Settings of GxdlmsServer :

public class DlmsServer : GXDLMSSecureServer
{
[...]
public void Start()
{
Settings.Gateway.PhysicalDeviceAddress = new byte[] {0,0,1,2};
}
}

BUT I can't find the place in gurux code where Gateway is instantiated and it throws a null exception. I can't instantiate it because it is internal set.

Any idea to help me with gateway protocol?

Thanks!

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

We haven't use DLMS simulator with Gateway protocol. Are you using C# or java version? We'll check this.

BR,
Mikko

belen.morenate

5 years 3 months ago

I am using c# version.

I am using c# version.
It is able to accept the APDUs containing the gateway protocol wrapper. I assume that the DLMS simulator is able to read that but it is not including the gateway wrapper in the response.

https://github.com/Gurux/Gurux.DLMS.Net/blob/ed2448f695494c93f2464f7766…

Thanks!

belen.morenate

5 years 3 months ago

Hi all!

Hi all!
Any update on this? Keen to know how to get responses back from Dlms.Simulator using the gateway protocol :)
Regards

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

That is added and it will go for tests next Wednesday. The next open-source release day is on the 9th of March.

BR,
Mikko

belen.morenate

5 years 3 months ago

You're awesome!

You're awesome!

belen.morenate

5 years 2 months ago

Hi again!

Hi again!
I am checking the gateway protocol support on simulator for .net and I can't see any change in this. What are the changes? is now supported? any guide to use it?

I see a difference because with latest version simulator is not responding to GatewayRequests which did before.

Regards

Profile picture for user Kurumi

Kurumi

5 years 2 months ago

Hi,

Hi,

Start simulator with G -parameter. The following example uses WRAPPER interface to communicate between the client app and the simulator. Communication between the meters and simulator is using HDLC framing.

-h localhost -p 1000 -x c:\temp\crystal.xml -t Verbose -N 10 -G WRAPPER

BR,
Mikko

mansour

3 years 6 months ago

Hi Mikko,

Hi Mikko,

I'm very interested in this response, if I have understood, I can start a gurux simulator instance that can act as a gateway ? can you please tell me in which language of gurux server this gateway feature is implemented ? I prefer java if you have tested it with success.

Thanks !
Mansour

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi Mansour,

Hi Mansour,

We have used C# version for this.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin