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. Connection Initialisation Fails [Arduino Example + ACE6000]

Connection Initialisation fails [Arduino example + ACE6000]

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 zerow , 5 January, 2022
Forums
Gurux.DLMS

Hello,

I'm trying to read data from smart meter ace6000 , i've been succeseful in reading its data from GXDirector so fat but when i try to establish connection with the meter using my mcu and the example provided i dont seem to manage to get it working .

the hardware connection is all good i tried reading the meter using the python library using my mcu as a proxy and it works however using the C library i seem to have some problem.

i'll join the logs plus the Gxdirector config i used

thank you for your support i hope of hearing back from you.

P.S: Forgot to include code snippet :

void setup() {
// put your setup code here, to run once:
TraceSerial.begin(9600);
HSerial.begin(9600);

GXTRACE(GET_STR_FROM_EEPROM("Start application"), NULL);
BYTE_BUFFER_INIT(&frameData);
//Set frame capacity.
bb_capacity(&frameData, 128);

Client.init(true, 1, Client.GetServerAddress(1,0x11,0), DLMS_AUTHENTICATION_LOW,"ABCDEFGH", DLMS_INTERFACE_TYPE_HDLC);

counter = millis();
}

void loop() {
int ret;
if (millis() - runTime > 5000)
{
runTime = millis();
GXTRACE(GET_STR_FROM_EEPROM("Start reading"), NULL);
//TODO: Change logical name of the frame counter if it's used.
ret = com_readAllObjects("0.0.43.1.0.255");
com_close();
}
//transparentMode();
}

Image

zerow

4 years 6 months ago

Logs :

Logs :

:Start application :Start readingTransmiting ->
7E A0 8 2 23 3 93 3E 74 7E
DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E DONE
:Received bytes:
37 :Data send failed. Try to resend. 1
Transmiting ->
7E A0 8 2 23 3 93 3E 74 7E
DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4
0 0 0 1 CE 6A 7E DONE
:Received bytes:
74 :Data send failed. Try to resend. 2
Transmiting ->
7E A0 8 2 23 3 93 3E 74 7E
DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4
0 0 0 1 CE 6A 7E DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4
0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E DONE
:Received bytes:
111 :Data send failed. Try to resend. 3
Transmiting ->
7E A0 8 2 23 3 93 3E 74 7E
DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4
0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4
0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E DONE
:Received bytes:
148 :com_initializeConnection failed 252
:Start readingTransmiting ->
7E A0 8 2 23 3 93 3E 74 7E
DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E DONE
:Received bytes:
37 :Data send failed. Try to resend. 1
Transmiting ->
7E A0 8 2 23 3 93 3E 74 7E
DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E DONE
Received ->
7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4 0 0 0 1 CE 6A 7E 7E A0 23 3 0 2 0 23 73 C0 48 81 80 14 5 2 0 80 6 2 0 80 7 4 0 0 0 1 8 4
0 0 0 1 CE 6A 7E DONE

Image
Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

ACE6000 is a special case.

Change this:
Client.GetServerAddress(1,0x11,0)

to:
Client.GetServerAddress(1,0x11,4)

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • UIRlLOZQoyTZHC…
  • mpjTCKVBgHdfcCSDJDRc
  • BaEdhlfwwvUqFMkOYk
  • CrzONrPdvkWUif…
  • kra4026
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin