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. Device Reports a Unavailable Object.

Device reports a unavailable object.

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 Gorantlaharikr… , 28 November, 2020
Forums
Gurux.DLMS

hi sir
while reading profile generic data at 6th attribute i am getting error of unavailable object.
read start 6

TX: 7E A0 2C 03 61 54 9C BA E6 E6 00 C8 1E 30 00 03 38 26 6B 81 4A 1D 33 D4
DE 57 54 60 82 17 95 26 CC E4 B8 F4 F6 84 2B 6C FE 8E B9 EC 30 7E

RX: 7E A0 35 61 03 74 4C 47 E6 E7 00 CC 27 30 00 00 20 36 F7 07 D1 69 8A 25
40 5D 6E 9C FE F1 F9 32 FE F3 5F 27 B1 F2 F8 EF 18 8C AE CA ED 9C EC 9C B1 71 E
B 9E 3C 5F 7E
ReadObject failed ProfileGeneric 1.0.94.91.0.255:6 Access Error : Device reports
a unavailable object.

thanks,

Gorantlaharikr…

5 years 6 months ago

hi sir

hi sir
please check my code
con_init(&con, GX_TRACE_LEVEL_VERBOSE);
cl_init(&con.settings, 1, 16, 1, DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_HDLC);
ret = com_open(&con, serialPort,0);
ret = cosem_init(BASE(data), DLMS_OBJECT_TYPE_DATA, "0.0.43.1.3.255");
ret = com_initializeConnection(&con);
ret = com_read(&con, BASE(data), 2);
invcount = 1 + var_toInteger(&data.value);

com_close(&con);

cl_init(&con.settings, 1, 48, 1, DLMS_AUTHENTICATION_HIGH, NULL, DLMS_INTERFACE_TYPE_HDLC);
con.settings.maxInfoRX = con.settings.maxInfoTX = 0x243;
con.settings.windowSizeRX = con.settings.windowSizeTX = 1;
BYTE_BUFFER_INIT(&con.settings.password);
bb_addString(&con.settings.password,"1234567800000000");
con.settings.cipher.security = DLMS_SECURITY_AUTHENTICATION_ENCRYPTION;
BYTE_BUFFER_INIT(&con.settings.cipher.blockCipherKey);
bb_set(&con.settings.cipher.blockCipherKey,BLOCK_KEY_TEST,sizeof(BLOCK_KEY_TEST));
BYTE_BUFFER_INIT(&con.settings.cipher.authenticationKey);
bb_set(&con.settings.cipher.authenticationKey, AUTH_KEY_TEST, sizeof(AUTH_KEY_TEST));
BYTE_BUFFER_INIT(&con.settings.cipher.systemTitle);
bb_set(&con.settings.cipher.systemTitle, SYS_KEY_TEST, sizeof(SYS_KEY_TEST));
con.settings.cipher.invocationCounter = invcount;

ret = cosem_init(BASE(profilegeneric), DLMS_OBJECT_TYPE_PROFILE_GENERIC, "1.0.94.91.0.255");

ret = com_initializeConnection(&con);
// ret = com_readList(&con, &arrData);
//ret = com_readAllObjects(&con);
//ret = com_read(&con, BASE(profilegeneric), 6);

ret = com_read(&con, BASE(profilegeneric), 1);
ret = com_read(&con, BASE(profilegeneric), 4);
ret = com_read(&con, BASE(profilegeneric), 5);
ret = com_read(&con, BASE(profilegeneric), 6); //while reading with 6th attribute its i giving error
ret = com_read(&con, BASE(profilegeneric), 7);
ret = com_read(&con, BASE(profilegeneric), 8);

Profile picture for user Kurumi

Kurumi

5 years 6 months ago

Hi,

Hi,

If you can read all other attributes and reading attribute #6 is only that it returning this error then I believe that sort_object is not implemented to the meter.

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