Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. What Are The Steps To Initialize Serial Connection To Meter Device?

What are the steps to Initialize Serial Connection to Meter device?

Profile picture for user Frank
By Frank, 31 January, 2025
Forums
Gurux.Serial

I have been trying to understand the source code of the director (https://github.com/Gurux/GXDLMSDirector)
and i have read and tried the c# .net example (https://github.com/Gurux/Gurux.DLMS.Net/tree/master) with no luck.

I do not understand the InitializeIEC flag in the sample and it does not have the implementation/definition of that flag.

I am using HDLC and, based on the director by debugging it on run-time, I was able to ascertain that it jumps the InitializeIEC() method (.cs line 708) in the GXDLMSCommunicator class after opening the media object.

I've been trying to map and understand the class relationships but the director having locally defined class outside of the packaged libraries only confuses me. Some of it are helper classes and some are new classes inheriting from the library classes.

Please help me understand the initialization steps. Do I need a manufacturer, device, meter, client, media objects and such to initialize my communication?

I'd also like some help on reading the association view so that I can check if I'm properly connected to the device.

So far, using the director, I'm only setting up the device name, manufacturer, authentication, password, and the serial parameters.

Also, I am currently initializing my serial connection using the IGXMedia as GXSerial and by far media.Open() works. But I am lost as to what to do after that.

My biggest thanks to those who will respond ^-^

Profile picture for user Kurumi

Kurumi

4 months 2 weeks ago

Hi, InitializeIEC is used…

Hi,

InitializeIEC is used with an optical probe if it supports HdlcWithModeE. You can see the command line arguments for the client example when you select the meter in GXDLMSDirector.

If you are using HDLC then you don't need InitializeIEC.

There are many settings that depend on the meter, and if any of them are different from what the meter expects, the meter will not respond.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 06/19/2025 - 09:33
    Gurux.DLMS.Python 1.0.185
  • Wed, 06/18/2025 - 15:11
    Gurux.DLMS.Python 1.0.184
  • Wed, 06/18/2025 - 10:05
    Gurux.DLMS.Python 1.0.183
  • Wed, 06/18/2025 - 09:06
    GXDLMSDirector 9.0.2506.1801
  • Wed, 06/18/2025 - 08:41
    Gurux.DLMS.Net 9.0.2506.1801

New forum topics

  • HLS GMAC L+G 570
  • Unable to read parameter values from Landis+Gyr E550 meter using GXDLMSDirector - NoAccess status
  • data.SetComplete(false); But all data recieved
  • Crash (endless loop)
  • Server is not able to download object list with maxPduSize 64 or 128 (or anything below 156-bytes PDU size)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin