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. IEC62056-21 Handshake With Serial Port

IEC62056-21 Handshake with serial port

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 lara.wakim , 6 August, 2020
Forums
General discussion

Hi Mikko,

We read this information from your site "https://www.gurux.fi/Gurux.DLMS.Iec#ModeECPlusPlus" to support what we are writing below.

We know that if we are using IEC handshake with serial port we must first send identify command and move to mode E.

We will enumerate the steps below (correct me if we are wrong):

1- The client sends to the server "/?!\r\n" without the quotations. This requests the identity information from the device.

2- The server responds to the client with this format "/XXXZIdent\r\n" where XXX is the manufacturer name,Z is the maximum baud rate and Ident is the Identification info of the device

3- The client responds to the server with this format "0x06 "2" Z "2" \r\n" where Z is the requested connection speed. This is supposed to let us move to the mode E.

4- Our question concerns this step. In fact, at this stage the client and the server change the baud rate to the requested one. Then the client is waiting to a response from the server. What is this expected response? The server is supposed to send what from the client at that stage?
After this response the client and server are supposed to switch from 7E1 to 8N1 and the client should send the SNRM request and everything should work fine like a DLMS connection. Are we right?

Best Regards,

Lara Wakim

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi Lara,

Hi Lara,

Note! IEC handshake is used only when the optical probe is used. It's not used when you are communicating with a serial port.

If meter accepts the client settings t replies the approved settings, in your example "0x06 "2" Z "2" \r\n".

There is also a small delay after the baud-rate is changed before SNRM is sent.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin