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.
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);
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.
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);
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