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. InitializeConnection Failed Data Send Failed.

InitializeConnection failed Data Send failed.

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 vamsi , 15 March, 2017
Forums
General discussion

Hello Gurux,
We are trying to communicate to a electric meter (DLMS supported meter) using serial port, handshaking is working fine from my board to meter(which ensures that conenctions are proper), but with Gurux client code, I am facing issue saying sending failed..

I am using comm.open("/dev/ttyUSB0",false) and this is success, with the same comm connection when it calls comm.InitializeConnection() or comm.GetObjects() this fails with error 252 and I get a error message as

InitializeConnection Failed Data Send Failed.

should I do any other configuration in the code to specify that it should use serial port for communication rather than localhost with port address.

Please help...

Regards,
Cyient Team

Profile picture for user Kurumi

Kurumi

9 years 3 months ago

InitializeConnection failed Data Send failed.

Hi,

First check that you have enough permissions and USB port name is correct.
ls -l /dev/ttyUSB*

What Linux distro you are using?

BR,

Mikko

vamsi

9 years 3 months ago

Hello Mikko,

Hello Mikko,
Yes, permissions are taken care... We are using Rasbien(Jessy Destro) in raspberry pi as our device... We are able to communicate to device by sending raw data from our simple C application and receive response from the meter...

But when in Gurux, the first handshaking command which gurux generates is 7E A0 08 02 21 C9 93 5C F6 7E for which the device is not responding or the we are getting sending failed error..

But Gurux code is able to open the serial port.

please suggest.

Profile picture for user Kurumi

Kurumi

9 years 3 months ago

InitializeConnection

Hi,

What meter you try to read? Try to read your meter with GXDLMSDirector first.
What serial port settings you are using (8N1)?

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