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. Usb Serial Port / Connection Rejected

usb serial port / connection rejected

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 baraa148 , 29 April, 2022
Forums
Gurux.Serial

Hi every one ,
this is my first time with dlms ..
I need to run a client python code for dlms
There is a meter connected to the pc via serial port on com6
When I write this command
Py main.py -S COM6

output :
gurux_dlms version: 1.0.122
gurux_net version: 1.0.18
gurux_serial version: 1.0.18
Authentication: Authentication.NONE
ClientAddress: 0x10
ServerAddress: 0x1
Standard: Standard.DLMS
DisconnectRequest
Connection is permanently rejected
The application context name is not supported.
Ended. Press any key to continue.
==================

Note ,
My meter connected over com6
But , when I run the program like this
Py main.py
To see the avaliable serial ports
It just shows Com1
Why ?!

Profile picture for user Kurumi

Kurumi

4 years 1 month ago

Hi,

Hi,

If you run an application without parameters it shows available serial ports. Try to read your meter with GXDLMSDirector first. It will show what command line parameter you should use. DLMS meter doesn't reply if one of your settings is wrong. I believe that you need to add -r sn parameter.

Py main.py -S COM6 -r sn

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