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. DLMS Python - How To Work With DCU?

DLMS Python - How to work with DCU?

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 nhzq , 6 July, 2022
Forums
Gurux.DLMS

Hi,

Before this, I manage to get reading from meters thanks to this awesome package. But now, I got a problem to connect to DCU.

For direct reading from meter, I just ran this command and it worked.
- python main.py -h 183.xxx.xx.xxx -P xxx -p 5000 -a Low -t Verbose -r ln -c 20 -s 255

But, when I tried with DCU, it returned error which I could not figure it out.
- "No connection could be made because the target machine actively refused it"

Do you have any examples that could help me to get reading from meters via DCU?

Thanks

Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

This error is TCP/IP error and it means that your IP address or port is wrong.
Check those from the DCU documentation.

BR,
Mikko

nhzq

3 years 11 months ago

Hi,

Hi,

I have checked, both IP address and port are correct. I found that the message sent by gurux app is a bit different with what has written in DCU docs and it showed error like this - Access Error : Device reports Read-Write denied.

Command used:
python main.py -h 183.xxx.xx.xxx -P xxxxxxxx -p 5000 -a Low -t Verbose -r ln -c 1 -i WRAPPER

From docs:
000100010001013FC101C100010000605001FF020002030A056D657465721601010102020101020216000A10534D54313035323032323030303136300121020216000A10534D5431303532303232303030313630020216010A0131020216020A0131020216030A0131020216040A0131020216050A0130020216060A0130020216070A0130020216080A0131020216090A01310202160A0A0C73656375726974795F6C6C730202160B0A01300202160C0A01310202160D0A01300202160E0A0234380202160F0A083232323232323232020216100A0130020216110A0130020216120A0130020216130A0130020216140A0130020216150A0130020216160A0130020216170A01300202161A0A01300202161B0A01300202161C0A01300202161D0A01300202161E0A01300202161F0A0130020216650A0130020216660A0130020216670A0130

From system:
00 01 00 01 00 01 00 0D C0 01 C1 00 0F 00 00 28 00 00 FF 02 00

Could you please advise on this matter? Thanks

Profile picture for user Kurumi

Kurumi

3 years 11 months ago

Hi,

Hi,

At the document example data is written.
https://www.gurux.fi/GuruxDLMSTranslator?translate=000100010001013FC101…

Client asks the association view and the meter should return it. Without association view you don't know what kind of registers the meter can offer.

https://www.gurux.fi/GuruxDLMSTranslator?translate=000100010001000DC001…

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