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

4 years 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

4 years 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

4 years 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

  • 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

Who's new

  • cWYHszETmudslY…
  • Aij
  • vondamc1
  • JosephNok
  • IUJbutxeSTSNcNRN
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin