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. Node
  3. Problem With Connection With Serial Counter

Problem with connection with serial counter

By S4H , 29 February, 2024
Forums
Gurux.Serial

this Is my code :

public bool ConnectSerial(string auth, string password, out string Historia)
{

ObiektOdczytuLicznika = null;
ObiektUstawien = new UstawieniaLicznika();

GXSerial serial = null;
try
{
if (ObiektUstawien.media == null)
{
ObiektUstawien.media = new GXSerial();
}
serial = ObiektUstawien.media as GXSerial;
serial.PortName = Adres;
serial.BaudRate = 9600;
serial.Parity = System.IO.Ports.Parity.None;
serial.StopBits = System.IO.Ports.StopBits.One;
if (Wrapper)
{
ObiektUstawien.client.InterfaceType = InterfaceType.WRAPPER;

}
ObiektUstawien.client.InterfaceType.ToString()+Environment.NewLine;
ObiektUstawien.client.UseLogicalNameReferencing = UseLN;
if (!string.IsNullOrEmpty(auth))
{
ObiektUstawien.client.Authentication = (Authentication)System.Enum.Parse(typeof(Authentication), auth);
ObiektUstawien.client.Password = ASCIIEncoding.ASCII.GetBytes(password);
ObiektUstawien.client.ClientAddress = 1;
}
if (serialno > 0)
{
try
{
ObiektUstawien.client.ServerAddress = GXDLMSClient.GetServerAddress(serialno);
}
catch (Exception exx)
{
}
}
ObiektUstawien.media.Open(); <<<<< HERE I HAVE ERROR :

System resources are insufficient to complete the requested service

WHY ??

S4H

2 years 8 months ago

I'm using your sample…

I'm using your sample software and I have the same error :

Image

S4H

2 years 8 months ago

We are using Moxa converter…

We are using Moxa converter. Our counter has Rs connection to Moxa then we send it to our computer via Ethernet and on our computer we convert it to RS232 virtual port

Profile picture for user Kurumi

Kurumi

2 years 8 months ago

Hi, Multiple reasons might…

Hi,

Multiple reasons might cause this. Usually one of the parameters is different than the meter expects.
Can you add the communication hex log so I can check what is happening? Your code doesn't tell what might cause this.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin