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. Com_initializeConnection Failed 279

com_initializeConnection failed 279

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 benyamin.chesh… , 6 January, 2022
Forums
General discussion

recieve of meter:
:com_initializeConnection failed 279<HT> :Start reading<HT> :com_initializeConnection failed 279<HT> :Start reading<HT>

------------------------------
sent hex to meter:
7E A0 00 02 54 FB 03 10 25 D4 E6 E6 00 60 4A A1 09 06 07 60 85 74 05 08 01 01 A6 0A 04 08 41 42 43 44 45 46 47 48 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 C0 E0 70 B8 DC EE 77 3B 9D 4E A7 D3 69 34 9A CD BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 7A 5A 7E 7E A0 0A 00 02 54 FB 03 53 A0 49 7E 7E A0 0A 00 02 54 FB 03 93 AC 8F 7E 7E A0 5B 00 02 54 FB 03 10 25 D4 E6 E6 00 60 4A A1 09 06 07 60 85 74 05 08 01 01 A6 0A 04 08 41 42 43 44 45 46 47 48 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 E6 F3 79 BC DE EF 77 BB DD 6E 37 9B CD 66 33 99 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF F9 82 7E 7E A0 0A 00 02 54 FB 03 53 A0 49 7E 7E A0 0A 00 02 54 FB 03 93 AC 8F 7E 7E A0 5B 00 02 54 FB 03 10 25 D4 E6 E6 00 60 4A A1 09 06 07 60 85 74 05 08 01 01 A6 0A 04 08 41 42 43 44 45 46 47 48 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 CC E6 F3 F9 7C BE 5F 2F 17 0B 05 02 81 C0 E0 F0 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF D3 89 7E 7E A0 0A 00 02 54 FB 03 53 A0 49 7E
----------------
my code arduino
void setup() {
GXTRACE(GET_STR_FROM_EEPROM("Start application"), NULL);
BYTE_BUFFER_INIT(&frameData);
//Set frame capacity.
bb_capacity(&frameData, 128);
// Client.init(true, 16, Client.GetServerAddress(1,0x157D,2), DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_HDLC);

////Un-comment this if you want to set system title, block cipher key or authentication key.

Client.SetSecurity(DLMS_SECURITY_AUTHENTICATION_ENCRYPTION);
//TODO: Change logical name of the frame counter if it's used to com_readAllObjects.
gxByteBuffer bb;
bb_init(&bb);
bb_addHexString(&bb, "31 32 33 34 35 36 37 38");
Client.SetSystemTitle(&bb);
bb_clear(&bb);
bb_addHexString(&bb, "D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF");
Client.SetAuthenticationKey(&bb);
bb_clear(&bb);
bb_addHexString(&bb, "00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F");
Client.SetBlockCipherKey(&bb);
bb_clear(&bb);
//Client.SetInvocationCounter(0x1699);
Client.init(true,1, Client.GetServerAddress(0x1,0x157D,2), DLMS_AUTHENTICATION_HIGH_GMAC,NULL, DLMS_INTERFACE_TYPE_HDLC);
Serial1.begin(9600);

// start serial port at 9600 bps:
Serial2.begin(9600);
while (!Serial2) {
; // wait for serial port to connect. Needed for native USB port only
}
}

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();
}
}
--------------------------------------
image gxdlms director

Image
Profile picture for user Kurumi

Kurumi

4 years 7 months ago

Hi,

Hi,

Please, don't create multiple topics from the same question. I have answered for your question here:
https://www.gurux.fi/comment/23061#comment-23061

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

  • Possible memory leak in file dlms.c, getCompactArrayItem(), getCompactArrayItem2()
  • Official Gurux.DLMS.Client.Example.Net fails during High GMAC secure association (Invalid PDU), while Gurux Director connects successfully
  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
More

Who's new

  • Afham
  • isabelbf3
  • xkQAHLRbrboWkI…
  • RBCLQVpfdDeeYPPbKksI
  • eZDLCKpzJAzARY…
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin