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. 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 8 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 8 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

  • 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

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • 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
More

Who's new

  • LutzG
  • Ralf Schmitz
  • prosper.abanga
  • moGiaco
  • RobertEncum
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin