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. 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

1 year 3 months ago

I'm using your sample…

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

Image

S4H

1 year 3 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

1 year 3 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

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

Hire Us!

Latest Releases

  • Tue, 06/17/2025 - 13:03
    Gurux.DLMS.Python 1.0.182
  • Wed, 06/04/2025 - 13:35
    gurux.dlms.c 9.0.2506.0401
  • Fri, 05/30/2025 - 08:30
    gurux.dlms.c 9.0.2505.3001
  • Tue, 05/27/2025 - 08:10
    Gurux.Serial.Android 2.0.12
  • Mon, 05/26/2025 - 08:39
    gurux.dlms.c 9.0.2505.2601

New forum topics

  • Day profile action item add error (String is not recognized as valid DateTime value)
  • Create gateway protocol in c
  • Error while reading event log object
  • GXDLMS Simulator – AssociationLogicalName Not Listed
  • Failed to read meter through raspberry pi 5 and probe
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin