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. Data Send Problems In Gurux.DLMS.Client.Example.python

Data send problems in Gurux.DLMS.Client.Example.python

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 Diego2911 , 13 November, 2020
Forums
Gurux.DLMS

Hi everyone,
I'm an electronic engineering student and I'm working on a smart meter reading project. I am testing the provided example code in python to implement it on a raspberry Pi. I am looking to have connection to the meter as shown in the example of the python code with serial communication. However, I get an error sending data "Data send failed. Try to resend 1/2". After two attempts, the disconnection request is sent automatically. How can I solve this problem?
The meter is an MCS301, from the METCOM brand, in addition, I am using the RS-485 serial communication, with an RS-485 to USB converter to connect it with the computer. Thanks a lot.

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

There are two reasons why communication usually fails with a serial port.
The client or server address is wrong or serial port settings are wrong.

Try to change Interface from HDLC to HdlcWithModeE. Check your cables if the meter is not replying anything. Serial port settings for Mode E are
Baudrate: 300
7Even1

BR,
Mikko

Diego2911

5 years 6 months ago

Thanks for the reply. I

Thanks for the reply. I changed the serial port values ​​to the ones you mention but I still get the same problem. How can I change the HDLC mode to HdlcWithModeE. Thanks a lot.

Profile picture for user Kurumi

Kurumi

5 years 6 months ago

Hi,

Hi,

Can you try this with GXDLMSDirector first? When you can connect with it I can give you the communication parameters.

BR,
Mikko

Diego2911

5 years 6 months ago

Yes. I've tried with

Yes. I've tried with GXDLMSDirector before, but i had the same problem, thats why i'm trying with the python example.

Profile picture for user Kurumi

Kurumi

5 years 6 months ago

Hi,

Hi,

If it also fails with GXDLMSDirector check your cables. Did you try to change Interface from HDLC to HdlcWithModeE? There is something wrong with your cables or serial port settings If you didn't receive any reply from the meter.

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