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

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin