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 ??
I'm using your sample…
I'm using your sample software and I have the same error :
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
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