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. Connection Is Permanently Rejected No Reason Is Given

Connection is permanently rejected No reason is given

By SmartMeterAndroid , 22 May, 2024
Forums
Gurux DLMS for Android

we are doing the re connection of the meter is getting the following error.

"Connection is permanently rejected No reason is given"

Scenarios :

1. Once open the App and do the connection is successful
2.After kill and relaunch the App and do the connection is getting the Above Error.

Please help how can resolve this error.

Profile picture for user Kurumi

Kurumi

2 years 2 months ago

Hi, You have not properly…

Hi,

You have not properly closed the existing connection. You need to wait until inactivity timeout occurs or close the connection when you close the application.

I propose that you close the connection to prevent this error.

BR,
Mikko

SmartMeterAndroid

2 years 2 months ago

The following code will do…

The following code will do connect/close process. Please check and correct me if it is wrong. Thanks...

if (media != null) {
if (media.isOpen) {
// Close connection
close()
} else {
//Open connection.
initializeConnection()
}
}

@Throws(java.lang.Exception::class)
private fun close() {
val media = mDevice!!.media
if (media.isOpen) {
/ try {
readDLMSPacket2(mClient!!.releaseRequest())
} catch (e: java.lang.Exception) {
//All meters don't support release. It's OK.
}
val reply = GXReplyData()
readDLMSPacket(mClient!!.disconnectRequest(), reply)
/ media.close()
}
}

Profile picture for user Kurumi

Kurumi

2 years 2 months ago

Hi, Some meters expect that…

Hi,

Some meters expect that you must wait for a while before a new connection.

It's hard to say what might be the issue because I don't have your meter. Try to connect with GXDSLMDirector multiple times and if it the connection fails, you need just wait for a while before the new connection.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin