Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Pre-established Connection Questions

Pre-established connection questions

By labasvakaras, 19 January, 2026
Forums
Gurux.DLMS

Hello, i wanted to get more information about pre-established connection, because i want to use DLMS with smart water meter on NB IoT.

1. As i understand with pre-established connection AARQ/AARE/SNRM messages are not being delivered, but you have to configure client/server before connection, yes?
2. With pre-established only two packets are being sent - one with data and acknowledge from client?
3. Client settings must be the same as server - i mean conformance, ciphering info etc... What happens if it does not match and how client/server knows that it is corrcet?
4. Auto connect object - this is object used in server right? And you connect directly to client or is it that you open socket for listening?

Profile picture for user Kurumi

Kurumi

3 weeks 6 days ago

Hi, 1. Client can't ask…

Hi,

1. Client can't ask server settings when pre-established connection is used and client must know what settings to use. The correct settings are usually defined in the meter documentation.

2. If all data is fit to one packet there are only two messages. If you are reading e.g. profile generic, it might be that there are multiple frames send between the client and meter.

3. If block cipher or authentication key is not correct, the meter returns usually ciphering error.

4. Auto connect object defines the IP address where the meter try to establish the connection. You can read more from here:

https://gurux.fi/Gurux.DLMS.Objects.GXDLMSAutoConnect

BR,
Mikko

labasvakaras

3 weeks 6 days ago

does your example DLMS…

does your example DLMS servers and clients support pre-established connection? i want to test it

Profile picture for user Kurumi

Kurumi

3 weeks 6 days ago

Hi, Yes, you can try it. Get…

Hi, Yes, you can try it. Get GuruxDLMSServerExample. This example is using malloc, but the idea is the same. Select Gurux as meter manufacurer in GXDLMSDirector. Set authentication to HighGMAC and client address to 2.

 

 

Select Secured connections and set 

system title:Gurux123

Block cipher key:000102030405060708090A0B0C0D0E0F

Authentication key: D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF

Pre-established connections don't support the association view, and you need to add COSEM objects manually. Select "Edit" and "Add Object...". Select Clock as object type and press OK.

Establish the connection to the meter, and you can read the clock object. Add other objects that you want to read in the same way.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Sun, 02/01/2026 - 19:47
    gurux.dlms.cpp 9.0.2602.0101
  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87

New forum topics

  • Landisgyr meter
  • GxDateTime always return DayOfWeek as FF
  • Asynchronous support in Gurux DLMS stack (.NET)?
  • Multiple meter loop On OFF Problem
  • Python GXDLMSTranslator
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin