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. Forums
  3. Error "connection Is Not Established"

Error "connection is not established"

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 mansour , 21 November, 2016
Forums
Gurux DLMS for Java

Hi,

I have updated my Gurux lib from 1.2 to 1.4 recently and I have some problems.
In the new class GXDLMSSNCommandHandler, in handleRead() method I have noticed a new check in the code that didn't exist in my old Gurux version :
// Return error if connection is not established.
if (!settings.isConnected()
&& (!e.isAction() || e.getTarget().getShortName() != 0xFA00
|| e.getIndex() != 8)) {
replyData.set(GXDLMSServer.generateConfirmedServiceError(
ConfirmedServiceError.INITIATE_ERROR, ServiceError.SERVICE,
Service.UNSUPPORTED.getValue()));
return;
}

I understand that you check if client and server have already made association (AARQ/AARE) before we can read a COSEM object ? It can be a problem in our context we have public objects that can be read without association, so how can we deal with them ?

Thanks.
Mansour

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

Error "connection is not established"

Hi,

Thank you from this information. This is request from one of our clients.
We will think how to solve this. Usually AARQ/AARE info is needed to set
size of PDU and authentication level.

BR,

Mikko

mansour

9 years 6 months ago

Error "connection is not established"

Hi,
Thank you for your response, you are right for the most part of our COSEM object AARQ/AARE is needed but in our context, they only let a few COSEM objects readable directly (like LAN configuration, Firmware version, ...).
I think you can rely on gurux.dlms.enums.AccessMode (READ, AUTHENTICATED_READ, ...) in order to know if association is needed ?

Mansour.

mansour

9 years ago

Error "connection is not established"

Hi,

Nothing new for this feature request ?

Thanks
Mansour

Profile picture for user Kurumi

Kurumi

8 years 12 months ago

Error "connection is not established"

Hi Mansour,

Sorry for slow reply. It take some time to verify this from DLMS UA, but it's possible to do and we
are still pass CCT tests.

We try to release new version for Java and C# today or latest tomorrow.

BR,

Mikko

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Error "connection is not established"

Hi,

We released new version last week. There is a new property: AllowAnonymousAccess .
Set that to true if value can read without AARQ/AARE.

BR,
Mikko

mansour

8 years 11 months ago

Hi MIkko,

Hi MIkko,

Thank you very much, we are going to test the new property.
Very usefull for us :)

Mansour

mansour

8 years 11 months ago

Error "connection is not established"

Hi Mikko,

I have juste review the detail of the new version (2.1.5) and I can see the new property "AllowAnonymousAccess" only in GXDLMSServer2 and not in GXDLMSServer.
What is the difference and the purpose of these 2 classes GXDLMSServer & GXDLMSServer2 ?

Thanks
Mansour

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Error "connection is not established"

Hi,

GXDLMSServer2 is new server class that we are using. We have implement pre- and post-events for all methods (read, write, action). Let me know if you can't use that and I'll ask to add AllowAnonymousAccess to GXDLMSServer.

Read more from here:
http://www.gurux.fi/newAPI

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